@mozaic-ds/vue 2.6.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/mozaic-vue.css +1 -1
  2. package/dist/mozaic-vue.d.ts +276 -258
  3. package/dist/mozaic-vue.js +308 -292
  4. package/dist/mozaic-vue.js.map +1 -1
  5. package/dist/mozaic-vue.umd.cjs +1 -1
  6. package/dist/mozaic-vue.umd.cjs.map +1 -1
  7. package/package.json +2 -2
  8. package/src/components/avatar/MAvatar.vue +2 -2
  9. package/src/components/breadcrumb/MBreadcrumb.stories.ts +1 -0
  10. package/src/components/breadcrumb/MBreadcrumb.vue +3 -3
  11. package/src/components/button/MButton.vue +1 -1
  12. package/src/components/callout/MCallout.vue +5 -5
  13. package/src/components/checkbox/MCheckbox.vue +5 -1
  14. package/src/components/checkboxgroup/MCheckboxGroup.stories.ts +1 -1
  15. package/src/components/checkboxgroup/MCheckboxGroup.vue +1 -1
  16. package/src/components/circularprogressbar/MCircularProgressbar.vue +2 -2
  17. package/src/components/container/MContainer.stories.ts +3 -3
  18. package/src/components/container/MContainer.vue +2 -2
  19. package/src/components/datepicker/MDatepicker.stories.ts +1 -1
  20. package/src/components/datepicker/MDatepicker.vue +7 -3
  21. package/src/components/divider/MDivider.spec.ts +5 -5
  22. package/src/components/divider/MDivider.stories.ts +7 -13
  23. package/src/components/divider/MDivider.vue +8 -8
  24. package/src/components/drawer/MDrawer.vue +7 -3
  25. package/src/components/flag/MFlag.vue +2 -2
  26. package/src/components/iconbutton/MIconButton.vue +1 -1
  27. package/src/components/linearprogressbarbuffer/MLinearProgressbarBuffer.vue +5 -1
  28. package/src/components/linearprogressbarpercentage/MLinearProgressbarPercentage.vue +4 -0
  29. package/src/components/link/MLink.stories.ts +2 -2
  30. package/src/components/link/MLink.vue +22 -10
  31. package/src/components/loadingoverlay/MLoadingOverlay.stories.ts +1 -1
  32. package/src/components/loadingoverlay/MLoadingOverlay.vue +4 -0
  33. package/src/components/modal/MModal.vue +11 -7
  34. package/src/components/numberbadge/MNumberBadge.vue +4 -4
  35. package/src/components/overlay/MOverlay.stories.ts +1 -1
  36. package/src/components/overlay/MOverlay.vue +2 -2
  37. package/src/components/pagination/MPagination.stories.ts +1 -0
  38. package/src/components/pagination/MPagination.vue +1 -1
  39. package/src/components/passwordinput/MPasswordInput.vue +6 -2
  40. package/src/components/pincode/MPincode.stories.ts +1 -1
  41. package/src/components/pincode/MPincode.vue +5 -1
  42. package/src/components/quantityselector/MQuantitySelector.stories.ts +1 -1
  43. package/src/components/quantityselector/MQuantitySelector.vue +6 -2
  44. package/src/components/radio/MRadio.vue +5 -1
  45. package/src/components/radiogroup/MRadioGroup.vue +1 -1
  46. package/src/components/select/MSelect.vue +6 -2
  47. package/src/components/statusbadge/MStatusBadge.stories.ts +1 -1
  48. package/src/components/statusbadge/MStatusBadge.vue +3 -3
  49. package/src/components/statusdot/MStatusDot.vue +3 -3
  50. package/src/components/statusnotification/MStatusNotification.vue +3 -3
  51. package/src/components/tabs/Mtabs.spec.ts +3 -3
  52. package/src/components/tag/MTag.stories.ts +1 -1
  53. package/src/components/tag/MTag.vue +4 -0
  54. package/src/components/textarea/MTextArea.vue +5 -1
  55. package/src/components/textinput/MTextInput.vue +10 -6
  56. package/src/components/toaster/MToaster.vue +4 -4
  57. package/src/components/toggle/MToggle.vue +6 -2
  58. package/src/components/togglegroup/MToggleGroup.vue +2 -2
  59. package/src/components/tooltip/MTooltip.vue +8 -10
  60. package/src/main.ts +5 -4
@@ -7,21 +7,21 @@
7
7
  <script setup lang="ts">
8
8
  import { computed } from 'vue';
9
9
  /**
10
- * A badge indicates the status of an entity and can evolve at any time.
10
+ * A Number Badge represents a numeric count, often used to indicate notifications, updates, or items requiring attention. Its distinct appearance makes it easy to spot changes at a glance, ensuring users stay informed without breaking their workflow. Badges are commonly attached to icons, buttons, or tabs to provide contextual awareness.
11
11
  */
12
12
  const props = withDefaults(
13
13
  defineProps<{
14
14
  /**
15
- * Content of the badge
15
+ * Content of the badge.
16
16
  */
17
17
  label: number;
18
18
  /**
19
- * Allows to define the Badge style
19
+ * Allows to define the badge appearance.
20
20
  */
21
21
  appearance?: 'danger' | 'accent' | 'inverse' | 'standard';
22
22
 
23
23
  /**
24
- * Allows to define the Badge size
24
+ * Allows to define the badge size.
25
25
  */
26
26
  size?: 's' | 'm';
27
27
  }>(),
@@ -10,7 +10,7 @@ const meta: Meta<typeof MOverlay> = {
10
10
  story: { height: '400px' },
11
11
  description: {
12
12
  component:
13
- 'An overlay component is a UI element that appears above the main content to display additional information or interactions, often blocking or dimming the background.',
13
+ 'An overlay is a semi-transparent layer that appears on top of the main content, typically used to dim the background and focus user attention on a specific element. It is often combined with modals, popovers, or loading states to create a visual separation between the foreground and background. Overlays help prevent unintended interactions while keeping the primary content accessible.',
14
14
  },
15
15
  },
16
16
  },
@@ -10,7 +10,7 @@
10
10
  import type { VNode } from 'vue';
11
11
 
12
12
  /**
13
- * An overlay component is a UI element that appears above the main content to display additional information or interactions, often blocking or dimming the background.
13
+ * An overlay is a semi-transparent layer that appears on top of the main content, typically used to dim the background and focus user attention on a specific element. It is often combined with modals, popovers, or loading states to create a visual separation between the foreground and background. Overlays help prevent unintended interactions while keeping the primary content accessible.
14
14
  */
15
15
  defineProps<{
16
16
  /**
@@ -25,7 +25,7 @@ defineProps<{
25
25
 
26
26
  defineSlots<{
27
27
  /**
28
- * Use this slot to insert a centered content inside the overlay
28
+ * Use this slot to insert a centered content inside the overlay.
29
29
  */
30
30
  default?: VNode;
31
31
  }>();
@@ -40,6 +40,7 @@ const meta: Meta<typeof MPagination> = {
40
40
  },
41
41
  ],
42
42
  selectLabel: 'Select page',
43
+ ariaLabel: 'pagination',
43
44
  },
44
45
  render: (args) => ({
45
46
  components: { MPagination },
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <nav class="mc-pagination" role="navigation" aria-label="pagination">
2
+ <nav class="mc-pagination" role="navigation">
3
3
  <MButton
4
4
  v-if="!compact"
5
5
  icon-position="only"
@@ -81,11 +81,11 @@ const props = withDefaults(
81
81
  */
82
82
  isClearable?: boolean;
83
83
  /**
84
- * The label text for the clear button
84
+ * The label text for the clear button.
85
85
  */
86
86
  clearLabel?: string;
87
87
  /**
88
- * Labels of the button displayed when showing or hiding the password
88
+ * Labels of the button displayed when showing or hiding the password.
89
89
  */
90
90
  buttonLabel?: {
91
91
  show: string;
@@ -137,6 +137,10 @@ const emit = defineEmits<{
137
137
  */
138
138
  (on: 'update:modelValue', value: string | number): void;
139
139
  }>();
140
+
141
+ defineOptions({
142
+ inheritAttrs: false,
143
+ });
140
144
  </script>
141
145
 
142
146
  <style lang="scss" scoped>
@@ -10,7 +10,7 @@ const meta: Meta<typeof MPincode> = {
10
10
  docs: {
11
11
  description: {
12
12
  component:
13
- 'A pincode input is a specialized input field used to enter short numeric codes, such as verification codes, security PINs, or authentication tokens. It typically separates each digit into individual fields to improve readability and ease of entry. This component is commonly used in two-factor authentication (2FA), password recovery, and secure access flows, ensuring a structured and user-friendly experience.',
13
+ 'A pincode input is a specialized input field used to enter short numeric codes, such as verification codes, security PINs, or authentication tokens. It typically separates each digit into individual fields to improve readability and ease of entry. This component is commonly used in two-factor authentication (2FA), password recovery, and secure access flows, ensuring a structured and user-friendly experience.<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).',
14
14
  },
15
15
  },
16
16
  },
@@ -32,7 +32,7 @@ import {
32
32
  type ComponentPublicInstance,
33
33
  } from 'vue';
34
34
  /**
35
- * A pincode input is a specialized input field used to enter short numeric codes, such as verification codes, security PINs, or authentication tokens. It typically separates each digit into individual fields to improve readability and ease of entry. This component is commonly used in two-factor authentication (2FA), password recovery, and secure access flows, ensuring a structured and user-friendly experience.
35
+ * A pincode input is a specialized input field used to enter short numeric codes, such as verification codes, security PINs, or authentication tokens. It typically separates each digit into individual fields to improve readability and ease of entry. This component is commonly used in two-factor authentication (2FA), password recovery, and secure access flows, ensuring a structured and user-friendly experience.<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).
36
36
  */
37
37
  const props = withDefaults(
38
38
  defineProps<{
@@ -141,6 +141,10 @@ const onPaste = (e: ClipboardEvent) => {
141
141
  emit('update:modelValue', otp.value.join(''));
142
142
  focusInput(Math.min(digits.length, props.length - 1));
143
143
  };
144
+
145
+ defineOptions({
146
+ inheritAttrs: false,
147
+ });
144
148
  </script>
145
149
 
146
150
  <style lang="scss" scoped>
@@ -10,7 +10,7 @@ const meta: Meta<typeof MQuantitySelector> = {
10
10
  docs: {
11
11
  description: {
12
12
  component:
13
- 'A quantity selector is an input component that allows users to increment or decrement a numeric value, typically using plus (+) and minus (−) buttons. It provides a simple and efficient way to adjust quantities without manual typing, ensuring controlled input. This component is commonly used in e-commerce, inventory management, and settings where users need to specify amounts.',
13
+ 'A quantity selector is an input component that allows users to increment or decrement a numeric value, typically using plus (+) and minus (−) buttons. It provides a simple and efficient way to adjust quantities without manual typing, ensuring controlled input. This component is commonly used in e-commerce, inventory management, and settings where users need to specify amounts.<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).',
14
14
  },
15
15
  },
16
16
  },
@@ -55,7 +55,7 @@ import More24 from '@mozaic-ds/icons-vue/src/components/More24/More24.vue';
55
55
  import Less24 from '@mozaic-ds/icons-vue/src/components/Less24/Less24.vue';
56
56
 
57
57
  /**
58
- * The quantity selector is a form element used to enter or select a number. This type of input is best used when the user needs to choose the quantity of a selected item, like a product before adding to cart for example.
58
+ * A quantity selector is an input component that allows users to increment or decrement a numeric value, typically using plus (+) and minus (−) buttons. It provides a simple and efficient way to adjust quantities without manual typing, ensuring controlled input. This component is commonly used in e-commerce, inventory management, and settings where users need to specify amounts.
59
59
  */
60
60
  const props = withDefaults(
61
61
  defineProps<{
@@ -80,7 +80,7 @@ const props = withDefaults(
80
80
  */
81
81
  disabled?: boolean;
82
82
  /**
83
- * Determines the size of the quantity selector
83
+ * Determines the size of the quantity selector.
84
84
  */
85
85
  size?: 's' | 'm';
86
86
  /**
@@ -170,6 +170,10 @@ const emit = defineEmits<{
170
170
  */
171
171
  (on: 'update:modelValue', value: number): void;
172
172
  }>();
173
+
174
+ defineOptions({
175
+ inheritAttrs: false,
176
+ });
173
177
  </script>
174
178
 
175
179
  <style lang="scss" scoped>
@@ -24,7 +24,7 @@
24
24
  import { computed } from 'vue';
25
25
 
26
26
  /**
27
- * A radio button is used to offer a unique choice to your user in a form. Unlike checkboxes, it can not be used alone.
27
+ * A radio button is a selection control that allows users to choose a single option from a list of mutually exclusive choices. Unlike checkboxes, only one option can be selected at a time within the same group. Radio Buttons are commonly used in forms, surveys, and settings where a single choice must be made.
28
28
  */
29
29
  const props = defineProps<{
30
30
  /**
@@ -65,6 +65,10 @@ const emit = defineEmits<{
65
65
  */
66
66
  (on: 'update:modelValue', value: boolean): void;
67
67
  }>();
68
+
69
+ defineOptions({
70
+ inheritAttrs: false,
71
+ });
68
72
  </script>
69
73
 
70
74
  <style lang="scss" scoped>
@@ -23,7 +23,7 @@ import { computed } from 'vue';
23
23
  import MRadio from '../radio/MRadio.vue';
24
24
 
25
25
  /**
26
- * A radio button is used to offer a unique choice to your user in a form. Unlike checkboxes, it can not be used alone.
26
+ * A radio button is a selection control that allows users to choose a single option from a list of mutually exclusive choices. Unlike checkboxes, only one option can be selected at a time within the same group. Radio Buttons are commonly used in forms, surveys, and settings where a single choice must be made.<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#radio-group).
27
27
  */
28
28
  const props = defineProps<{
29
29
  /**
@@ -30,7 +30,7 @@
30
30
  import { computed } from 'vue';
31
31
 
32
32
  /**
33
- * A select is a form element for multi-line text input, ideal for longer content like comments or descriptions.
33
+ * A select component allows users to choose a single option from a predefined list within a native dropdown menu. It helps simplify input by displaying only relevant choices, reducing the need for manual text entry. Select components are commonly used in forms, settings, and filters where structured selection is required.<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#select).
34
34
  */
35
35
  const props = withDefaults(
36
36
  defineProps<{
@@ -69,7 +69,7 @@ const props = withDefaults(
69
69
  */
70
70
  disabled?: boolean;
71
71
  /**
72
- * Determines the size of the select
72
+ * Determines the size of the select.
73
73
  */
74
74
  size?: 's' | 'm';
75
75
  /**
@@ -96,6 +96,10 @@ const emit = defineEmits<{
96
96
  */
97
97
  (on: 'update:modelValue', value: string | number): void;
98
98
  }>();
99
+
100
+ defineOptions({
101
+ inheritAttrs: false,
102
+ });
99
103
  </script>
100
104
 
101
105
  <style lang="scss" scoped>
@@ -8,7 +8,7 @@ const meta: Meta<typeof MStatusBadge> = {
8
8
  docs: {
9
9
  description: {
10
10
  component:
11
- 'A status badge indicates the status of an entity and can evolve at any time.',
11
+ 'A Status Badge is used to indicate the current status of an element, providing a clear and concise visual cue. The status can change dynamically based on updates, events, or conditions within the system. Status Badges help users quickly identify the state of an item, such as an order status, system health, or process completion. They are often color-coded to enhance readability and recognition.',
12
12
  },
13
13
  },
14
14
  },
@@ -9,16 +9,16 @@
9
9
  import { computed } from 'vue';
10
10
  import MStatusDot from '../statusdot/MStatusDot.vue';
11
11
  /**
12
- * A status badge indicates the status of an entity and can evolve at any time.
12
+ * A Status Badge is used to indicate the current status of an element, providing a clear and concise visual cue. The status can change dynamically based on updates, events, or conditions within the system. Status Badges help users quickly identify the state of an item, such as an order status, system health, or process completion. They are often color-coded to enhance readability and recognition.
13
13
  */
14
14
  const props = withDefaults(
15
15
  defineProps<{
16
16
  /**
17
- * Content of the Status Badge
17
+ * Content of the status badge
18
18
  */
19
19
  label: string;
20
20
  /**
21
- * Allows to define the Status Badge style
21
+ * Allows to define the status badge type
22
22
  */
23
23
  status?: 'info' | 'success' | 'warning' | 'error' | 'neutral';
24
24
  }>(),
@@ -5,16 +5,16 @@
5
5
  <script setup lang="ts">
6
6
  import { computed } from 'vue';
7
7
  /**
8
- * A badge indicates the status of an entity and can evolve at any time.
8
+ * A Status dot is a small visual indicator used to represent the state or condition of an element. It is often color-coded to convey different statuses at a glance, such as availability, activity, or urgency. Status Dots are commonly found in user presence indicators, system statuses, or process tracking to provide quick, unobtrusive feedback.
9
9
  */
10
10
  const props = withDefaults(
11
11
  defineProps<{
12
12
  /**
13
- * Allows to define the Status Dot style
13
+ * Allows to define the status dot type.
14
14
  */
15
15
  status?: 'info' | 'success' | 'warning' | 'error' | 'neutral';
16
16
  /**
17
- * Determines the size of the Status Dot.
17
+ * Determines the size of the status dot.
18
18
  */
19
19
  size?: 's' | 'm' | 'l';
20
20
  }>(),
@@ -46,15 +46,15 @@ import MIconButton from '../iconbutton/MIconButton.vue';
46
46
  const props = withDefaults(
47
47
  defineProps<{
48
48
  /**
49
- * Title of the Status Notification
49
+ * Title of the status notification.
50
50
  */
51
51
  title: string;
52
52
  /**
53
- * Description of the Status Notification
53
+ * Description of the status notification.
54
54
  */
55
55
  description: string;
56
56
  /**
57
- * Allows to define the Status Notification style
57
+ * Allows to define the status notification type.
58
58
  */
59
59
  status?: 'info' | 'success' | 'warning' | 'error';
60
60
  /**
@@ -1,7 +1,7 @@
1
1
  import { mount } from '@vue/test-utils';
2
2
  import { describe, it, expect } from 'vitest';
3
3
  import MTabs from './MTabs.vue';
4
- import { defineComponent, h } from 'vue';
4
+ import { defineComponent, h, markRaw } from 'vue';
5
5
 
6
6
  describe('MTabs.vue', () => {
7
7
  const tabs = [{ label: 'Tab 1' }, { label: 'Tab 2' }, { label: 'Tab 3' }];
@@ -119,14 +119,14 @@ describe('MTabs.vue', () => {
119
119
  });
120
120
 
121
121
  it('renders icon component when icon prop is provided', () => {
122
- const DummyIcon = defineComponent({
122
+ const DummyIcon = markRaw(defineComponent({
123
123
  name: 'DummyIcon',
124
124
  render() {
125
125
  return h('svg', { class: 'dummy-icon' }, [
126
126
  h('circle', { cx: 10, cy: 10, r: 10 }),
127
127
  ]);
128
128
  },
129
- });
129
+ }));
130
130
 
131
131
  const tabsWithIcon = [
132
132
  { label: 'Tab 1', icon: DummyIcon },
@@ -9,7 +9,7 @@ const meta: Meta<typeof MTag> = {
9
9
  docs: {
10
10
  description: {
11
11
  component:
12
- 'A Status dot is a small visual indicator used to represent the state or condition of an element. It is often color-coded to convey different statuses at a glance, such as availability, activity, or urgency. Status Dots are commonly found in user presence indicators, system statuses, or process tracking to provide quick, unobtrusive feedback.',
12
+ 'A Tag is a UI element used to filter data, categorize, select or deselect an option. It can appear standalone, in a group, or embedded within other components. Depending on its use, a tag can be interactive (clickable, removable, selectable) or static (serving as a visual indicator).',
13
13
  },
14
14
  },
15
15
  },
@@ -144,6 +144,10 @@ const emit = defineEmits<{
144
144
  */
145
145
  (on: 'remove-tag', id: string): void;
146
146
  }>();
147
+
148
+ defineOptions({
149
+ inheritAttrs: false,
150
+ });
147
151
  </script>
148
152
 
149
153
  <style lang="scss" scoped>
@@ -23,7 +23,7 @@
23
23
  import { computed } from 'vue';
24
24
 
25
25
  /**
26
- * A textarea is a form element for multi-line text input, ideal for longer content like comments or descriptions.
26
+ * A text area is an input designed for multi-line text entry, allowing users to input longer content compared to a standard text input. It is commonly used for comments, feedback, descriptions, and messaging. Text areas can be resizable or fixed in height, depending on the context, and often include placeholder text, character limits, and validation messages to guide users.<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#textarea).
27
27
  */
28
28
  const props = withDefaults(
29
29
  defineProps<{
@@ -85,6 +85,10 @@ const emit = defineEmits<{
85
85
  */
86
86
  (on: 'update:modelValue', value: string | number): void;
87
87
  }>();
88
+
89
+ defineOptions({
90
+ inheritAttrs: false,
91
+ });
88
92
  </script>
89
93
 
90
94
  <style lang="scss" scoped>
@@ -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
- * Inputs are used to create input fields with text on a single line. Their states depends on the user interaction or the context.
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>
@@ -58,11 +58,11 @@ import MLinearProgressbarBuffer from '../linearprogressbarbuffer/MLinearProgress
58
58
  const props = withDefaults(
59
59
  defineProps<{
60
60
  /**
61
- * if `true`, display the Toaster.
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
- * if `true`, display the close button.
77
+ * If `true`, display the close button.
78
78
  */
79
79
  closable?: boolean;
80
80
  /**
81
- * if `true`, display the progress bar of the duration.
81
+ * If `true`, display the progress bar of the duration.
82
82
  */
83
83
  progress?: boolean;
84
84
  /**
@@ -24,7 +24,7 @@
24
24
  import { computed } from 'vue';
25
25
 
26
26
  /**
27
- * A toggle is used to choose between two possibilities and when the user needs instant feedback. It is common to use toggles when you need to show or hide content and "on/off" switch.
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>
@@ -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 used to choose between two possibilities and when the user needs instant feedback. It is common to use toggles when you need to show or hide content and "on/off" switch.
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).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
- * list of properties of each toggle of the toggle group
36
+ * List of properties of each toggle of the toggle group.
37
37
  */
38
38
  options: Array<{
39
39
  id: string;
@@ -1,11 +1,9 @@
1
1
  <template>
2
- <div class="tooltip-story-wrapper">
3
- <div class="mc-tooltip" :class="classObject" :aria-describedby="id">
4
- <slot />
5
- <span :id="id" class="mc-tooltip__content" role="tooltip">
6
- {{ text }}
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
- * if `true`, the tooltip display a pointer.
30
+ * If `true`, the tooltip display a pointer.
33
31
  */
34
32
  pointer?: boolean;
35
33
  }>(),
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,12 @@ 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
30
  export { default as MSelect } from './components/select/MSelect.vue';
31
31
  export { default as MStatusBadge } from './components/statusbadge/MStatusBadge.vue';
32
+ export { default as MStatusDot } from './components/statusdot/MStatusDot.vue';
32
33
  export { default as MStatusNotification } from './components/statusnotification/MStatusNotification.vue';
33
34
  export { default as MTabs } from './components/tabs/MTabs.vue';
34
35
  export { default as MTag } from './components/tag/MTag.vue';
@@ -36,5 +37,5 @@ export { default as MTextArea } from './components/textarea/MTextArea.vue';
36
37
  export { default as MTextInput } from './components/textinput/MTextInput.vue';
37
38
  export { default as MToaster } from './components/toaster/MToaster.vue';
38
39
  export { default as MToggle } from './components/toggle/MToggle.vue';
39
- export { default as MTooltip } from './components/tooltip/MTooltip.vue';
40
40
  export { default as MToggleGroup } from './components/togglegroup/MToggleGroup.vue';
41
+ export { default as MTooltip } from './components/tooltip/MTooltip.vue';