@mozaic-ds/vue 2.19.0 → 2.19.2
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 +958 -2090
- package/dist/mozaic-vue.js +806 -779
- package/dist/mozaic-vue.js.map +1 -1
- package/dist/mozaic-vue.umd.cjs +6 -6
- package/dist/mozaic-vue.umd.cjs.map +1 -1
- package/package.json +7 -5
- package/src/components/accordionlist/MAccordionList.figma.ts +16 -16
- package/src/components/accordionlist/MAccordionList.stories.ts +1 -1
- package/src/components/accordionlistitem/MAccordionListItem.figma.ts +9 -5
- package/src/components/accordionlistitem/MAccordionListItem.vue +4 -1
- package/src/components/accordionlistitem/README.md +2 -0
- package/src/components/actionbottombar/MActionBottomBar.figma.ts +7 -7
- package/src/components/actionlistbox/MActionListbox.figma.ts +11 -11
- package/src/components/actionlistbox/MActionListbox.spec.ts +21 -7
- package/src/components/actionlistbox/MActionListbox.vue +15 -4
- package/src/components/avatar/MAvatar.figma.ts +5 -5
- package/src/components/breadcrumb/MBreadcrumb.figma.ts +7 -7
- package/src/components/builtinmenu/MBuiltInMenu.figma.ts +8 -5
- package/src/components/builtinmenu/MBuiltInMenu.spec.ts +3 -1
- package/src/components/button/MButton.figma.ts +21 -6
- package/src/components/callout/MCallout.figma.ts +7 -7
- package/src/components/carousel/MCarousel.figma.ts +10 -10
- package/src/components/checkbox/MCheckbox.figma.ts +10 -10
- package/src/components/checkboxgroup/MCheckboxGroup.figma.ts +7 -7
- package/src/components/checklistmenu/MCheckListMenu.figma.ts +8 -8
- package/src/components/circularprogressbar/MCircularProgressbar.figma.ts +7 -3
- package/src/components/combobox/MCombobox.figma.ts +10 -10
- package/src/components/container/MContainer.figma.ts +5 -5
- package/src/components/datatable/DataTable.stories.ts +33 -7
- package/src/components/datatable/DataTableCells.stories.ts +2 -2
- package/src/components/datatable/DataTableEmpty.stories.ts +2 -2
- package/src/components/datatable/DataTableExpandable.stories.ts +2 -2
- package/src/components/datatable/DataTableNested.stories.ts +1 -1
- package/src/components/datatable/DataTableSelectable.stories.ts +2 -3
- package/src/components/datatable/DataTableSortable.stories.ts +1 -1
- package/src/components/datepicker/MDatepicker.figma.ts +3 -3
- package/src/components/divider/MDivider.figma.ts +3 -3
- package/src/components/drawer/MDrawer.figma.ts +13 -13
- package/src/components/field/MField.figma.ts +9 -5
- package/src/components/fileuploader/MFileUploader.figma.ts +3 -3
- package/src/components/fileuploaderitem/MFileUploaderItem.figma.ts +7 -3
- package/src/components/flag/MFlag.figma.ts +3 -3
- package/src/components/iconbutton/MIconButton.figma.ts +16 -16
- package/src/components/kpiitem/MKpiItem.figma.ts +8 -3
- package/src/components/kpiitem/MKpiItem.spec.ts +11 -12
- package/src/components/kpiitem/MKpiItem.vue +7 -1
- package/src/components/linearprogressbarbuffer/MLinearProgressbarBuffer.figma.ts +6 -3
- package/src/components/linearprogressbarpercentage/MLinearProgressbarPercentage.figma.ts +5 -3
- package/src/components/link/MLink.figma.ts +5 -5
- package/src/components/loader/MLoader.figma.ts +3 -3
- package/src/components/loadingoverlay/MLoadingOverlay.figma.ts +3 -3
- package/src/components/modal/MModal.figma.ts +12 -12
- package/src/components/navigationindicator/MNavigationIndicator.figma.ts +7 -3
- package/src/components/numberbadge/MNumberBadge.figma.ts +7 -3
- package/src/components/optionListbox/MOptionListbox.figma.ts +10 -10
- package/src/components/overlay/MOverlay.figma.ts +5 -5
- package/src/components/pageheader/MPageHeader.figma.ts +3 -3
- package/src/components/pagination/MPagination.figma.ts +10 -10
- package/src/components/passwordinput/MPasswordInput.figma.ts +9 -9
- package/src/components/phonenumber/MPhoneNumber.figma.ts +9 -9
- package/src/components/phonenumber/MPhoneNumber.vue +5 -3
- package/src/components/pincode/MPincode.figma.ts +9 -9
- package/src/components/popover/MPopover.figma.ts +15 -15
- package/src/components/quantityselector/MQuantitySelector.figma.ts +12 -12
- package/src/components/radio/MRadio.figma.ts +9 -9
- package/src/components/radiogroup/MRadioGroup.figma.ts +7 -7
- package/src/components/segmentedcontrol/MSegmentedControl.figma.ts +8 -8
- package/src/components/select/MSelect.figma.ts +11 -11
- package/src/components/sidebar/MSidebar.figma.ts +8 -8
- package/src/components/sidebar/MSidebar.vue +1 -0
- package/src/components/sidebarexpandableitem/MSidebarExpandableItem.figma.ts +8 -5
- package/src/components/sidebarfooter/MSidebarFooter.figma.ts +7 -3
- package/src/components/sidebarheader/MSidebarHeader.figma.ts +3 -3
- package/src/components/sidebarnavitem/MSidebarNavItem.figma.ts +3 -3
- package/src/components/sidebarshortcutitem/MSidebarShortcutItem.figma.ts +3 -3
- package/src/components/starrating/MStarRating.figma.ts +7 -7
- package/src/components/statusbadge/MStatusBadge.figma.ts +3 -3
- package/src/components/statusdot/MStatusDot.figma.ts +3 -3
- package/src/components/statusmessage/MStatusMessage.figma.ts +3 -3
- package/src/components/statusnotification/MStatusNotification.figma.ts +7 -7
- package/src/components/stepperbottombar/MStepperBottomBar.figma.ts +3 -3
- package/src/components/steppercompact/MStepperCompact.figma.ts +8 -3
- package/src/components/stepperinline/MStepperInline.figma.ts +6 -3
- package/src/components/stepperinline/MStepperInline.stories.ts +5 -1
- package/src/components/stepperstacked/MStepperStacked.figma.ts +6 -3
- package/src/components/tabs/MTabs.figma.ts +8 -8
- package/src/components/tag/MTag.figma.ts +3 -3
- package/src/components/textarea/MTextArea.figma.ts +8 -8
- package/src/components/textinput/MTextInput.figma.ts +12 -12
- package/src/components/textinput/README.md +1 -1
- package/src/components/tile/MTile.figma.ts +5 -5
- package/src/components/tileclickable/MTileClickable.figma.ts +6 -6
- package/src/components/tileexpandable/MTileExpandable.figma.ts +6 -6
- package/src/components/tileselectable/MTileSelectable.figma.ts +9 -5
- package/src/components/toaster/MToaster.figma.ts +3 -3
- package/src/components/toggle/MToggle.figma.ts +9 -9
- package/src/components/togglegroup/MToggleGroup.figma.ts +7 -7
- package/src/components/tooltip/MTooltip.figma.ts +10 -5
|
@@ -16,15 +16,15 @@ figma.connect(
|
|
|
16
16
|
},
|
|
17
17
|
example: ({ isInvalid, isClearable }) =>
|
|
18
18
|
html`<script setup>
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
import { MPasswordInput } from '@mozaic-ds/vue';
|
|
20
|
+
</script>
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
<MPasswordInput
|
|
23
|
+
id="password-input-id"
|
|
24
|
+
:is-invalid=${isInvalid}
|
|
25
|
+
:is-clearable=${isClearable}
|
|
26
|
+
placeholder="Enter your password"
|
|
27
|
+
model-value=""
|
|
28
|
+
></MPasswordInput>`,
|
|
29
29
|
},
|
|
30
30
|
);
|
|
@@ -33,15 +33,15 @@ figma.connect(
|
|
|
33
33
|
},
|
|
34
34
|
example: ({ size, disabled, readonly, isInvalid }) =>
|
|
35
35
|
html`<script setup>
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
import { MPhoneNumber } from '@mozaic-ds/vue';
|
|
37
|
+
</script>
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
<MPhoneNumber
|
|
40
|
+
id="phone-number-id"
|
|
41
|
+
size=${size}
|
|
42
|
+
disabled=${disabled}
|
|
43
|
+
readonly=${readonly}
|
|
44
|
+
:is-invalid=${isInvalid}
|
|
45
|
+
></MPhoneNumber>`,
|
|
46
46
|
},
|
|
47
47
|
);
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
class="mc-phone-number-input__select-wrapper"
|
|
5
5
|
:class="selectWrapperClass"
|
|
6
6
|
>
|
|
7
|
-
<div
|
|
8
|
-
|
|
7
|
+
<div
|
|
8
|
+
class="mc-select mc-phone-number-input__select"
|
|
9
9
|
:class="sizeSelectClass"
|
|
10
10
|
>
|
|
11
11
|
<select
|
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
:value="country"
|
|
24
24
|
:data-flag="country.toLowerCase()"
|
|
25
25
|
>
|
|
26
|
-
{{ getCountryName(country) }} (+{{
|
|
26
|
+
{{ getCountryName(country) }} (+{{
|
|
27
|
+
getCountryCallingCode(country)
|
|
28
|
+
}})
|
|
27
29
|
</option>
|
|
28
30
|
</select>
|
|
29
31
|
</div>
|
|
@@ -27,15 +27,15 @@ figma.connect(
|
|
|
27
27
|
},
|
|
28
28
|
example: ({ disabled, readonly, isInvalid }) =>
|
|
29
29
|
html`<script setup>
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
import { MPincode } from '@mozaic-ds/vue';
|
|
31
|
+
</script>
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
<MPincode
|
|
34
|
+
id="pincode-id"
|
|
35
|
+
disabled=${disabled}
|
|
36
|
+
readonly=${readonly}
|
|
37
|
+
:is-invalid=${isInvalid}
|
|
38
|
+
aria-label="Enter your code"
|
|
39
|
+
></MPincode>`,
|
|
40
40
|
},
|
|
41
41
|
);
|
|
@@ -22,21 +22,21 @@ figma.connect(
|
|
|
22
22
|
},
|
|
23
23
|
example: ({ appearance, size, pointer, closable }) =>
|
|
24
24
|
html`<script setup>
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
import { MPopover, MButton } from '@mozaic-ds/vue';
|
|
26
|
+
</script>
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
28
|
+
<MPopover
|
|
29
|
+
id="popover-id"
|
|
30
|
+
title="Popover title"
|
|
31
|
+
description="Popover description"
|
|
32
|
+
:pointer=${pointer}
|
|
33
|
+
:closable=${closable}
|
|
34
|
+
appearance=${appearance}
|
|
35
|
+
size=${size}
|
|
36
|
+
>
|
|
37
|
+
<template #activator="{ id }">
|
|
38
|
+
<MButton :popovertarget="id">Open</MButton>
|
|
39
|
+
</template>
|
|
40
|
+
</MPopover>`,
|
|
41
41
|
},
|
|
42
42
|
);
|
|
@@ -33,18 +33,18 @@ figma.connect(
|
|
|
33
33
|
},
|
|
34
34
|
example: ({ size, disabled, readonly, isInvalid }) =>
|
|
35
35
|
html`<script setup>
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
import { MQuantitySelector } from '@mozaic-ds/vue';
|
|
37
|
+
</script>
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
39
|
+
<MQuantitySelector
|
|
40
|
+
id="quantity-selector-id"
|
|
41
|
+
size=${size}
|
|
42
|
+
disabled=${disabled}
|
|
43
|
+
readonly=${readonly}
|
|
44
|
+
:is-invalid=${isInvalid}
|
|
45
|
+
:model-value="1"
|
|
46
|
+
:min="0"
|
|
47
|
+
:max="10"
|
|
48
|
+
></MQuantitySelector>`,
|
|
49
49
|
},
|
|
50
50
|
);
|
|
@@ -26,15 +26,15 @@ figma.connect(
|
|
|
26
26
|
},
|
|
27
27
|
example: ({ modelValue, disabled, isInvalid }) =>
|
|
28
28
|
html`<script setup>
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
import { MRadio } from '@mozaic-ds/vue';
|
|
30
|
+
</script>
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
<MRadio
|
|
33
|
+
id="radio-id"
|
|
34
|
+
label="Radio button Label"
|
|
35
|
+
:model-value=${modelValue}
|
|
36
|
+
disabled=${disabled}
|
|
37
|
+
:is-invalid=${isInvalid}
|
|
38
|
+
></MRadio>`,
|
|
39
39
|
},
|
|
40
40
|
);
|
|
@@ -15,16 +15,16 @@ figma.connect(
|
|
|
15
15
|
},
|
|
16
16
|
example: ({ inline }) =>
|
|
17
17
|
html`<script setup>
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
import { MRadioGroup } from '@mozaic-ds/vue';
|
|
19
|
+
</script>
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
<MRadioGroup
|
|
22
|
+
name="group"
|
|
23
|
+
:options="[
|
|
24
24
|
{ id: '1', label: 'Option 1', value: '1' },
|
|
25
25
|
{ id: '2', label: 'Option 2', value: '2' },
|
|
26
26
|
]"
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
inline=${inline}
|
|
28
|
+
/>`,
|
|
29
29
|
},
|
|
30
30
|
);
|
|
@@ -20,14 +20,14 @@ figma.connect(
|
|
|
20
20
|
},
|
|
21
21
|
example: ({ size, full }) =>
|
|
22
22
|
html`<script setup>
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
import { MSegmentedControl } from '@mozaic-ds/vue';
|
|
24
|
+
</script>
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
<MSegmentedControl
|
|
27
|
+
size=${size}
|
|
28
|
+
full=${full}
|
|
29
|
+
:segments="[{ id: 'label1', label: 'Label' }, { id: 'label2', label: 'Label' }]"
|
|
30
|
+
model-value="label1"
|
|
31
|
+
></MSegmentedControl>`,
|
|
32
32
|
},
|
|
33
33
|
);
|
|
@@ -33,17 +33,17 @@ figma.connect(
|
|
|
33
33
|
},
|
|
34
34
|
example: ({ size, disabled, readonly, isInvalid }) =>
|
|
35
35
|
html`<script setup>
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
import { MSelect } from '@mozaic-ds/vue';
|
|
37
|
+
</script>
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
<MSelect
|
|
40
|
+
id="select-id"
|
|
41
|
+
size=${size}
|
|
42
|
+
disabled=${disabled}
|
|
43
|
+
readonly=${readonly}
|
|
44
|
+
:is-invalid=${isInvalid}
|
|
45
|
+
placeholder="Choose an option"
|
|
46
|
+
:options="[{ text: 'Option 1', value: 'option1' }, { text: 'Option 2', value: 'option2' }]"
|
|
47
|
+
></MSelect>`,
|
|
48
48
|
},
|
|
49
49
|
);
|
|
@@ -15,14 +15,14 @@ figma.connect(
|
|
|
15
15
|
},
|
|
16
16
|
example: ({ modelValue }) =>
|
|
17
17
|
html`<script setup>
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
import { MSidebar } from '@mozaic-ds/vue';
|
|
19
|
+
</script>
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
<MSidebar :model-value=${modelValue}>
|
|
22
|
+
<template #header>Header</template>
|
|
23
|
+
<template #shortcuts>Shortcuts</template>
|
|
24
|
+
<template #nav>Nav items</template>
|
|
25
|
+
<template #footer>Footer</template>
|
|
26
|
+
</MSidebar>`,
|
|
27
27
|
},
|
|
28
28
|
);
|
|
@@ -9,11 +9,14 @@ figma.connect(
|
|
|
9
9
|
{
|
|
10
10
|
example: () =>
|
|
11
11
|
html`<script setup>
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
import {
|
|
13
|
+
MSidebarExpandableItem,
|
|
14
|
+
MSidebarNavItem,
|
|
15
|
+
} from '@mozaic-ds/vue';
|
|
16
|
+
</script>
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
<MSidebarExpandableItem label="Section" menu-label="Section">
|
|
19
|
+
<MSidebarNavItem label="Sub item" />
|
|
20
|
+
</MSidebarExpandableItem>`,
|
|
18
21
|
},
|
|
19
22
|
);
|
|
@@ -13,9 +13,13 @@ figma.connect(
|
|
|
13
13
|
},
|
|
14
14
|
example: ({ expendable }) =>
|
|
15
15
|
html`<script setup>
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
import { MSidebarFooter } from '@mozaic-ds/vue';
|
|
17
|
+
</script>
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
<MSidebarFooter
|
|
20
|
+
title="User name"
|
|
21
|
+
subtitle="user@example.com"
|
|
22
|
+
:expendable=${expendable}
|
|
23
|
+
/>`,
|
|
20
24
|
},
|
|
21
25
|
);
|
|
@@ -10,9 +10,9 @@ figma.connect(
|
|
|
10
10
|
props: {},
|
|
11
11
|
example: () =>
|
|
12
12
|
html`<script setup>
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import { MSidebarHeader } from '@mozaic-ds/vue';
|
|
14
|
+
</script>
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
<MSidebarHeader title="App name" logo="/logo.png" />`,
|
|
17
17
|
},
|
|
18
18
|
);
|
|
@@ -15,9 +15,9 @@ figma.connect(
|
|
|
15
15
|
},
|
|
16
16
|
example: ({ active }) =>
|
|
17
17
|
html`<script setup>
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
import { MSidebarNavItem } from '@mozaic-ds/vue';
|
|
19
|
+
</script>
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
<MSidebarNavItem label="Menu item" active=${active} />`,
|
|
22
22
|
},
|
|
23
23
|
);
|
|
@@ -12,9 +12,9 @@ figma.connect(
|
|
|
12
12
|
},
|
|
13
13
|
example: ({ label }) =>
|
|
14
14
|
html`<script setup>
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
import { MSidebarShortcutItem } from '@mozaic-ds/vue';
|
|
16
|
+
</script>
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
<MSidebarShortcutItem label=${label} href="#" />`,
|
|
19
19
|
},
|
|
20
20
|
);
|
|
@@ -23,13 +23,13 @@ figma.connect(
|
|
|
23
23
|
},
|
|
24
24
|
example: ({ text, size }) =>
|
|
25
25
|
html`<script setup>
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
import { MStarRating } from '@mozaic-ds/vue';
|
|
27
|
+
</script>
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
<MStarRating
|
|
30
|
+
:model-value="3.5"
|
|
31
|
+
size=${size}
|
|
32
|
+
text=${text}
|
|
33
|
+
></MStarRating>`,
|
|
34
34
|
},
|
|
35
35
|
);
|
|
@@ -19,9 +19,9 @@ figma.connect(
|
|
|
19
19
|
},
|
|
20
20
|
example: ({ label, status }) =>
|
|
21
21
|
html`<script setup>
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
import { MStatusBadge } from '@mozaic-ds/vue';
|
|
23
|
+
</script>
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
<MStatusBadge label=${label} status=${status}></MStatusBadge>`,
|
|
26
26
|
},
|
|
27
27
|
);
|
|
@@ -23,9 +23,9 @@ figma.connect(
|
|
|
23
23
|
},
|
|
24
24
|
example: ({ status, size }) =>
|
|
25
25
|
html`<script setup>
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
import { MStatusDot } from '@mozaic-ds/vue';
|
|
27
|
+
</script>
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
<MStatusDot status=${status} size=${size}></MStatusDot>`,
|
|
30
30
|
},
|
|
31
31
|
);
|
|
@@ -20,9 +20,9 @@ figma.connect(
|
|
|
20
20
|
},
|
|
21
21
|
example: ({ label, status }) =>
|
|
22
22
|
html`<script setup>
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
import { MStatusMessage } from '@mozaic-ds/vue';
|
|
24
|
+
</script>
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
<MStatusMessage label=${label} status=${status}></MStatusMessage>`,
|
|
27
27
|
},
|
|
28
28
|
);
|
|
@@ -17,13 +17,13 @@ figma.connect(
|
|
|
17
17
|
},
|
|
18
18
|
example: ({ status }) =>
|
|
19
19
|
html`<script setup>
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
import { MStatusNotification } from '@mozaic-ds/vue';
|
|
21
|
+
</script>
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
<MStatusNotification
|
|
24
|
+
title="Notification title"
|
|
25
|
+
description="Notification description"
|
|
26
|
+
status=${status}
|
|
27
|
+
></MStatusNotification>`,
|
|
28
28
|
},
|
|
29
29
|
);
|
|
@@ -12,9 +12,9 @@ figma.connect(
|
|
|
12
12
|
},
|
|
13
13
|
example: ({ cancel }) =>
|
|
14
14
|
html`<script setup>
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
import { MStepperBottomBar } from '@mozaic-ds/vue';
|
|
16
|
+
</script>
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
<MStepperBottomBar cancel=${cancel} :steps="3" />`,
|
|
19
19
|
},
|
|
20
20
|
);
|
|
@@ -13,9 +13,14 @@ figma.connect(
|
|
|
13
13
|
},
|
|
14
14
|
example: ({ label, description }) =>
|
|
15
15
|
html`<script setup>
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
import { MStepperCompact } from '@mozaic-ds/vue';
|
|
17
|
+
</script>
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
<MStepperCompact
|
|
20
|
+
label=${label}
|
|
21
|
+
:description=${description}
|
|
22
|
+
:value="1"
|
|
23
|
+
:max-steps="4"
|
|
24
|
+
></MStepperCompact>`,
|
|
20
25
|
},
|
|
21
26
|
);
|
|
@@ -15,9 +15,12 @@ figma.connect(
|
|
|
15
15
|
},
|
|
16
16
|
example: () =>
|
|
17
17
|
html`<script setup>
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
import { MStepperInline } from '@mozaic-ds/vue';
|
|
19
|
+
</script>
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
<MStepperInline
|
|
22
|
+
:current-step="1"
|
|
23
|
+
:steps="[{ label: 'Step label', additionalInfo: 'Additional information' }, { label: 'Step label', additionalInfo: 'Additional information' }, { label: 'Step label', additionalInfo: 'Additional information' }]"
|
|
24
|
+
></MStepperInline>`,
|
|
22
25
|
},
|
|
23
26
|
);
|
|
@@ -46,7 +46,11 @@ export const AditionnalInfo: Story = {
|
|
|
46
46
|
label: 'Delivery address',
|
|
47
47
|
additionalInfo: 'Additional information',
|
|
48
48
|
},
|
|
49
|
-
{
|
|
49
|
+
{
|
|
50
|
+
id: 'step3',
|
|
51
|
+
label: 'Payment',
|
|
52
|
+
additionalInfo: 'Additional information',
|
|
53
|
+
},
|
|
50
54
|
{
|
|
51
55
|
id: 'step4',
|
|
52
56
|
label: 'Order confirmation',
|
|
@@ -15,9 +15,12 @@ figma.connect(
|
|
|
15
15
|
},
|
|
16
16
|
example: () =>
|
|
17
17
|
html`<script setup>
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
import { MStepperStacked } from '@mozaic-ds/vue';
|
|
19
|
+
</script>
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
<MStepperStacked
|
|
22
|
+
:current-step="1"
|
|
23
|
+
:steps="[{ label: 'Step label', additionalInfo: 'Additional information' }, { label: 'Step label', additionalInfo: 'Additional information' }, { label: 'Step label', additionalInfo: 'Additional information' }]"
|
|
24
|
+
></MStepperStacked>`,
|
|
22
25
|
},
|
|
23
26
|
);
|
|
@@ -16,18 +16,18 @@ figma.connect(
|
|
|
16
16
|
},
|
|
17
17
|
example: ({ divider, centered }) =>
|
|
18
18
|
html`<script setup>
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
import { MTabs } from '@mozaic-ds/vue';
|
|
20
|
+
</script>
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
<MTabs
|
|
23
|
+
:divider=${divider}
|
|
24
|
+
centered=${centered}
|
|
25
|
+
model-value="label1"
|
|
26
|
+
:tabs="[
|
|
27
27
|
{ id: 'label1', label: 'Label' },
|
|
28
28
|
{ id: 'label2', label: 'Label' },
|
|
29
29
|
{ id: 'label3', label: 'Label' },
|
|
30
30
|
]"
|
|
31
|
-
|
|
31
|
+
></MTabs>`,
|
|
32
32
|
},
|
|
33
33
|
);
|
|
@@ -18,9 +18,9 @@ figma.connect(
|
|
|
18
18
|
},
|
|
19
19
|
example: ({ type }) =>
|
|
20
20
|
html`<script setup>
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
import { MTag } from '@mozaic-ds/vue';
|
|
22
|
+
</script>
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
<MTag type=${type} label="Tag label"></MTag>`,
|
|
25
25
|
},
|
|
26
26
|
);
|
|
@@ -15,14 +15,14 @@ figma.connect(
|
|
|
15
15
|
},
|
|
16
16
|
example: ({ isInvalid }) =>
|
|
17
17
|
html`<script setup>
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
import { MTextArea } from '@mozaic-ds/vue';
|
|
19
|
+
</script>
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
<MTextArea
|
|
22
|
+
id="textarea-id"
|
|
23
|
+
:is-invalid=${isInvalid}
|
|
24
|
+
placeholder="Placeholder"
|
|
25
|
+
model-value=""
|
|
26
|
+
></MTextArea>`,
|
|
27
27
|
},
|
|
28
28
|
);
|