@mozaic-ds/vue 2.6.0 → 2.7.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/README.md +3 -3
- package/dist/mozaic-vue.css +1 -1
- package/dist/mozaic-vue.d.ts +334 -274
- package/dist/mozaic-vue.js +1215 -1144
- package/dist/mozaic-vue.js.map +1 -1
- package/dist/mozaic-vue.umd.cjs +1 -1
- package/dist/mozaic-vue.umd.cjs.map +1 -1
- package/package.json +9 -7
- package/src/components/Contributing.mdx +1 -1
- package/src/components/GettingStarted.mdx +1 -1
- package/src/components/Introduction.mdx +1 -1
- package/src/components/Support.mdx +1 -1
- package/src/components/avatar/MAvatar.stories.ts +1 -0
- package/src/components/avatar/MAvatar.vue +2 -2
- package/src/components/avatar/README.md +16 -0
- package/src/components/breadcrumb/MBreadcrumb.stories.ts +1 -0
- package/src/components/breadcrumb/MBreadcrumb.vue +3 -3
- package/src/components/breadcrumb/README.md +11 -0
- package/src/components/button/MButton.stories.ts +1 -2
- package/src/components/button/MButton.vue +7 -2
- package/src/components/button/README.md +24 -0
- package/src/components/callout/MCallout.stories.ts +1 -0
- package/src/components/callout/MCallout.vue +5 -5
- package/src/components/callout/README.md +19 -0
- package/src/components/checkbox/MCheckbox.vue +5 -1
- package/src/components/checkbox/README.md +23 -0
- package/src/components/checkboxgroup/MCheckboxGroup.stories.ts +1 -1
- package/src/components/checkboxgroup/MCheckboxGroup.vue +1 -1
- package/src/components/checkboxgroup/README.md +20 -0
- package/src/components/circularprogressbar/MCircularProgressbar.stories.ts +1 -0
- package/src/components/circularprogressbar/MCircularProgressbar.vue +2 -2
- package/src/components/circularprogressbar/README.md +14 -0
- package/src/components/container/MContainer.stories.ts +11 -3
- package/src/components/container/MContainer.vue +3 -3
- package/src/components/container/README.md +16 -0
- package/src/components/datepicker/MDatepicker.stories.ts +2 -1
- package/src/components/datepicker/MDatepicker.vue +7 -3
- package/src/components/datepicker/README.md +24 -0
- package/src/components/divider/MDivider.spec.ts +5 -5
- package/src/components/divider/MDivider.stories.ts +8 -13
- package/src/components/divider/MDivider.vue +8 -8
- package/src/components/divider/README.md +18 -0
- package/src/components/drawer/MDrawer.spec.ts +28 -0
- package/src/components/drawer/MDrawer.stories.ts +1 -0
- package/src/components/drawer/MDrawer.vue +16 -5
- package/src/components/drawer/README.md +29 -0
- package/src/components/field/MField.vue +1 -1
- package/src/components/field/README.md +24 -0
- package/src/components/fieldgroup/README.md +22 -0
- package/src/components/flag/MFlag.vue +2 -2
- package/src/components/flag/README.md +11 -0
- package/src/components/iconbutton/MIconButton.stories.ts +1 -0
- package/src/components/iconbutton/MIconButton.vue +2 -2
- package/src/components/iconbutton/README.md +21 -0
- package/src/components/linearprogressbarbuffer/MLinearProgressbarBuffer.stories.ts +1 -0
- package/src/components/linearprogressbarbuffer/MLinearProgressbarBuffer.vue +5 -1
- package/src/components/linearprogressbarbuffer/README.md +11 -0
- package/src/components/linearprogressbarpercentage/MLinearProgressbarPercentage.stories.ts +1 -0
- package/src/components/linearprogressbarpercentage/MLinearProgressbarPercentage.vue +4 -0
- package/src/components/linearprogressbarpercentage/README.md +10 -0
- package/src/components/link/MLink.stories.ts +2 -2
- package/src/components/link/MLink.vue +22 -12
- package/src/components/link/README.md +23 -0
- package/src/components/loader/MLoader.vue +1 -1
- package/src/components/loader/README.md +12 -0
- package/src/components/loadingoverlay/MLoadingOverlay.stories.ts +1 -1
- package/src/components/loadingoverlay/MLoadingOverlay.vue +4 -0
- package/src/components/loadingoverlay/README.md +11 -0
- package/src/components/modal/MModal.vue +11 -7
- package/src/components/modal/README.md +28 -0
- package/src/components/numberbadge/MNumberBadge.vue +4 -4
- package/src/components/numberbadge/README.md +12 -0
- package/src/components/overlay/MOverlay.stories.ts +1 -1
- package/src/components/overlay/MOverlay.vue +2 -2
- package/src/components/overlay/README.md +17 -0
- package/src/components/pagination/MPagination.stories.ts +1 -0
- package/src/components/pagination/MPagination.vue +1 -1
- package/src/components/pagination/README.md +20 -0
- package/src/components/passwordinput/MPasswordInput.vue +6 -2
- package/src/components/passwordinput/README.md +25 -0
- package/src/components/pincode/MPincode.spec.ts +4 -1
- package/src/components/pincode/MPincode.stories.ts +2 -1
- package/src/components/pincode/MPincode.vue +10 -2
- package/src/components/pincode/README.md +22 -0
- package/src/components/quantityselector/MQuantitySelector.stories.ts +1 -1
- package/src/components/quantityselector/MQuantitySelector.vue +6 -2
- package/src/components/quantityselector/README.md +27 -0
- package/src/components/radio/MRadio.vue +5 -1
- package/src/components/radio/README.md +21 -0
- package/src/components/radiogroup/MRadioGroup.vue +1 -1
- package/src/components/radiogroup/README.md +21 -0
- package/src/components/segmentedcontrol/MSegmentedControl.spec.ts +116 -0
- package/src/components/segmentedcontrol/MSegmentedControl.stories.ts +78 -0
- package/src/components/segmentedcontrol/MSegmentedControl.vue +92 -0
- package/src/components/segmentedcontrol/README.md +19 -0
- package/src/components/select/MSelect.vue +6 -2
- package/src/components/select/README.md +24 -0
- package/src/components/statusbadge/MStatusBadge.stories.ts +1 -1
- package/src/components/statusbadge/MStatusBadge.vue +3 -3
- package/src/components/statusbadge/README.md +11 -0
- package/src/components/statusdot/MStatusDot.stories.ts +1 -0
- package/src/components/statusdot/MStatusDot.vue +3 -3
- package/src/components/statusdot/README.md +11 -0
- package/src/components/statusnotification/MStatusNotification.vue +3 -3
- package/src/components/statusnotification/README.md +25 -0
- package/src/components/tabs/MTabs.stories.ts +23 -1
- package/src/components/tabs/MTabs.vue +8 -0
- package/src/components/tabs/Mtabs.spec.ts +30 -9
- package/src/components/tabs/README.md +20 -0
- package/src/components/tag/MTag.stories.ts +1 -1
- package/src/components/tag/MTag.vue +4 -0
- package/src/components/tag/README.md +25 -0
- package/src/components/textarea/MTextArea.vue +5 -1
- package/src/components/textarea/README.md +25 -0
- package/src/components/textinput/MTextInput.vue +10 -6
- package/src/components/textinput/README.md +32 -0
- package/src/components/toaster/MToaster.stories.ts +1 -0
- package/src/components/toaster/MToaster.vue +4 -4
- package/src/components/toaster/README.md +28 -0
- package/src/components/toggle/MToggle.vue +6 -2
- package/src/components/toggle/README.md +21 -0
- package/src/components/togglegroup/MToggleGroup.vue +2 -2
- package/src/components/togglegroup/README.md +20 -0
- package/src/components/tooltip/MTooltip.vue +8 -10
- package/src/components/tooltip/README.md +19 -0
- package/src/components/usingIcons.mdx +1 -1
- package/src/components/usingPresets.mdx +1 -1
- package/src/main.ts +6 -4
|
@@ -41,7 +41,7 @@ import { computed, type VNode } from 'vue';
|
|
|
41
41
|
import CrossCircleFilled24 from '@mozaic-ds/icons-vue/src/components/CrossCircleFilled24/CrossCircleFilled24.vue';
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* A text input is a single-line input that allows users to enter and edit short text-based content. It is commonly used for names, email addresses, search queries, and form entries. Text Inputs often include placeholders, validation rules, and assistive text to guide users and ensure accurate data entry.<br><br> To put a label, requierement text, help text or to apply a valid or invalid message, the examples are available in the [Field section](/docs/form-elements-field--docs#input).
|
|
45
45
|
*/
|
|
46
46
|
const props = withDefaults(
|
|
47
47
|
defineProps<{
|
|
@@ -62,7 +62,7 @@ const props = withDefaults(
|
|
|
62
62
|
*/
|
|
63
63
|
placeholder?: string;
|
|
64
64
|
/**
|
|
65
|
-
* Defines the type of input
|
|
65
|
+
* Defines the type of input.
|
|
66
66
|
*/
|
|
67
67
|
inputType?:
|
|
68
68
|
| 'date'
|
|
@@ -81,7 +81,7 @@ const props = withDefaults(
|
|
|
81
81
|
*/
|
|
82
82
|
disabled?: boolean;
|
|
83
83
|
/**
|
|
84
|
-
* Determines the size of the input
|
|
84
|
+
* Determines the size of the input.
|
|
85
85
|
*/
|
|
86
86
|
size?: 's' | 'm';
|
|
87
87
|
/**
|
|
@@ -93,7 +93,7 @@ const props = withDefaults(
|
|
|
93
93
|
*/
|
|
94
94
|
isClearable?: boolean;
|
|
95
95
|
/**
|
|
96
|
-
* The label text for the clear button
|
|
96
|
+
* The label text for the clear button.
|
|
97
97
|
*/
|
|
98
98
|
clearLabel?: string;
|
|
99
99
|
}>(),
|
|
@@ -106,7 +106,7 @@ const props = withDefaults(
|
|
|
106
106
|
|
|
107
107
|
defineSlots<{
|
|
108
108
|
/**
|
|
109
|
-
* Use this slot to insert an icon in the input
|
|
109
|
+
* Use this slot to insert an icon in the input.
|
|
110
110
|
*/
|
|
111
111
|
icon?: VNode;
|
|
112
112
|
}>();
|
|
@@ -128,9 +128,13 @@ const emit = defineEmits<{
|
|
|
128
128
|
*/
|
|
129
129
|
(on: 'update:modelValue', value: string | number): void;
|
|
130
130
|
}>();
|
|
131
|
+
|
|
132
|
+
defineOptions({
|
|
133
|
+
inheritAttrs: false,
|
|
134
|
+
});
|
|
131
135
|
</script>
|
|
132
136
|
|
|
133
137
|
<style lang="scss" scoped>
|
|
134
138
|
@use '@mozaic-ds/styles/components/controls-options';
|
|
135
139
|
@use '@mozaic-ds/styles/components/text-input';
|
|
136
|
-
</style>
|
|
140
|
+
</style>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# MTextInput
|
|
2
|
+
|
|
3
|
+
A text input is a single-line input that allows users to enter and edit short text-based content. It is commonly used for names, email addresses, search queries, and form entries. Text Inputs often include placeholders, validation rules, and assistive text to guide users and ensure accurate data entry.<br><br> To put a label, requierement text, help text or to apply a valid or invalid message, the examples are available in the [Field section](/docs/form-elements-field--docs#input).
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Props
|
|
7
|
+
|
|
8
|
+
| Name | Description | Type | Default |
|
|
9
|
+
| --- | --- | --- | --- |
|
|
10
|
+
| `id*` | A unique identifier for the input element, used to associate the label with the form element. | `string` | - |
|
|
11
|
+
| `name` | The name attribute for the input element, typically used for form submission. | `string` | - |
|
|
12
|
+
| `modelValue` | The current value of the input field. | `string` `number` | - |
|
|
13
|
+
| `placeholder` | A placeholder text to show in the input when it is empty. | `string` | - |
|
|
14
|
+
| `inputType` | Defines the type of input. | `"number"` `"text"` `"date"` `"email"` `"password"` `"search"` `"tel"` | `"text"` |
|
|
15
|
+
| `isInvalid` | If `true`, applies an invalid state to the input. | `boolean` | - |
|
|
16
|
+
| `disabled` | If `true`, disables the input, making it non-interactive. | `boolean` | - |
|
|
17
|
+
| `size` | Determines the size of the input. | `"s"` `"m"` | `"m"` |
|
|
18
|
+
| `readonly` | If `true`, the input is read-only (cannot be edited). | `boolean` | - |
|
|
19
|
+
| `isClearable` | If `true`, a clear button will appear when the input has a value. | `boolean` | - |
|
|
20
|
+
| `clearLabel` | The label text for the clear button. | `string` | `"clear content"` |
|
|
21
|
+
|
|
22
|
+
## Slots
|
|
23
|
+
|
|
24
|
+
| Name | Description |
|
|
25
|
+
| --- | --- |
|
|
26
|
+
| `icon` | Use this slot to insert an icon in the input. |
|
|
27
|
+
|
|
28
|
+
## Events
|
|
29
|
+
|
|
30
|
+
| Name | Description | Type |
|
|
31
|
+
| --- | --- | --- |
|
|
32
|
+
| `update:modelValue` | Emits when the input value changes, updating the `modelValue` prop. | [value: string | number] |
|
|
@@ -58,11 +58,11 @@ import MLinearProgressbarBuffer from '../linearprogressbarbuffer/MLinearProgress
|
|
|
58
58
|
const props = withDefaults(
|
|
59
59
|
defineProps<{
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* If `true`, display the Toaster.
|
|
62
62
|
*/
|
|
63
63
|
open?: boolean;
|
|
64
64
|
/**
|
|
65
|
-
* Position of the toaster
|
|
65
|
+
* Position of the toaster.
|
|
66
66
|
*/
|
|
67
67
|
position?: 'top' | 'bottom' | 'top-center' | 'bottom-center';
|
|
68
68
|
/**
|
|
@@ -74,11 +74,11 @@ const props = withDefaults(
|
|
|
74
74
|
*/
|
|
75
75
|
status?: 'info' | 'success' | 'warning' | 'error';
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* If `true`, display the close button.
|
|
78
78
|
*/
|
|
79
79
|
closable?: boolean;
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* If `true`, display the progress bar of the duration.
|
|
82
82
|
*/
|
|
83
83
|
progress?: boolean;
|
|
84
84
|
/**
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# MToaster
|
|
2
|
+
|
|
3
|
+
A toaster is a temporary notification that appears briefly on the screen to provide feedback or updates without interrupting the user’s workflow. It is commonly used for success messages, warnings, errors, or informational updates. Toasters can disappear automatically after a few seconds, be dismissed manually via a close button, or be removed when the user performs a relevant action. They typically include an icon, a short message, and an optional close button for better usability.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Props
|
|
7
|
+
|
|
8
|
+
| Name | Description | Type | Default |
|
|
9
|
+
| --- | --- | --- | --- |
|
|
10
|
+
| `open` | If `true`, display the Toaster. | `boolean` | - |
|
|
11
|
+
| `position` | Position of the toaster. | `"top"` `"bottom"` `"top-center"` `"bottom-center"` | - |
|
|
12
|
+
| `description*` | Description of the toaster. | `string` | - |
|
|
13
|
+
| `status` | Allows to define the toaster style. | `"info"` `"success"` `"warning"` `"error"` | `"info"` |
|
|
14
|
+
| `closable` | If `true`, display the close button. | `boolean` | `true` |
|
|
15
|
+
| `progress` | If `true`, display the progress bar of the duration. | `boolean` | - |
|
|
16
|
+
| `timeout` | Duration of the toaster | `number` | - |
|
|
17
|
+
|
|
18
|
+
## Slots
|
|
19
|
+
|
|
20
|
+
| Name | Description |
|
|
21
|
+
| --- | --- |
|
|
22
|
+
| `action` | Use this slot to insert a button or a link in the toaster |
|
|
23
|
+
|
|
24
|
+
## Events
|
|
25
|
+
|
|
26
|
+
| Name | Description | Type |
|
|
27
|
+
| --- | --- | --- |
|
|
28
|
+
| `update:open` | Emits when the checkbox value changes, updating the modelValue prop. | [value: boolean] |
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
import { computed } from 'vue';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* A toggle is
|
|
27
|
+
* A toggle is a switch component that allows users to enable or disable a setting, representing a binary state such as on/off or active/inactive. It provides a quick and intuitive way to control preferences or system settings. Toggles are commonly used in settings menus, dark mode switches, and feature activations, offering an alternative to checkboxes for immediate visual feedback.
|
|
28
28
|
*/
|
|
29
29
|
const props = withDefaults(
|
|
30
30
|
defineProps<{
|
|
@@ -45,7 +45,7 @@ const props = withDefaults(
|
|
|
45
45
|
*/
|
|
46
46
|
modelValue?: boolean;
|
|
47
47
|
/**
|
|
48
|
-
* Determines the size of the toggle
|
|
48
|
+
* Determines the size of the toggle.
|
|
49
49
|
*/
|
|
50
50
|
size?: 's' | 'm';
|
|
51
51
|
/**
|
|
@@ -70,6 +70,10 @@ const emit = defineEmits<{
|
|
|
70
70
|
*/
|
|
71
71
|
(on: 'update:modelValue', value: boolean): void;
|
|
72
72
|
}>();
|
|
73
|
+
|
|
74
|
+
defineOptions({
|
|
75
|
+
inheritAttrs: false,
|
|
76
|
+
});
|
|
73
77
|
</script>
|
|
74
78
|
|
|
75
79
|
<style lang="scss" scoped>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# MToggle
|
|
2
|
+
|
|
3
|
+
A toggle is a switch component that allows users to enable or disable a setting, representing a binary state such as on/off or active/inactive. It provides a quick and intuitive way to control preferences or system settings. Toggles are commonly used in settings menus, dark mode switches, and feature activations, offering an alternative to checkboxes for immediate visual feedback.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Props
|
|
7
|
+
|
|
8
|
+
| Name | Description | Type | Default |
|
|
9
|
+
| --- | --- | --- | --- |
|
|
10
|
+
| `id*` | A unique identifier for the toggle, used to associate the label with the form element. | `string` | - |
|
|
11
|
+
| `name` | The name attribute for the toggle element, typically used for form submission. | `string` | - |
|
|
12
|
+
| `label` | The text label displayed next to the toggle. | `string` | - |
|
|
13
|
+
| `modelValue` | The toggle's checked state, bound via v-model. | `boolean` | - |
|
|
14
|
+
| `size` | Determines the size of the toggle. | `"s"` `"m"` | `"s"` |
|
|
15
|
+
| `disabled` | If `true`, disables the toggle, making it non-interactive. | `boolean` | - |
|
|
16
|
+
|
|
17
|
+
## Events
|
|
18
|
+
|
|
19
|
+
| Name | Description | Type |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| `update:modelValue` | Emits when the toggle value changes, updating the modelValue prop. | [value: boolean] |
|
|
@@ -20,7 +20,7 @@ import { computed, ref, watch } from 'vue';
|
|
|
20
20
|
import MToggle from '../toggle/MToggle.vue';
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* A toggle is
|
|
23
|
+
* A toggle is a switch component that allows users to enable or disable a setting, representing a binary state such as on/off or active/inactive. It provides a quick and intuitive way to control preferences or system settings. Toggles are commonly used in settings menus, dark mode switches, and feature activations, offering an alternative to checkboxes for immediate visual feedback.<br><br> To put a label, requierement text, help text or to apply a valid or invalid message, the examples are available in the [Field Group section](/docs/form-elements-field-group--docs#toggle-group).
|
|
24
24
|
*/
|
|
25
25
|
const props = defineProps<{
|
|
26
26
|
/**
|
|
@@ -33,7 +33,7 @@ const props = defineProps<{
|
|
|
33
33
|
*/
|
|
34
34
|
modelValue?: Array<string>;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* List of properties of each toggle of the toggle group.
|
|
37
37
|
*/
|
|
38
38
|
options: Array<{
|
|
39
39
|
id: string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# MToggleGroup
|
|
2
|
+
|
|
3
|
+
A toggle is a switch component that allows users to enable or disable a setting, representing a binary state such as on/off or active/inactive. It provides a quick and intuitive way to control preferences or system settings. Toggles are commonly used in settings menus, dark mode switches, and feature activations, offering an alternative to checkboxes for immediate visual feedback.<br><br> To put a label, requierement text, help text or to apply a valid or invalid message, the examples are available in the [Field Group section](/docs/form-elements-field-group--docs#toggle-group).
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Props
|
|
7
|
+
|
|
8
|
+
| Name | Description | Type | Default |
|
|
9
|
+
| --- | --- | --- | --- |
|
|
10
|
+
| `name*` | The name attribute for the toggle element, typically used for form submission. | `string` | - |
|
|
11
|
+
| `modelValue` | Property used to manage the values checked by v-model
|
|
12
|
+
(Do not use directly) | `string[]` | - |
|
|
13
|
+
| `options*` | List of properties of each toggle of the toggle group. | `{ id: string; label: string; value: string; disabled?: boolean` `undefined; isInvalid?: boolean` `undefined; size?: "s"` `"m"` `undefined; }[]` | - |
|
|
14
|
+
| `inline` | If `true`, make the form element of the group inline. | `boolean` | - |
|
|
15
|
+
|
|
16
|
+
## Events
|
|
17
|
+
|
|
18
|
+
| Name | Description | Type |
|
|
19
|
+
| --- | --- | --- |
|
|
20
|
+
| `update:modelValue` | Emits when the toggle group value changes, updating the modelValue prop. | [value: Array<string>] |
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="tooltip-
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
</span>
|
|
8
|
-
</div>
|
|
2
|
+
<div class="mc-tooltip" :class="classObject" :aria-describedby="id">
|
|
3
|
+
<slot />
|
|
4
|
+
<span :id="id" class="mc-tooltip__content" role="tooltip">
|
|
5
|
+
{{ text }}
|
|
6
|
+
</span>
|
|
9
7
|
</div>
|
|
10
8
|
</template>
|
|
11
9
|
|
|
@@ -21,15 +19,15 @@ const props = withDefaults(
|
|
|
21
19
|
*/
|
|
22
20
|
id: string;
|
|
23
21
|
/**
|
|
24
|
-
* Content of the tooltip
|
|
22
|
+
* Content of the tooltip.
|
|
25
23
|
*/
|
|
26
24
|
text: string;
|
|
27
25
|
/**
|
|
28
|
-
* Determines the position of the tooltip
|
|
26
|
+
* Determines the position of the tooltip.
|
|
29
27
|
*/
|
|
30
28
|
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
31
29
|
/**
|
|
32
|
-
*
|
|
30
|
+
* If `true`, the tooltip display a pointer.
|
|
33
31
|
*/
|
|
34
32
|
pointer?: boolean;
|
|
35
33
|
}>(),
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# MTooltip
|
|
2
|
+
|
|
3
|
+
A tooltip is a small, contextual message that appears when users hover over, focus on, or tap an element, providing additional information or guidance without cluttering the interface. Tooltips are commonly used to explain icons, abbreviations, or complex actions. They typically disappear automatically when the user moves away from the trigger element.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Props
|
|
7
|
+
|
|
8
|
+
| Name | Description | Type | Default |
|
|
9
|
+
| --- | --- | --- | --- |
|
|
10
|
+
| `id*` | A unique identifier for the tooltip, used to describe the tooltip. | `string` | - |
|
|
11
|
+
| `text*` | Content of the tooltip. | `string` | - |
|
|
12
|
+
| `position` | Determines the position of the tooltip. | `"left"` `"right"` `"top"` `"bottom"` | `"top"` |
|
|
13
|
+
| `pointer` | If `true`, the tooltip display a pointer. | `boolean` | `true` |
|
|
14
|
+
|
|
15
|
+
## Slots
|
|
16
|
+
|
|
17
|
+
| Name | Description |
|
|
18
|
+
| --- | --- |
|
|
19
|
+
| `default` | The tooltip will point to the content of the slot. |
|
package/src/main.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { default as MAvatar } from './components/avatar/MAvatar.vue';
|
|
2
2
|
export { default as MBreadcrumb } from './components/breadcrumb/MBreadcrumb.vue';
|
|
3
3
|
export { default as MButton } from './components/button/MButton.vue';
|
|
4
|
+
export { default as MCallout } from './components/callout/MCallout.vue';
|
|
4
5
|
export { default as MCheckbox } from './components/checkbox/MCheckbox.vue';
|
|
5
6
|
export { default as MCheckboxGroup } from './components/checkboxgroup/MCheckboxGroup.vue';
|
|
6
7
|
export { default as MCircularProgressbar } from './components/circularprogressbar/MCircularProgressbar.vue';
|
|
7
|
-
export { default as MCallout } from './components/callout/MCallout.vue';
|
|
8
8
|
export { default as MContainer } from './components/container/MContainer.vue';
|
|
9
9
|
export { default as MDatepicker } from './components/datepicker/MDatepicker.vue';
|
|
10
10
|
export { default as MDivider } from './components/divider/MDivider.vue';
|
|
@@ -13,6 +13,8 @@ export { default as MField } from './components/field/MField.vue';
|
|
|
13
13
|
export { default as MFieldGroup } from './components/fieldgroup/MFieldGroup.vue';
|
|
14
14
|
export { default as MFlag } from './components/flag/MFlag.vue';
|
|
15
15
|
export { default as MIconButton } from './components/iconbutton/MIconButton.vue';
|
|
16
|
+
export { default as MLinearProgressbarBuffer } from './components/linearprogressbarbuffer/MLinearProgressbarBuffer.vue';
|
|
17
|
+
export { default as MLinearProgressbarPercentage } from './components/linearprogressbarpercentage/MLinearProgressbarPercentage.vue';
|
|
16
18
|
export { default as MLink } from './components/link/MLink.vue';
|
|
17
19
|
export { default as MLoader } from './components/loader/MLoader.vue';
|
|
18
20
|
export { default as MLoadingOverlay } from './components/loadingoverlay/MLoadingOverlay.vue';
|
|
@@ -22,13 +24,13 @@ export { default as MOverlay } from './components/overlay/MOverlay.vue';
|
|
|
22
24
|
export { default as MPagination } from './components/pagination/MPagination.vue';
|
|
23
25
|
export { default as MPasswordInput } from './components/passwordinput/MPasswordInput.vue';
|
|
24
26
|
export { default as MPincode } from './components/pincode/MPincode.vue';
|
|
25
|
-
export { default as MLinearProgressbarBuffer } from './components/linearprogressbarbuffer/MLinearProgressbarBuffer.vue';
|
|
26
|
-
export { default as MLinearProgressbarPercentage } from './components/linearprogressbarpercentage/MLinearProgressbarPercentage.vue';
|
|
27
27
|
export { default as MQuantitySelector } from './components/quantityselector/MQuantitySelector.vue';
|
|
28
28
|
export { default as MRadio } from './components/radio/MRadio.vue';
|
|
29
29
|
export { default as MRadioGroup } from './components/radiogroup/MRadioGroup.vue';
|
|
30
|
+
export { default as MSegmentedControl } from './components/segmentedcontrol/MSegmentedControl.vue';
|
|
30
31
|
export { default as MSelect } from './components/select/MSelect.vue';
|
|
31
32
|
export { default as MStatusBadge } from './components/statusbadge/MStatusBadge.vue';
|
|
33
|
+
export { default as MStatusDot } from './components/statusdot/MStatusDot.vue';
|
|
32
34
|
export { default as MStatusNotification } from './components/statusnotification/MStatusNotification.vue';
|
|
33
35
|
export { default as MTabs } from './components/tabs/MTabs.vue';
|
|
34
36
|
export { default as MTag } from './components/tag/MTag.vue';
|
|
@@ -36,5 +38,5 @@ export { default as MTextArea } from './components/textarea/MTextArea.vue';
|
|
|
36
38
|
export { default as MTextInput } from './components/textinput/MTextInput.vue';
|
|
37
39
|
export { default as MToaster } from './components/toaster/MToaster.vue';
|
|
38
40
|
export { default as MToggle } from './components/toggle/MToggle.vue';
|
|
39
|
-
export { default as MTooltip } from './components/tooltip/MTooltip.vue';
|
|
40
41
|
export { default as MToggleGroup } from './components/togglegroup/MToggleGroup.vue';
|
|
42
|
+
export { default as MTooltip } from './components/tooltip/MTooltip.vue';
|