@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.
Files changed (128) hide show
  1. package/README.md +3 -3
  2. package/dist/mozaic-vue.css +1 -1
  3. package/dist/mozaic-vue.d.ts +334 -274
  4. package/dist/mozaic-vue.js +1215 -1144
  5. package/dist/mozaic-vue.js.map +1 -1
  6. package/dist/mozaic-vue.umd.cjs +1 -1
  7. package/dist/mozaic-vue.umd.cjs.map +1 -1
  8. package/package.json +9 -7
  9. package/src/components/Contributing.mdx +1 -1
  10. package/src/components/GettingStarted.mdx +1 -1
  11. package/src/components/Introduction.mdx +1 -1
  12. package/src/components/Support.mdx +1 -1
  13. package/src/components/avatar/MAvatar.stories.ts +1 -0
  14. package/src/components/avatar/MAvatar.vue +2 -2
  15. package/src/components/avatar/README.md +16 -0
  16. package/src/components/breadcrumb/MBreadcrumb.stories.ts +1 -0
  17. package/src/components/breadcrumb/MBreadcrumb.vue +3 -3
  18. package/src/components/breadcrumb/README.md +11 -0
  19. package/src/components/button/MButton.stories.ts +1 -2
  20. package/src/components/button/MButton.vue +7 -2
  21. package/src/components/button/README.md +24 -0
  22. package/src/components/callout/MCallout.stories.ts +1 -0
  23. package/src/components/callout/MCallout.vue +5 -5
  24. package/src/components/callout/README.md +19 -0
  25. package/src/components/checkbox/MCheckbox.vue +5 -1
  26. package/src/components/checkbox/README.md +23 -0
  27. package/src/components/checkboxgroup/MCheckboxGroup.stories.ts +1 -1
  28. package/src/components/checkboxgroup/MCheckboxGroup.vue +1 -1
  29. package/src/components/checkboxgroup/README.md +20 -0
  30. package/src/components/circularprogressbar/MCircularProgressbar.stories.ts +1 -0
  31. package/src/components/circularprogressbar/MCircularProgressbar.vue +2 -2
  32. package/src/components/circularprogressbar/README.md +14 -0
  33. package/src/components/container/MContainer.stories.ts +11 -3
  34. package/src/components/container/MContainer.vue +3 -3
  35. package/src/components/container/README.md +16 -0
  36. package/src/components/datepicker/MDatepicker.stories.ts +2 -1
  37. package/src/components/datepicker/MDatepicker.vue +7 -3
  38. package/src/components/datepicker/README.md +24 -0
  39. package/src/components/divider/MDivider.spec.ts +5 -5
  40. package/src/components/divider/MDivider.stories.ts +8 -13
  41. package/src/components/divider/MDivider.vue +8 -8
  42. package/src/components/divider/README.md +18 -0
  43. package/src/components/drawer/MDrawer.spec.ts +28 -0
  44. package/src/components/drawer/MDrawer.stories.ts +1 -0
  45. package/src/components/drawer/MDrawer.vue +16 -5
  46. package/src/components/drawer/README.md +29 -0
  47. package/src/components/field/MField.vue +1 -1
  48. package/src/components/field/README.md +24 -0
  49. package/src/components/fieldgroup/README.md +22 -0
  50. package/src/components/flag/MFlag.vue +2 -2
  51. package/src/components/flag/README.md +11 -0
  52. package/src/components/iconbutton/MIconButton.stories.ts +1 -0
  53. package/src/components/iconbutton/MIconButton.vue +2 -2
  54. package/src/components/iconbutton/README.md +21 -0
  55. package/src/components/linearprogressbarbuffer/MLinearProgressbarBuffer.stories.ts +1 -0
  56. package/src/components/linearprogressbarbuffer/MLinearProgressbarBuffer.vue +5 -1
  57. package/src/components/linearprogressbarbuffer/README.md +11 -0
  58. package/src/components/linearprogressbarpercentage/MLinearProgressbarPercentage.stories.ts +1 -0
  59. package/src/components/linearprogressbarpercentage/MLinearProgressbarPercentage.vue +4 -0
  60. package/src/components/linearprogressbarpercentage/README.md +10 -0
  61. package/src/components/link/MLink.stories.ts +2 -2
  62. package/src/components/link/MLink.vue +22 -12
  63. package/src/components/link/README.md +23 -0
  64. package/src/components/loader/MLoader.vue +1 -1
  65. package/src/components/loader/README.md +12 -0
  66. package/src/components/loadingoverlay/MLoadingOverlay.stories.ts +1 -1
  67. package/src/components/loadingoverlay/MLoadingOverlay.vue +4 -0
  68. package/src/components/loadingoverlay/README.md +11 -0
  69. package/src/components/modal/MModal.vue +11 -7
  70. package/src/components/modal/README.md +28 -0
  71. package/src/components/numberbadge/MNumberBadge.vue +4 -4
  72. package/src/components/numberbadge/README.md +12 -0
  73. package/src/components/overlay/MOverlay.stories.ts +1 -1
  74. package/src/components/overlay/MOverlay.vue +2 -2
  75. package/src/components/overlay/README.md +17 -0
  76. package/src/components/pagination/MPagination.stories.ts +1 -0
  77. package/src/components/pagination/MPagination.vue +1 -1
  78. package/src/components/pagination/README.md +20 -0
  79. package/src/components/passwordinput/MPasswordInput.vue +6 -2
  80. package/src/components/passwordinput/README.md +25 -0
  81. package/src/components/pincode/MPincode.spec.ts +4 -1
  82. package/src/components/pincode/MPincode.stories.ts +2 -1
  83. package/src/components/pincode/MPincode.vue +10 -2
  84. package/src/components/pincode/README.md +22 -0
  85. package/src/components/quantityselector/MQuantitySelector.stories.ts +1 -1
  86. package/src/components/quantityselector/MQuantitySelector.vue +6 -2
  87. package/src/components/quantityselector/README.md +27 -0
  88. package/src/components/radio/MRadio.vue +5 -1
  89. package/src/components/radio/README.md +21 -0
  90. package/src/components/radiogroup/MRadioGroup.vue +1 -1
  91. package/src/components/radiogroup/README.md +21 -0
  92. package/src/components/segmentedcontrol/MSegmentedControl.spec.ts +116 -0
  93. package/src/components/segmentedcontrol/MSegmentedControl.stories.ts +78 -0
  94. package/src/components/segmentedcontrol/MSegmentedControl.vue +92 -0
  95. package/src/components/segmentedcontrol/README.md +19 -0
  96. package/src/components/select/MSelect.vue +6 -2
  97. package/src/components/select/README.md +24 -0
  98. package/src/components/statusbadge/MStatusBadge.stories.ts +1 -1
  99. package/src/components/statusbadge/MStatusBadge.vue +3 -3
  100. package/src/components/statusbadge/README.md +11 -0
  101. package/src/components/statusdot/MStatusDot.stories.ts +1 -0
  102. package/src/components/statusdot/MStatusDot.vue +3 -3
  103. package/src/components/statusdot/README.md +11 -0
  104. package/src/components/statusnotification/MStatusNotification.vue +3 -3
  105. package/src/components/statusnotification/README.md +25 -0
  106. package/src/components/tabs/MTabs.stories.ts +23 -1
  107. package/src/components/tabs/MTabs.vue +8 -0
  108. package/src/components/tabs/Mtabs.spec.ts +30 -9
  109. package/src/components/tabs/README.md +20 -0
  110. package/src/components/tag/MTag.stories.ts +1 -1
  111. package/src/components/tag/MTag.vue +4 -0
  112. package/src/components/tag/README.md +25 -0
  113. package/src/components/textarea/MTextArea.vue +5 -1
  114. package/src/components/textarea/README.md +25 -0
  115. package/src/components/textinput/MTextInput.vue +10 -6
  116. package/src/components/textinput/README.md +32 -0
  117. package/src/components/toaster/MToaster.stories.ts +1 -0
  118. package/src/components/toaster/MToaster.vue +4 -4
  119. package/src/components/toaster/README.md +28 -0
  120. package/src/components/toggle/MToggle.vue +6 -2
  121. package/src/components/toggle/README.md +21 -0
  122. package/src/components/togglegroup/MToggleGroup.vue +2 -2
  123. package/src/components/togglegroup/README.md +20 -0
  124. package/src/components/tooltip/MTooltip.vue +8 -10
  125. package/src/components/tooltip/README.md +19 -0
  126. package/src/components/usingIcons.mdx +1 -1
  127. package/src/components/usingPresets.mdx +1 -1
  128. package/src/main.ts +6 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mozaic-ds/vue",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
4
4
  "type": "module",
5
5
  "description": "Mozaic-Vue is the Vue.js implementation of ADEO Design system",
6
6
  "author": "ADEO - ADEO Design system",
@@ -22,6 +22,7 @@
22
22
  "test:unit": "vitest",
23
23
  "format": "prettier --write src/",
24
24
  "build": "vite build",
25
+ "readme": "node generate-readmes.js ",
25
26
  "storybook": "storybook dev -p 6006",
26
27
  "storybook:build": "npm run build-storybook",
27
28
  "storybook:deploy": "storybook-to-ghpages",
@@ -40,14 +41,14 @@
40
41
  "*.d.ts"
41
42
  ],
42
43
  "dependencies": {
43
- "@mozaic-ds/styles": "2.0.0-beta.5",
44
+ "@mozaic-ds/styles": "^2.0.1",
44
45
  "@mozaic-ds/web-fonts": "1.65.0",
45
46
  "postcss-scss": "^4.0.9",
46
47
  "vue": "^3.5.13"
47
48
  },
48
49
  "devDependencies": {
49
- "@commitlint/cli": "^19.8.0",
50
- "@commitlint/config-conventional": "^19.8.0",
50
+ "@commitlint/cli": "^20.1.0",
51
+ "@commitlint/config-conventional": "^20.0.0",
51
52
  "@mozaic-ds/css-dev-tools": "1.75.0",
52
53
  "@mozaic-ds/icons-vue": "^1.0.0",
53
54
  "@release-it/conventional-changelog": "^10.0.1",
@@ -55,19 +56,18 @@
55
56
  "@storybook/addon-docs": "^9.0.18",
56
57
  "@storybook/addon-themes": "^9.0.18",
57
58
  "@storybook/vue3-vite": "^9.0.18",
58
- "@types/jsdom": "^21.1.7",
59
+ "@types/jsdom": "^27.0.0",
59
60
  "@vitejs/plugin-vue": "^6.0.1",
60
61
  "@vitest/coverage-v8": "^3.0.9",
61
62
  "@vitest/eslint-plugin": "^1.1.38",
62
63
  "@vue/eslint-config-prettier": "^10.2.0",
63
64
  "@vue/eslint-config-typescript": "^14.5.0",
64
65
  "@vue/test-utils": "^2.4.6",
65
- "all-contributors-cli": "^6.26.1",
66
66
  "eslint": "^9.22.0",
67
67
  "eslint-plugin-vue": "^10.0.0",
68
68
  "eslint-plugin-vuejs-accessibility": "^2.4.1",
69
69
  "husky": "^9.1.7",
70
- "jsdom": "^26.0.0",
70
+ "jsdom": "^27.0.0",
71
71
  "lint-staged": "^16.1.5",
72
72
  "mdx-mermaid": "^2.0.3",
73
73
  "mermaid": "^11.5.0",
@@ -76,10 +76,12 @@
76
76
  "release-it": "^19.0.4",
77
77
  "sass": "^1.86.0",
78
78
  "storybook": "^9.0.18",
79
+ "storybook-addon-tag-badges": "^2.0.2",
79
80
  "typescript": "^5.7.2",
80
81
  "vite": "^7.1.1",
81
82
  "vite-plugin-dts": "^4.5.3",
82
83
  "vitest": "^3.0.9",
84
+ "vue-component-meta": "^3.0.8",
83
85
  "vue-eslint-parser": "^10.1.1"
84
86
  },
85
87
  "bugs": {
@@ -1,7 +1,7 @@
1
1
  import { Meta } from '@storybook/addon-docs/blocks';
2
2
  import { Mermaid } from 'mdx-mermaid/Mermaid';
3
3
 
4
- <Meta title="Contributing" />
4
+ <Meta title="Getting Started/Contributing" />
5
5
 
6
6
  # Be part of something bigger!
7
7
 
@@ -1,6 +1,6 @@
1
1
  import { Meta, Source } from '@storybook/addon-docs/blocks';
2
2
 
3
- <Meta title="Getting Started" />
3
+ <Meta title="Getting Started/Getting Started" />
4
4
 
5
5
  # Getting Started
6
6
 
@@ -2,7 +2,7 @@ import { Meta, Source } from '@storybook/addon-docs/blocks';
2
2
  import ads from '../../.storybook/assets/logo.svg';
3
3
  import vue from '../../.storybook/assets/vue.svg';
4
4
 
5
- <Meta title="Introduction" />
5
+ <Meta title="Getting Started/Introduction" />
6
6
 
7
7
  <p
8
8
  style={{
@@ -1,6 +1,6 @@
1
1
  import { Meta } from '@storybook/addon-docs/blocks';
2
2
 
3
- <Meta title="Support" />
3
+ <Meta title="Getting Started/Support" />
4
4
 
5
5
  # Support
6
6
 
@@ -6,6 +6,7 @@ import Profile24 from '@mozaic-ds/icons-vue/src/components/Profile24/Profile24.v
6
6
  const meta: Meta<typeof MAvatar> = {
7
7
  title: 'Content/Avatar',
8
8
  component: MAvatar,
9
+ tags: ['v2'],
9
10
  parameters: {
10
11
  docs: {
11
12
  description: {
@@ -12,7 +12,7 @@ import { computed, type VNode } from 'vue';
12
12
  const props = withDefaults(
13
13
  defineProps<{
14
14
  /**
15
- * Allows to define the avatar size
15
+ * Allows to define the avatar size.
16
16
  */
17
17
  size?: 's' | 'm' | 'l';
18
18
  }>(),
@@ -29,7 +29,7 @@ const classObject = computed(() => {
29
29
 
30
30
  defineSlots<{
31
31
  /**
32
- * Use this slot to insert the image, icon or intials of the avatar
32
+ * Use this slot to insert the image, icon or intials of the avatar.
33
33
  */
34
34
  default: VNode;
35
35
  }>();
@@ -0,0 +1,16 @@
1
+ # MAvatar
2
+
3
+ An avatar is a graphical representation of a user, entity, or group, commonly displayed as an image, initials, or an icon. It helps identify individuals or accounts in profiles, comments, chat interfaces, and user lists. Avatars can be customized with different styles, sizes, and fallback options (such as initials or placeholders) to ensure consistency and recognition across interfaces. When multiple users are represented, Avatar groups provide a compact way to display them collectively.
4
+
5
+
6
+ ## Props
7
+
8
+ | Name | Description | Type | Default |
9
+ | --- | --- | --- | --- |
10
+ | `size` | Allows to define the avatar size. | `"s"` `"m"` `"l"` | `"s"` |
11
+
12
+ ## Slots
13
+
14
+ | Name | Description |
15
+ | --- | --- |
16
+ | `default` | Use this slot to insert the image, icon or intials of the avatar. |
@@ -35,6 +35,7 @@ const meta: Meta<typeof MBreadcrumb> = {
35
35
  router: true,
36
36
  },
37
37
  ],
38
+ ariaLabel: 'breadcrumb',
38
39
  },
39
40
  render: (args) => ({
40
41
  components: { MBreadcrumb },
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <nav class="mc-breadcrumb" :class="classObject" aria-label="Breadcrumb">
2
+ <nav class="mc-breadcrumb" :class="classObject">
3
3
  <ul class="mc-breadcrumb__container">
4
4
  <li
5
5
  class="mc-breadcrumb__item"
@@ -31,11 +31,11 @@ import MLink from '../link/MLink.vue';
31
31
  */
32
32
  const props = defineProps<{
33
33
  /**
34
- * Allows to define the breadcrumb style
34
+ * Allows to define the breadcrumb appearance.
35
35
  */
36
36
  appearance?: 'standard' | 'inverse';
37
37
  /**
38
- * Links of the breadcrumb
38
+ * Links of the breadcrumb.
39
39
  */
40
40
  links: Array<{
41
41
  /**
@@ -0,0 +1,11 @@
1
+ # MBreadcrumb
2
+
3
+ A breadcrumb is a navigation help that displays the hierarchical path of the current page within a website or application. It helps users understand their location and allows them to navigate back to previous levels easily. Breadcrumbs improve usability and accessibility, especially in multi-level websites, dashboards, and e-commerce platforms.
4
+
5
+
6
+ ## Props
7
+
8
+ | Name | Description | Type | Default |
9
+ | --- | --- | --- | --- |
10
+ | `appearance` | Allows to define the breadcrumb appearance. | `"standard"` `"inverse"` | - |
11
+ | `links*` | Links of the breadcrumb. | `{ label: string; href: string; router?: boolean` `undefined; }[]` | - |
@@ -1,7 +1,6 @@
1
1
  import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
2
 
3
3
  import MButton from './MButton.vue';
4
- import Download24 from '@mozaic-ds/icons-vue/src/components/Download24/Download24.vue';
5
4
  import ChevronRight24 from '@mozaic-ds/icons-vue/src/components/ChevronRight24/ChevronRight24.vue';
6
5
 
7
6
  const meta: Meta<typeof MButton> = {
@@ -17,7 +16,7 @@ const meta: Meta<typeof MButton> = {
17
16
  },
18
17
  args: { default: 'Button Label' },
19
18
  render: (args) => ({
20
- components: { MButton, Download24, ChevronRight24 },
19
+ components: { MButton, ChevronRight24 },
21
20
  setup() {
22
21
  return { args };
23
22
  },
@@ -41,7 +41,7 @@
41
41
  import { computed, type VNode } from 'vue';
42
42
  import MLoader from '../loader/MLoader.vue';
43
43
  /**
44
- * Buttons are used to trigger actions. Their appearance is depending on the type of action required from the user, or the context.
44
+ * Buttons are key interactive elements used to perform actions and can be used as standalone element, or as part of another component. Their appearance depends on the type of action required from the user and the context in which they are used.
45
45
  */
46
46
  const props = withDefaults(
47
47
  defineProps<{
@@ -91,7 +91,7 @@ defineSlots<{
91
91
  */
92
92
  default: string;
93
93
  /**
94
- * Use this slot to insert an icon for the Button
94
+ * Use this slot to insert an icon for the Button.
95
95
  */
96
96
  icon?: VNode;
97
97
  }>();
@@ -110,4 +110,9 @@ const classObject = computed(() => {
110
110
 
111
111
  <style lang="scss" scoped>
112
112
  @use '@mozaic-ds/styles/components/button';
113
+
114
+ .mc-button__icon::v-deep(svg) {
115
+ width: 100%;
116
+ height: 100%;
117
+ }
113
118
  </style>
@@ -0,0 +1,24 @@
1
+ # MButton
2
+
3
+ Buttons are key interactive elements used to perform actions and can be used as standalone element, or as part of another component. Their appearance depends on the type of action required from the user and the context in which they are used.
4
+
5
+
6
+ ## Props
7
+
8
+ | Name | Description | Type | Default |
9
+ | --- | --- | --- | --- |
10
+ | `appearance` | Defines the visual style of the button. | `"standard"` `"inverse"` `"accent"` `"danger"` | `"standard"` |
11
+ | `size` | Determines the size of the button. | `"s"` `"m"` `"l"` | `"m"` |
12
+ | `disabled` | If `true`, disables the button, making it non-interactive. | `boolean` | - |
13
+ | `ghost` | If `true`, applies a "ghost" style to the button, typically a transparent background with a border. | `boolean` | - |
14
+ | `outlined` | If `true`, the button gets an outlined style, usually with just the border and no solid background. | `boolean` | - |
15
+ | `iconPosition` | Controls the positioning of an icon in the button. | `"left"` `"right"` `"only"` | - |
16
+ | `type` | Specifies the button's HTML `type` attribute. | `"button"` `"reset"` `"submit"` | `"button"` |
17
+ | `isLoading` | If `true`, a loading state is displayed. | `boolean` | - |
18
+
19
+ ## Slots
20
+
21
+ | Name | Description |
22
+ | --- | --- |
23
+ | `default` | The content displayed in the button. |
24
+ | `icon` | Use this slot to insert an icon for the Button. |
@@ -8,6 +8,7 @@ import ImageAlt32 from '@mozaic-ds/icons-vue/src/components/ImageAlt32/ImageAlt3
8
8
  const meta: Meta<typeof MCallout> = {
9
9
  title: 'Content/Callout',
10
10
  component: MCallout,
11
+ tags: ['v2'],
11
12
  parameters: {
12
13
  docs: {
13
14
  description: {
@@ -25,15 +25,15 @@ import { computed, type VNode } from 'vue';
25
25
  const props = withDefaults(
26
26
  defineProps<{
27
27
  /**
28
- * Title of the callout
28
+ * Title of the callout.
29
29
  */
30
30
  title: string;
31
31
  /**
32
- * Description of the callout
32
+ * Description of the callout.
33
33
  */
34
34
  description: string;
35
35
  /**
36
- * Allows to define the callout style
36
+ * Allows to define the callout appearance.
37
37
  */
38
38
  appearance?: 'standard' | 'accent' | 'tips' | 'inverse';
39
39
  }>(),
@@ -44,11 +44,11 @@ const props = withDefaults(
44
44
 
45
45
  defineSlots<{
46
46
  /**
47
- * Use this slot to insert an icon
47
+ * Use this slot to insert an icon.
48
48
  */
49
49
  icon?: VNode;
50
50
  /**
51
- * Use this slot to insert a button or a link in the footer of the callout
51
+ * Use this slot to insert a button or a link in the footer of the callout.
52
52
  */
53
53
  footer?: VNode;
54
54
  }>();
@@ -0,0 +1,19 @@
1
+ # MCallout
2
+
3
+ A callout is used to highlight additional information that can assist users with tips, extra details, or helpful guidance, without signaling a critical status or alert. Unlike notifications, callouts are not triggered by user actions and do not correspond to specific system states. They are designed to enhance the user experience by providing contextually relevant information that supports comprehension and usability.
4
+
5
+
6
+ ## Props
7
+
8
+ | Name | Description | Type | Default |
9
+ | --- | --- | --- | --- |
10
+ | `title*` | Title of the callout. | `string` | - |
11
+ | `description*` | Description of the callout. | `string` | - |
12
+ | `appearance` | Allows to define the callout appearance. | `"standard"` `"inverse"` `"accent"` `"tips"` | `"standard"` |
13
+
14
+ ## Slots
15
+
16
+ | Name | Description |
17
+ | --- | --- |
18
+ | `icon` | Use this slot to insert an icon. |
19
+ | `footer` | Use this slot to insert a button or a link in the footer of the callout. |
@@ -25,7 +25,7 @@
25
25
  import { computed } from 'vue';
26
26
 
27
27
  /**
28
- * Checkboxes are used to select one or multiple options in a list. They usually find their place in forms and are also used to accept some mentions.
28
+ * A checkbox is an interactive component used to select or deselect an option, typically within a list of choices. It allows users to make multiple selections independently and is often accompanied by a label for clarity. Checkboxes are commonly used in forms, filters, settings, and preference selections to provide a simple and intuitive way to enable or disable specific options.
29
29
  */
30
30
  const props = defineProps<{
31
31
  /**
@@ -80,6 +80,10 @@ const emit = defineEmits<{
80
80
  */
81
81
  (on: 'update:modelValue', value: boolean): void;
82
82
  }>();
83
+
84
+ defineOptions({
85
+ inheritAttrs: false,
86
+ });
83
87
  </script>
84
88
 
85
89
  <style lang="scss" scoped>
@@ -0,0 +1,23 @@
1
+ # MCheckbox
2
+
3
+ A checkbox is an interactive component used to select or deselect an option, typically within a list of choices. It allows users to make multiple selections independently and is often accompanied by a label for clarity. Checkboxes are commonly used in forms, filters, settings, and preference selections to provide a simple and intuitive way to enable or disable specific options.
4
+
5
+
6
+ ## Props
7
+
8
+ | Name | Description | Type | Default |
9
+ | --- | --- | --- | --- |
10
+ | `id*` | A unique identifier for the checkbox, used to associate the label with the form element. | `string` | - |
11
+ | `name` | The name attribute for the checkbox element, typically used for form submission. | `string` | - |
12
+ | `label` | The text label displayed next to the checkbox. | `string` | - |
13
+ | `modelValue` | The checkbox's checked state, bound via v-model. | `boolean` | - |
14
+ | `indeterminate` | Sets the checkbox to an indeterminate state (partially selected). | `boolean` | - |
15
+ | `isInvalid` | If `true`, applies an invalid state to the checkbox. | `boolean` | - |
16
+ | `disabled` | If `true`, disables the checkbox, making it non-interactive. | `boolean` | - |
17
+ | `indented` | If `true`, indent the checkbox. | `boolean` | - |
18
+
19
+ ## Events
20
+
21
+ | Name | Description | Type |
22
+ | --- | --- | --- |
23
+ | `update:modelValue` | Emits when the checkbox value changes, updating the modelValue prop. | [value: boolean] |
@@ -10,7 +10,7 @@ const meta: Meta<typeof MCheckboxGroup> = {
10
10
  docs: {
11
11
  description: {
12
12
  component:
13
- 'A field label is a text element that identifies the purpose of an input field, providing users with clear guidance on what information to enter. It is typically placed above the input field and may include indicators for required or optional fields. Field Labels improve form usability, accessibility, and data entry accuracy by ensuring users understand the expected input.<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#checkbox-group).',
13
+ 'A checkbox is an interactive component used to select or deselect an option, typically within a list of choices. It allows users to make multiple selections independently and is often accompanied by a label for clarity. Checkboxes are commonly used in forms, filters, settings, and preference selections to provide a simple and intuitive way to enable or disable specific options.<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
  },
@@ -22,7 +22,7 @@ import { computed, ref, watch } from 'vue';
22
22
  import MCheckbox from '../checkbox/MCheckbox.vue';
23
23
 
24
24
  /**
25
- * Checkboxes are used to select one or multiple options in a list. They usually find their place in forms and are also used to accept some mentions.
25
+ * A checkbox is an interactive component used to select or deselect an option, typically within a list of choices. It allows users to make multiple selections independently and is often accompanied by a label for clarity. Checkboxes are commonly used in forms, filters, settings, and preference selections to provide a simple and intuitive way to enable or disable specific options. <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).
26
26
  */
27
27
  const props = defineProps<{
28
28
  /**
@@ -0,0 +1,20 @@
1
+ # MCheckboxGroup
2
+
3
+ A checkbox is an interactive component used to select or deselect an option, typically within a list of choices. It allows users to make multiple selections independently and is often accompanied by a label for clarity. Checkboxes are commonly used in forms, filters, settings, and preference selections to provide a simple and intuitive way to enable or disable specific options. <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
+ | `name*` | The name attribute for the checkbox 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 checkbox button of the checkbox group | `{ id: string; label: string; value: string; disabled?: boolean` `undefined; isInvalid?: boolean` `undefined; indented?: boolean` `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 checkbox group value changes, updating the modelValue prop. | [value: Array<string>] |
@@ -4,6 +4,7 @@ import MCircularProgressbar from './MCircularProgressbar.vue';
4
4
  const meta: Meta<typeof MCircularProgressbar> = {
5
5
  title: 'Indicators/Circular Progress Bar',
6
6
  component: MCircularProgressbar,
7
+ tags: ['v2'],
7
8
  parameters: {
8
9
  docs: {
9
10
  description: {
@@ -51,7 +51,7 @@ import { computed } from 'vue';
51
51
  const props = withDefaults(
52
52
  defineProps<{
53
53
  /**
54
- * Allows to define the progress bar size
54
+ * Sets the size of the progress bar.
55
55
  */
56
56
  size?: 's' | 'm' | 'l';
57
57
  /**
@@ -59,7 +59,7 @@ const props = withDefaults(
59
59
  */
60
60
  value?: number;
61
61
  /**
62
- * Display type: `'percentage'` or `'content'`.
62
+ * Shows either a percentage or custom content.
63
63
  */
64
64
  type?: 'percentage' | 'content';
65
65
  /**
@@ -0,0 +1,14 @@
1
+ # MCircularProgressbar
2
+
3
+ A circular progress bar visually represents progress toward a goal or completion of a process using a circular shape. It is commonly used to indicate task completion or performance metrics. The progress is displayed as a partially filled ring, often accompanied by a percentage or status indicator. Circular Progress Bars are useful for providing users with real-time feedback on ongoing actions without taking up significant screen space.
4
+
5
+
6
+ ## Props
7
+
8
+ | Name | Description | Type | Default |
9
+ | --- | --- | --- | --- |
10
+ | `size` | Sets the size of the progress bar. | `"s"` `"m"` `"l"` | - |
11
+ | `value` | The current value of the progress bar. | `number` | `0` |
12
+ | `type` | Shows either a percentage or custom content. | `"percentage"` `"content"` | `"percentage"` |
13
+ | `contentValue` | Main content shown when `type` is `'content'`. | `string` | - |
14
+ | `additionalInfo` | Additional text shown to define the `contentValue`. | `string` | - |
@@ -4,8 +4,16 @@ import MContainer from './MContainer.vue';
4
4
  const meta: Meta<typeof MContainer> = {
5
5
  title: 'Foundations/Container',
6
6
  component: MContainer,
7
+ parameters: {
8
+ docs: {
9
+ description: {
10
+ component:
11
+ 'The Container component is designed to wrap your page or section content, typically grids or other layout elements. By default, it centers the content with a maximum width to ensure consistent alignment and spacing.',
12
+ },
13
+ },
14
+ },
7
15
  args: {
8
- default: `<h1>Container</h1>`
16
+ default: `<h1>Container</h1>`,
9
17
  },
10
18
  render: (args) => ({
11
19
  components: { MContainer },
@@ -25,8 +33,8 @@ type Story = StoryObj<typeof MContainer>;
25
33
  export const Standard: Story = {};
26
34
 
27
35
  export const Fluid: Story = {
28
- args: {
36
+ args: {
29
37
  fluid: true,
30
- default: `<h1>Fluid Container</h1>`
38
+ default: `<h1>Fluid Container</h1>`,
31
39
  },
32
40
  };
@@ -7,18 +7,18 @@
7
7
  <script setup lang="ts">
8
8
  import { computed, type VNode } from 'vue';
9
9
  /**
10
- * A Divider serves as a visual divider to separate content, providing a clear distinction between sections.
10
+ * The Container component is designed to wrap your page or section content, typically grids or other layout elements. By default, it centers the content with a maximum width to ensure consistent alignment and spacing.
11
11
  */
12
12
  const props = defineProps<{
13
13
  /**
14
- * Determines the orientation of the divider
14
+ * If `true`, the container will take the full width.
15
15
  */
16
16
  fluid?: boolean;
17
17
  }>();
18
18
 
19
19
  defineSlots<{
20
20
  /**
21
- * Use this slot to insert the content of the container
21
+ * Use this slot to insert the content of the container.
22
22
  */
23
23
  default?: VNode;
24
24
  }>();
@@ -0,0 +1,16 @@
1
+ # MContainer
2
+
3
+ The Container component is designed to wrap your page or section content, typically grids or other layout elements. By default, it centers the content with a maximum width to ensure consistent alignment and spacing.
4
+
5
+
6
+ ## Props
7
+
8
+ | Name | Description | Type | Default |
9
+ | --- | --- | --- | --- |
10
+ | `fluid` | If `true`, the container will take the full width. | `boolean` | - |
11
+
12
+ ## Slots
13
+
14
+ | Name | Description |
15
+ | --- | --- |
16
+ | `default` | Use this slot to insert the content of the container. |
@@ -6,11 +6,12 @@ import MDatepicker from './MDatepicker.vue';
6
6
  const meta: Meta<typeof MDatepicker> = {
7
7
  title: 'Form Elements/Datepicker',
8
8
  component: MDatepicker,
9
+ tags: ['v2'],
9
10
  parameters: {
10
11
  docs: {
11
12
  description: {
12
13
  component:
13
- 'A date picker is an input component that allows users to select a date from a calendar interface or manually enter a date value. It enhances usability by providing structured date selection, reducing input errors, and ensuring format consistency. Date Pickers are commonly used in forms, booking systems, scheduling tools, and data filtering interfaces to facilitate accurate date entry.',
14
+ 'A date picker is an input component that allows users to select a date from a calendar interface or manually enter a date value. It enhances usability by providing structured date selection, reducing input errors, and ensuring format consistency. Date Pickers are commonly used in forms, booking systems, scheduling tools, and data filtering interfaces to facilitate accurate date 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).',
14
15
  },
15
16
  },
16
17
  },
@@ -38,7 +38,7 @@
38
38
  import { computed, ref } from 'vue';
39
39
  import CrossCircleFilled24 from '@mozaic-ds/icons-vue/src/components/CrossCircleFilled24/CrossCircleFilled24.vue';
40
40
  /**
41
- * A date picker is an input component that allows users to select a date from a calendar interface or manually enter a date value. It enhances usability by providing structured date selection, reducing input errors, and ensuring format consistency. Date Pickers are commonly used in forms, booking systems, scheduling tools, and data filtering interfaces to facilitate accurate date entry.
41
+ * A date picker is an input component that allows users to select a date from a calendar interface or manually enter a date value. It enhances usability by providing structured date selection, reducing input errors, and ensuring format consistency. Date Pickers are commonly used in forms, booking systems, scheduling tools, and data filtering interfaces to facilitate accurate date 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).
42
42
  */
43
43
  const props = withDefaults(
44
44
  defineProps<{
@@ -63,7 +63,7 @@ const props = withDefaults(
63
63
  */
64
64
  disabled?: boolean;
65
65
  /**
66
- * Determines the size of the datepicker
66
+ * Determines the size of the datepicker.
67
67
  */
68
68
  size?: 's' | 'm';
69
69
  /**
@@ -75,7 +75,7 @@ const props = withDefaults(
75
75
  */
76
76
  isClearable?: boolean;
77
77
  /**
78
- * The label text for the clear button
78
+ * The label text for the clear button.
79
79
  */
80
80
  clearLabel?: string;
81
81
  }>(),
@@ -105,6 +105,10 @@ const emit = defineEmits<{
105
105
  */
106
106
  (on: 'update:modelValue', value: string | number): void;
107
107
  }>();
108
+
109
+ defineOptions({
110
+ inheritAttrs: false,
111
+ });
108
112
  </script>
109
113
 
110
114
  <style lang="scss" scoped>
@@ -0,0 +1,24 @@
1
+ # MDatepicker
2
+
3
+ A date picker is an input component that allows users to select a date from a calendar interface or manually enter a date value. It enhances usability by providing structured date selection, reducing input errors, and ensuring format consistency. Date Pickers are commonly used in forms, booking systems, scheduling tools, and data filtering interfaces to facilitate accurate date 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 datepicker element, used to associate the label with the form element. | `string` | - |
11
+ | `name` | The name attribute for the datepicker element, typically used for form submission. | `string` | - |
12
+ | `modelValue` | The current value of the datepicker field. | `string` `number` | - |
13
+ | `isInvalid` | If `true`, applies an invalid state to the datepicker. | `boolean` | - |
14
+ | `disabled` | If `true`, disables the datepicker, making it non-interactive. | `boolean` | - |
15
+ | `size` | Determines the size of the datepicker. | `"s"` `"m"` | `"m"` |
16
+ | `readonly` | If `true`, the datepicker is read-only (cannot be edited). | `boolean` | - |
17
+ | `isClearable` | If `true`, a clear button will appear when the datepicker has a value. | `boolean` | - |
18
+ | `clearLabel` | The label text for the clear button. | `string` | `"clear content"` |
19
+
20
+ ## Events
21
+
22
+ | Name | Description | Type |
23
+ | --- | --- | --- |
24
+ | `update:modelValue` | Emits when the datepicker value changes, updating the `modelValue` prop. | [value: string | number] |