@mozaic-ds/vue 2.11.0 â 2.13.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/dist/mozaic-vue.css +1 -1
- package/dist/mozaic-vue.d.ts +791 -353
- package/dist/mozaic-vue.js +2945 -2404
- package/dist/mozaic-vue.js.map +1 -1
- package/dist/mozaic-vue.umd.cjs +5 -5
- package/dist/mozaic-vue.umd.cjs.map +1 -1
- package/package.json +7 -6
- package/src/components/{usingPresets.mdx â BrandPresets.mdx} +2 -2
- package/src/components/Changelog.mdx +19 -0
- package/src/components/Color.mdx +226 -0
- package/src/components/Contributing.mdx +12 -6
- package/src/components/GettingStarted.mdx +1 -1
- package/src/components/Icon.stories.ts +134 -0
- package/src/components/Welcome.mdx +49 -0
- package/src/components/accordionlist/MAccordionList.spec.ts +136 -0
- package/src/components/accordionlist/MAccordionList.stories.ts +123 -0
- package/src/components/accordionlist/MAccordionList.vue +91 -0
- package/src/components/accordionlist/README.md +24 -0
- package/src/components/accordionlist/m-accordion-list.const.ts +9 -0
- package/src/components/accordionlistitem/MAccordionListItem.spec.ts +123 -0
- package/src/components/accordionlistitem/MAccordionListItem.vue +95 -0
- package/src/components/accordionlistitem/README.md +23 -0
- package/src/components/actionbottombar/MActionBottomBar.spec.ts +52 -0
- package/src/components/actionbottombar/MActionBottomBar.stories.ts +162 -0
- package/src/components/actionbottombar/MActionBottomBar.vue +45 -0
- package/src/components/actionbottombar/README.md +31 -0
- package/src/components/actionlistbox/MActionListbox.spec.ts +134 -0
- package/src/components/actionlistbox/MActionListbox.stories.ts +74 -0
- package/src/components/actionlistbox/MActionListbox.vue +89 -0
- package/src/components/actionlistbox/README.md +25 -0
- package/src/components/avatar/MAvatar.stories.ts +1 -1
- package/src/components/breadcrumb/README.md +14 -0
- package/src/components/builtinmenu/MBuiltInMenu.spec.ts +111 -0
- package/src/components/builtinmenu/MBuiltInMenu.stories.ts +59 -0
- package/src/components/builtinmenu/MBuiltInMenu.vue +110 -0
- package/src/components/builtinmenu/README.md +32 -0
- package/src/components/button/MButton.spec.ts +1 -1
- package/src/components/button/MButton.stories.ts +165 -5
- package/src/components/button/README.md +33 -1
- package/src/components/callout/MCallout.spec.ts +7 -6
- package/src/components/callout/MCallout.stories.ts +1 -2
- package/src/components/carousel/MCarousel.spec.ts +1 -2
- package/src/components/carousel/MCarousel.stories.ts +2 -1
- package/src/components/carousel/MCarousel.vue +1 -2
- package/src/components/carousel/README.md +14 -0
- package/src/components/checkbox/README.md +14 -0
- package/src/components/checkboxgroup/README.md +14 -0
- package/src/components/checklistmenu/MCheckListMenu.spec.ts +77 -0
- package/src/components/checklistmenu/MCheckListMenu.stories.ts +47 -0
- package/src/components/checklistmenu/MCheckListMenu.vue +61 -0
- package/src/components/checklistmenu/README.md +32 -0
- package/src/components/circularprogressbar/README.md +15 -1
- package/src/components/datepicker/MDatepicker.vue +1 -1
- package/src/components/divider/README.md +22 -0
- package/src/components/drawer/MDrawer.vue +1 -2
- package/src/components/drawer/README.md +16 -0
- package/src/components/field/README.md +14 -0
- package/src/components/fileuploader/MFileUploader.spec.ts +304 -0
- package/src/components/fileuploader/MFileUploader.stories.ts +123 -0
- package/src/components/fileuploader/MFileUploader.vue +314 -0
- package/src/components/fileuploader/README.md +58 -0
- package/src/components/fileuploaderitem/MFileUploaderItem.spec.ts +91 -0
- package/src/components/fileuploaderitem/MFileUploaderItem.vue +180 -0
- package/src/components/fileuploaderitem/README.md +58 -0
- package/src/components/flag/README.md +1 -1
- package/src/components/iconbutton/MIconButton.spec.ts +1 -1
- package/src/components/iconbutton/MIconButton.stories.ts +116 -7
- package/src/components/iconbutton/README.md +25 -1
- package/src/components/kpiitem/MKpiItem.vue +5 -3
- package/src/components/linearprogressbarbuffer/README.md +14 -0
- package/src/components/link/MLink.stories.ts +1 -2
- package/src/components/link/README.md +14 -0
- package/src/components/loader/README.md +20 -0
- package/src/components/loadingoverlay/README.md +14 -0
- package/src/components/modal/MModal.stories.ts +1 -2
- package/src/components/modal/MModal.vue +1 -1
- package/src/components/modal/README.md +16 -0
- package/src/components/numberbadge/README.md +17 -1
- package/src/components/overlay/README.md +16 -0
- package/src/components/pagination/MPagination.vue +1 -2
- package/src/components/pagination/README.md +18 -0
- package/src/components/passwordinput/MPasswordInput.vue +1 -1
- package/src/components/passwordinput/README.md +14 -0
- package/src/components/phonenumber/MPhoneNumber.spec.ts +7 -6
- package/src/components/phonenumber/MPhoneNumber.vue +1 -1
- package/src/components/quantityselector/MQuantitySelector.vue +1 -2
- package/src/components/radio/README.md +14 -0
- package/src/components/radiogroup/README.md +14 -0
- package/src/components/select/README.md +14 -0
- package/src/components/starrating/MStarRating.spec.ts +1 -2
- package/src/components/starrating/MStarRating.vue +1 -3
- package/src/components/statusbadge/README.md +14 -0
- package/src/components/statusdot/README.md +14 -0
- package/src/components/statusmessage/MStatusMessage.spec.ts +6 -4
- package/src/components/statusmessage/MStatusMessage.vue +6 -4
- package/src/components/statusmessage/README.md +14 -0
- package/src/components/statusnotification/MStatusNotification.spec.ts +6 -4
- package/src/components/statusnotification/MStatusNotification.stories.ts +1 -1
- package/src/components/statusnotification/MStatusNotification.vue +7 -5
- package/src/components/statusnotification/README.md +14 -0
- package/src/components/stepperbottombar/MStepperBottomBar.spec.ts +134 -0
- package/src/components/stepperbottombar/MStepperBottomBar.stories.ts +72 -0
- package/src/components/stepperbottombar/MStepperBottomBar.vue +131 -0
- package/src/components/stepperbottombar/README.md +40 -0
- package/src/components/steppercompact/README.md +14 -0
- package/src/components/stepperinline/MStepperInline.spec.ts +78 -0
- package/src/components/stepperinline/MStepperInline.stories.ts +49 -0
- package/src/components/stepperinline/MStepperInline.vue +93 -0
- package/src/components/stepperinline/README.md +11 -0
- package/src/components/tabs/MTabs.stories.ts +1 -1
- package/src/components/tabs/README.md +16 -0
- package/src/components/tag/MTag.vue +1 -1
- package/src/components/tag/README.md +14 -0
- package/src/components/textinput/MTextInput.spec.ts +1 -1
- package/src/components/textinput/MTextInput.stories.ts +1 -1
- package/src/components/textinput/MTextInput.vue +1 -1
- package/src/components/toaster/MToaster.spec.ts +6 -4
- package/src/components/toaster/MToaster.vue +7 -5
- package/src/components/toaster/README.md +16 -0
- package/src/components/toggle/README.md +14 -0
- package/src/components/togglegroup/README.md +14 -0
- package/src/main.ts +8 -0
- package/src/components/Introduction.mdx +0 -100
- package/src/components/Support.mdx +0 -18
- package/src/components/usingIcons.mdx +0 -35
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<nav class="mc-stepper-inline" aria-label="Stepper">
|
|
3
|
+
<ol class="mc-stepper-inline__container">
|
|
4
|
+
<li
|
|
5
|
+
v-for="(step, i) in steps"
|
|
6
|
+
:key="i"
|
|
7
|
+
class="mc-stepper-inline__item"
|
|
8
|
+
:class="{ 'is-completed': stepStates[i].completed }"
|
|
9
|
+
:tabindex="stepStates[i].completed ? 0 : undefined"
|
|
10
|
+
>
|
|
11
|
+
<Check24
|
|
12
|
+
class="mc-stepper-inline__icon mc-stepper-inline__icon--check"
|
|
13
|
+
v-if="stepStates[i].completed"
|
|
14
|
+
aria-hidden="true"
|
|
15
|
+
/>
|
|
16
|
+
<span
|
|
17
|
+
v-else
|
|
18
|
+
class="mc-stepper-inline__circle"
|
|
19
|
+
:class="{ 'is-current': stepStates[i].current }"
|
|
20
|
+
>
|
|
21
|
+
{{ i + 1 }}
|
|
22
|
+
</span>
|
|
23
|
+
<div class="mc-stepper-inline__content">
|
|
24
|
+
<span
|
|
25
|
+
class="mc-stepper-inline__label"
|
|
26
|
+
:class="{ 'is-current': stepStates[i].current }"
|
|
27
|
+
>
|
|
28
|
+
{{ step.label }}
|
|
29
|
+
</span>
|
|
30
|
+
<span
|
|
31
|
+
v-if="step.additionalInfo"
|
|
32
|
+
class="mc-stepper-inline__additional"
|
|
33
|
+
>
|
|
34
|
+
{{ step.additionalInfo }}
|
|
35
|
+
</span>
|
|
36
|
+
</div>
|
|
37
|
+
<ChevronRight24
|
|
38
|
+
v-if="i < steps.length - 1"
|
|
39
|
+
class="mc-stepper-inline__icon mc-stepper-inline__icon--chevron"
|
|
40
|
+
/>
|
|
41
|
+
</li>
|
|
42
|
+
</ol>
|
|
43
|
+
</nav>
|
|
44
|
+
</template>
|
|
45
|
+
|
|
46
|
+
<script setup lang="ts">
|
|
47
|
+
import { computed } from 'vue';
|
|
48
|
+
import { Check24, ChevronRight24 } from '@mozaic-ds/icons-vue';
|
|
49
|
+
/**
|
|
50
|
+
* A stepper is a navigation component that guides users through a sequence of steps in a structured process. It visually represents progress, completed steps, and upcoming steps, helping users understand their position within a workflow. Steppers are commonly used in multi-step forms, onboarding flows, checkout processes, and task completion sequences to improve clarity and reduce cognitive load.
|
|
51
|
+
*/
|
|
52
|
+
const props = withDefaults(
|
|
53
|
+
defineProps<{
|
|
54
|
+
/**
|
|
55
|
+
* Current step of the stepper compact.
|
|
56
|
+
*/
|
|
57
|
+
currentStep?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Steps of the stepper inline.
|
|
60
|
+
*/
|
|
61
|
+
steps?: Array<{
|
|
62
|
+
/**
|
|
63
|
+
* Label of the step.
|
|
64
|
+
*/
|
|
65
|
+
label: string;
|
|
66
|
+
/**
|
|
67
|
+
* Optional additional information under the label.
|
|
68
|
+
*/
|
|
69
|
+
additionalInfo?: string;
|
|
70
|
+
}>;
|
|
71
|
+
}>(),
|
|
72
|
+
{
|
|
73
|
+
currentStep: 1,
|
|
74
|
+
steps: () => [],
|
|
75
|
+
},
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
const safeStep = computed(() =>
|
|
79
|
+
Math.min(Math.max(props.currentStep, 1), props.steps.length),
|
|
80
|
+
);
|
|
81
|
+
const steps = props.steps;
|
|
82
|
+
|
|
83
|
+
const stepStates = computed(() =>
|
|
84
|
+
steps.map((_, i) => ({
|
|
85
|
+
completed: i + 1 < safeStep.value,
|
|
86
|
+
current: i + 1 === safeStep.value,
|
|
87
|
+
})),
|
|
88
|
+
);
|
|
89
|
+
</script>
|
|
90
|
+
|
|
91
|
+
<style scoped lang="scss">
|
|
92
|
+
@use '@mozaic-ds/styles/components/stepper-inline';
|
|
93
|
+
</style>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# MStepperInline
|
|
2
|
+
|
|
3
|
+
A stepper is a navigation component that guides users through a sequence of steps in a structured process. It visually represents progress, completed steps, and upcoming steps, helping users understand their position within a workflow. Steppers are commonly used in multi-step forms, onboarding flows, checkout processes, and task completion sequences to improve clarity and reduce cognitive load.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Props
|
|
7
|
+
|
|
8
|
+
| Name | Description | Type | Default |
|
|
9
|
+
| --- | --- | --- | --- |
|
|
10
|
+
| `currentStep` | Current step of the stepper compact. | `number` | `1` |
|
|
11
|
+
| `steps` | Steps of the stepper inline. | `{ label: string; additionalInfo?: string` `undefined; }[]` | `[]` |
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
|
2
2
|
import { action } from 'storybook/actions';
|
|
3
3
|
|
|
4
4
|
import Mtabs from './MTabs.vue';
|
|
5
|
-
import ChevronRight24 from '@mozaic-ds/icons-vue
|
|
5
|
+
import { ChevronRight24 } from '@mozaic-ds/icons-vue';
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof Mtabs> = {
|
|
8
8
|
title: 'Navigation/Tabs',
|
|
@@ -18,3 +18,19 @@ Tabs are a navigation component that allows users to switch between different se
|
|
|
18
18
|
| Name | Description | Type |
|
|
19
19
|
| --- | --- | --- |
|
|
20
20
|
| `update:modelValue` | Emits when the selected tab changes, updating the modelValue prop. | [value: number] |
|
|
21
|
+
|
|
22
|
+
## Dependencies
|
|
23
|
+
|
|
24
|
+
### Depends on
|
|
25
|
+
|
|
26
|
+
- [MDivider](../divider)
|
|
27
|
+
- [MNumberBadge](../numberbadge)
|
|
28
|
+
|
|
29
|
+
### Graph
|
|
30
|
+
|
|
31
|
+
```mermaid
|
|
32
|
+
graph TD;
|
|
33
|
+
MTabs --> MDivider
|
|
34
|
+
MTabs --> MNumberBadge
|
|
35
|
+
style MTabs fill:#008240,stroke:#333,stroke-width:4px
|
|
36
|
+
```
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
<script setup lang="ts">
|
|
74
74
|
import { computed } from 'vue';
|
|
75
|
-
import CrossCircleFilled24 from '@mozaic-ds/icons-vue
|
|
75
|
+
import { CrossCircleFilled24 } from '@mozaic-ds/icons-vue';
|
|
76
76
|
import MNumberBadge from '../numberbadge/MNumberBadge.vue';
|
|
77
77
|
/**
|
|
78
78
|
* 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).
|
|
@@ -23,3 +23,17 @@ A Tag is a UI element used to filter data, categorize, select or deselect an opt
|
|
|
23
23
|
| --- | --- | --- |
|
|
24
24
|
| `update:modelValue` | Emits when the tag value changes, updating the modelValue prop. | [value: boolean] |
|
|
25
25
|
| `remove-tag` | Emits when the remove button of a tag is clicked, passing the tag's ID. | [id: string] |
|
|
26
|
+
|
|
27
|
+
## Dependencies
|
|
28
|
+
|
|
29
|
+
### Depends on
|
|
30
|
+
|
|
31
|
+
- [MNumberBadge](../numberbadge)
|
|
32
|
+
|
|
33
|
+
### Graph
|
|
34
|
+
|
|
35
|
+
```mermaid
|
|
36
|
+
graph TD;
|
|
37
|
+
MTag --> MNumberBadge
|
|
38
|
+
style MTag fill:#008240,stroke:#333,stroke-width:4px
|
|
39
|
+
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mount } from '@vue/test-utils';
|
|
2
2
|
import { describe, it, expect } from 'vitest';
|
|
3
3
|
import MTextInput from './MTextInput.vue';
|
|
4
|
-
import Search24 from '@mozaic-ds/icons-vue
|
|
4
|
+
import { Search24 } from '@mozaic-ds/icons-vue';
|
|
5
5
|
|
|
6
6
|
describe('MTextInput component', () => {
|
|
7
7
|
it('should render correctly with the given props', () => {
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
|
2
2
|
import { action } from 'storybook/actions';
|
|
3
3
|
|
|
4
4
|
import MTextInput from './MTextInput.vue';
|
|
5
|
-
import Search24 from '@mozaic-ds/icons-vue
|
|
5
|
+
import { Search24 } from '@mozaic-ds/icons-vue';
|
|
6
6
|
import { ref } from 'vue';
|
|
7
7
|
|
|
8
8
|
const meta: Meta<typeof MTextInput> = {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
<script setup lang="ts">
|
|
40
40
|
import { computed, type VNode } from 'vue';
|
|
41
|
-
import CrossCircleFilled24 from '@mozaic-ds/icons-vue
|
|
41
|
+
import { CrossCircleFilled24 } from '@mozaic-ds/icons-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).
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { describe, it, expect, vi } from 'vitest';
|
|
2
2
|
import { mount } from '@vue/test-utils';
|
|
3
3
|
import MToaster from './MToaster.vue';
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import {
|
|
5
|
+
InfoCircleFilled32,
|
|
6
|
+
WarningCircleFilled32,
|
|
7
|
+
CrossCircleFilled32,
|
|
8
|
+
CheckCircleFilled32,
|
|
9
|
+
} from '@mozaic-ds/icons-vue';
|
|
8
10
|
|
|
9
11
|
describe('MToaster.vue', () => {
|
|
10
12
|
it('renders description text', () => {
|
|
@@ -45,11 +45,13 @@ import {
|
|
|
45
45
|
watch,
|
|
46
46
|
type VNode,
|
|
47
47
|
} from 'vue';
|
|
48
|
-
import
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
import {
|
|
49
|
+
Cross20,
|
|
50
|
+
InfoCircleFilled32,
|
|
51
|
+
WarningCircleFilled32,
|
|
52
|
+
CrossCircleFilled32,
|
|
53
|
+
CheckCircleFilled32,
|
|
54
|
+
} from '@mozaic-ds/icons-vue';
|
|
53
55
|
import MIconButton from '../iconbutton/MIconButton.vue';
|
|
54
56
|
import MLinearProgressbarBuffer from '../linearprogressbarbuffer/MLinearProgressbarBuffer.vue';
|
|
55
57
|
/**
|
|
@@ -26,3 +26,19 @@ A toaster is a temporary notification that appears briefly on the screen to prov
|
|
|
26
26
|
| Name | Description | Type |
|
|
27
27
|
| --- | --- | --- |
|
|
28
28
|
| `update:open` | Emits when the checkbox value changes, updating the modelValue prop. | [value: boolean] |
|
|
29
|
+
|
|
30
|
+
## Dependencies
|
|
31
|
+
|
|
32
|
+
### Depends on
|
|
33
|
+
|
|
34
|
+
- [MIconButton](../iconbutton)
|
|
35
|
+
- [MLinearProgressbarBuffer](../linearprogressbarbuffer)
|
|
36
|
+
|
|
37
|
+
### Graph
|
|
38
|
+
|
|
39
|
+
```mermaid
|
|
40
|
+
graph TD;
|
|
41
|
+
MToaster --> MIconButton
|
|
42
|
+
MToaster --> MLinearProgressbarBuffer
|
|
43
|
+
style MToaster fill:#008240,stroke:#333,stroke-width:4px
|
|
44
|
+
```
|
|
@@ -19,3 +19,17 @@ A toggle is a switch component that allows users to enable or disable a setting,
|
|
|
19
19
|
| Name | Description | Type |
|
|
20
20
|
| --- | --- | --- |
|
|
21
21
|
| `update:modelValue` | Emits when the toggle value changes, updating the modelValue prop. | [value: boolean] |
|
|
22
|
+
|
|
23
|
+
## Dependencies
|
|
24
|
+
|
|
25
|
+
### Used By
|
|
26
|
+
|
|
27
|
+
- [MToggleGroup](../togglegroup)
|
|
28
|
+
|
|
29
|
+
### Graph
|
|
30
|
+
|
|
31
|
+
```mermaid
|
|
32
|
+
graph TD;
|
|
33
|
+
MToggleGroup --> MToggle
|
|
34
|
+
style MToggle fill:#008240,stroke:#333,stroke-width:4px
|
|
35
|
+
```
|
|
@@ -18,3 +18,17 @@ A toggle is a switch component that allows users to enable or disable a setting,
|
|
|
18
18
|
| Name | Description | Type |
|
|
19
19
|
| --- | --- | --- |
|
|
20
20
|
| `update:modelValue` | Emits when the toggle group value changes, updating the modelValue prop. | [value: Array<string>] |
|
|
21
|
+
|
|
22
|
+
## Dependencies
|
|
23
|
+
|
|
24
|
+
### Depends on
|
|
25
|
+
|
|
26
|
+
- [MToggle](../toggle)
|
|
27
|
+
|
|
28
|
+
### Graph
|
|
29
|
+
|
|
30
|
+
```mermaid
|
|
31
|
+
graph TD;
|
|
32
|
+
MToggleGroup --> MToggle
|
|
33
|
+
style MToggleGroup fill:#008240,stroke:#333,stroke-width:4px
|
|
34
|
+
```
|
package/src/main.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
export { default as MAccordionList } from './components/accordionlist/MAccordionList.vue';
|
|
2
|
+
export { default as MActionBottomBar } from './components/actionbottombar/MActionBottomBar.vue';
|
|
1
3
|
export { default as MAvatar } from './components/avatar/MAvatar.vue';
|
|
4
|
+
export { default as MActionListbox } from './components/actionlistbox/MActionListbox.vue';
|
|
2
5
|
export { default as MBreadcrumb } from './components/breadcrumb/MBreadcrumb.vue';
|
|
6
|
+
export { default as MBuiltInMenu } from './components/builtinmenu/MBuiltInMenu.vue';
|
|
3
7
|
export { default as MButton } from './components/button/MButton.vue';
|
|
4
8
|
export { default as MCallout } from './components/callout/MCallout.vue';
|
|
5
9
|
export { default as MCarousel } from './components/carousel/MCarousel.vue';
|
|
6
10
|
export { default as MCheckbox } from './components/checkbox/MCheckbox.vue';
|
|
7
11
|
export { default as MCheckboxGroup } from './components/checkboxgroup/MCheckboxGroup.vue';
|
|
12
|
+
export { default as MCheckListMenu } from './components/checklistmenu/MCheckListMenu.vue';
|
|
8
13
|
export { default as MCircularProgressbar } from './components/circularprogressbar/MCircularProgressbar.vue';
|
|
9
14
|
export { default as MContainer } from './components/container/MContainer.vue';
|
|
10
15
|
export { default as MDatepicker } from './components/datepicker/MDatepicker.vue';
|
|
@@ -12,6 +17,7 @@ export { default as MDivider } from './components/divider/MDivider.vue';
|
|
|
12
17
|
export { default as MDrawer } from './components/drawer/MDrawer.vue';
|
|
13
18
|
export { default as MField } from './components/field/MField.vue';
|
|
14
19
|
export { default as MFieldGroup } from './components/fieldgroup/MFieldGroup.vue';
|
|
20
|
+
export { default as MFileUploader } from './components/fileuploader/MFileUploader.vue';
|
|
15
21
|
export { default as MFlag } from './components/flag/MFlag.vue';
|
|
16
22
|
export { default as MIconButton } from './components/iconbutton/MIconButton.vue';
|
|
17
23
|
export { default as MLinearProgressbarBuffer } from './components/linearprogressbarbuffer/MLinearProgressbarBuffer.vue';
|
|
@@ -37,6 +43,8 @@ export { default as MStatusDot } from './components/statusdot/MStatusDot.vue';
|
|
|
37
43
|
export { default as MStatusMessage } from './components/statusmessage/MStatusMessage.vue';
|
|
38
44
|
export { default as MStatusNotification } from './components/statusnotification/MStatusNotification.vue';
|
|
39
45
|
export { default as MStepperCompact } from './components/steppercompact/MStepperCompact.vue';
|
|
46
|
+
export { default as MStepperBottomBar } from './components/stepperbottombar/MStepperBottomBar.vue';
|
|
47
|
+
export { default as MStepperInline } from './components/stepperinline/MStepperInline.vue';
|
|
40
48
|
export { default as MTabs } from './components/tabs/MTabs.vue';
|
|
41
49
|
export { default as MTag } from './components/tag/MTag.vue';
|
|
42
50
|
export { default as MTextArea } from './components/textarea/MTextArea.vue';
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { Meta, Source } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import ads from '../../.storybook/assets/logo.svg';
|
|
3
|
-
import vue from '../../.storybook/assets/vue.svg';
|
|
4
|
-
|
|
5
|
-
<Meta title="Getting Started/Introduction" />
|
|
6
|
-
|
|
7
|
-
<p
|
|
8
|
-
style={{
|
|
9
|
-
display: 'flex',
|
|
10
|
-
alignItems: 'center',
|
|
11
|
-
justifyContent: 'center',
|
|
12
|
-
gap: '1rem',
|
|
13
|
-
}}
|
|
14
|
-
>
|
|
15
|
-
<img src={ads} alt="ADEO Design system logo" style={{ height: '80px' }} />
|
|
16
|
-
<span style={{ fontSize: '32px' }}>x</span>
|
|
17
|
-
<img src={vue} alt="Vue.js logo" style={{ height: '80px' }} />
|
|
18
|
-
</p>
|
|
19
|
-
|
|
20
|
-
<h1 align="center">ADEO Design system - Vue.js library</h1>
|
|
21
|
-
|
|
22
|
-
<p align="center">
|
|
23
|
-
A library of **Vue.js** components implementing **ADEO Design system**
|
|
24
|
-
guidelines.
|
|
25
|
-
</p>
|
|
26
|
-
|
|
27
|
-
<div
|
|
28
|
-
style={{
|
|
29
|
-
display: 'flex',
|
|
30
|
-
alignItems: 'center',
|
|
31
|
-
justifyContent: 'center',
|
|
32
|
-
gap: '0.5rem',
|
|
33
|
-
}}
|
|
34
|
-
>
|
|
35
|
-
<a href="https://www.npmjs.com/package/@mozaic-ds/vue">
|
|
36
|
-
<img
|
|
37
|
-
src="https://img.shields.io/npm/v/@mozaic-ds/vue?label=NPM&logo=npm&color=yellow"
|
|
38
|
-
alt="npm version"
|
|
39
|
-
/>
|
|
40
|
-
</a>
|
|
41
|
-
<a href="https://github.com/adeo/mozaic-vue/blob/main/CONTRIBUTING.md">
|
|
42
|
-
<img
|
|
43
|
-
src="https://img.shields.io/badge/PRs-welcome-blue.svg?logo=github"
|
|
44
|
-
alt="PRs welcome"
|
|
45
|
-
/>
|
|
46
|
-
</a>
|
|
47
|
-
<a href="https://app.slack.com/client/T4R6RCZFA/CN4K3A99R">
|
|
48
|
-
<img
|
|
49
|
-
src="https://img.shields.io/badge/Slack-mozaic_vue-611f69.svg?logo=slack"
|
|
50
|
-
alt="Slack mozaic-vue"
|
|
51
|
-
/>
|
|
52
|
-
</a>
|
|
53
|
-
<a href="https://keys.adeo.com/keys/ls/space/2583429798460717/adeo-adeo-design-system">
|
|
54
|
-
<img
|
|
55
|
-
src="https://img.shields.io/badge/KEYS-Adeo_Design_System-4526ce.svg"
|
|
56
|
-
alt="KEYS ADEO Design system"
|
|
57
|
-
/>
|
|
58
|
-
</a>
|
|
59
|
-
</div>
|
|
60
|
-
|
|
61
|
-
<br />
|
|
62
|
-
<br />
|
|
63
|
-
|
|
64
|
-
## đĒ Introduction
|
|
65
|
-
|
|
66
|
-
ADEO Design system is a global and collaborative design system
|
|
67
|
-
that facilitates the designer and developer experience,
|
|
68
|
-
enabling them to create universal interfaces
|
|
69
|
-
perfectly aligned with the business strategy of Adeo.
|
|
70
|
-
|
|
71
|
-
## đ¨ Getting Started
|
|
72
|
-
|
|
73
|
-
Ready to begin using Mozaic in your project?\
|
|
74
|
-
Our Getting Started guide will walk you through the basics, \
|
|
75
|
-
from setting up the system to implementing core components in your application.
|
|
76
|
-
|
|
77
|
-
Whether you're new to Mozaic or just need a refresher, \
|
|
78
|
-
this guide has everything you need to hit the ground running.
|
|
79
|
-
|
|
80
|
-
Read how to **[Setup your application](/docs/getting-started--docs)**!
|
|
81
|
-
|
|
82
|
-
## đ¤ Contributing
|
|
83
|
-
|
|
84
|
-
Be part of something bigger!
|
|
85
|
-
|
|
86
|
-
**Mozaic-Vue** is made possible by an incredible community that finds issues and creates pull requests.\
|
|
87
|
-
It is our job to enable you to create amazing applications.
|
|
88
|
-
|
|
89
|
-
To do so, see our **[contributing process](/docs/contributing--docs)**.
|
|
90
|
-
|
|
91
|
-
## âšī¸ Support
|
|
92
|
-
|
|
93
|
-
If you have any questions or need assistance,\
|
|
94
|
-
we are here to help.
|
|
95
|
-
|
|
96
|
-
Whether you're troubleshooting, looking for documentation,\
|
|
97
|
-
or need to get in touch with our team,\
|
|
98
|
-
you'll find all the resources you need to get the most out of **Mozaic-Vue**.
|
|
99
|
-
|
|
100
|
-
Visit our **[Support page](/docs/support--docs)** for more information.
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/addon-docs/blocks';
|
|
2
|
-
|
|
3
|
-
<Meta title="Getting Started/Support" />
|
|
4
|
-
|
|
5
|
-
# Support
|
|
6
|
-
|
|
7
|
-
Need help?
|
|
8
|
-
|
|
9
|
-
Any feedback, ideas or questions?
|
|
10
|
-
|
|
11
|
-
The **Mozaic Design System team** would welcome any feedback, ideas, or requirements that you have.<br/>
|
|
12
|
-
Our goal is to make your lives easier.
|
|
13
|
-
|
|
14
|
-
If you want to get more detailed information on the components or any other topic related to **Mozaic-Vue**, you can contact us through the channels below:
|
|
15
|
-
|
|
16
|
-
- Join the [#mozaic-vue](https://app.slack.com/client/T4R6RCZFA/CN4K3A99R/) channel on **Slack**
|
|
17
|
-
- Join the [#mozaic-support](https://app.slack.com/client/T4R6RCZFA/CKQJZL7C4/) channel on **Slack**
|
|
18
|
-
- Follow our [KEYS page](https://keys.adeo.com/keys/ls/space/2583429798460717/adeo-adeo-design-system)
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Meta, Source } from '@storybook/addon-docs/blocks';
|
|
2
|
-
|
|
3
|
-
<Meta title="Getting Started/Using Icons" />
|
|
4
|
-
|
|
5
|
-
# Using Icons
|
|
6
|
-
|
|
7
|
-
To use icons in Vue applications, you need to install a dedicated package.
|
|
8
|
-
|
|
9
|
-
You must first install the [npm package](https://www.npmjs.com/package/@mozaic-ds/icons-vue):
|
|
10
|
-
|
|
11
|
-
<Source language="bash" dark code="npm install @mozaic-ds/icons-vue" />
|
|
12
|
-
|
|
13
|
-
Or with **Yarn**:
|
|
14
|
-
|
|
15
|
-
<Source language="bash" dark code="yarn add @mozaic-ds/icons-vue" />
|
|
16
|
-
|
|
17
|
-
You can then start importing the icon of your choice into your Vue component:
|
|
18
|
-
|
|
19
|
-
<Source
|
|
20
|
-
language='html'
|
|
21
|
-
dark
|
|
22
|
-
code={`
|
|
23
|
-
// In one of the .vue file of your application
|
|
24
|
-
|
|
25
|
-
<template>
|
|
26
|
-
<A11y20 fill="#333" />
|
|
27
|
-
</template>
|
|
28
|
-
|
|
29
|
-
<script setup>
|
|
30
|
-
import A11y20 from '@mozaic-ds/icons-vue/src/components/A11y20/A11y20.vue';
|
|
31
|
-
</script>
|
|
32
|
-
|
|
33
|
-
`} />
|
|
34
|
-
|
|
35
|
-
[The full list of icons is available here](https://github.com/adeo/mozaic-icons-vue/tree/main/src/components).
|