@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
|
@@ -3,10 +3,20 @@ import * as utils from './utils';
|
|
|
3
3
|
|
|
4
4
|
// Components
|
|
5
5
|
import '@mozaic-ds/datatable-vue/style.css';
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
MDataTable,
|
|
8
|
+
MDataTableColumn,
|
|
9
|
+
MDataTableTop,
|
|
10
|
+
} from '@mozaic-ds/datatable-vue';
|
|
7
11
|
import MButton from '../button/MButton.vue';
|
|
8
12
|
import MIconButton from '../iconbutton/MIconButton.vue';
|
|
9
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
Settings24,
|
|
15
|
+
Edit24,
|
|
16
|
+
Download24,
|
|
17
|
+
Filter24,
|
|
18
|
+
Search24,
|
|
19
|
+
} from '@mozaic-ds/icons-vue';
|
|
10
20
|
import MToggle from '../toggle/MToggle.vue';
|
|
11
21
|
import MTextInput from '../textinput/MTextInput.vue';
|
|
12
22
|
import MTag from '../tag/MTag.vue';
|
|
@@ -38,7 +48,7 @@ const meta: Meta<typeof MDataTable> = {
|
|
|
38
48
|
<!-- Status -->
|
|
39
49
|
<MDataTableColumn label="Statut" value="status" />
|
|
40
50
|
<template v-slot:cell.status="{ item }"> {{ item.status.code }} </template>
|
|
41
|
-
|
|
51
|
+
`,
|
|
42
52
|
},
|
|
43
53
|
argTypes: utils.argtypes,
|
|
44
54
|
parameters: {
|
|
@@ -46,7 +56,7 @@ const meta: Meta<typeof MDataTable> = {
|
|
|
46
56
|
backgrounds: utils.backgrounds,
|
|
47
57
|
docs: {
|
|
48
58
|
canvas: { sourceState: 'none' },
|
|
49
|
-
}
|
|
59
|
+
},
|
|
50
60
|
},
|
|
51
61
|
render: (args) => ({
|
|
52
62
|
components: { MDataTable, MDataTableColumn, MDataTableTop, MButton },
|
|
@@ -104,7 +114,15 @@ export const FixedHeader: Story = {
|
|
|
104
114
|
|
|
105
115
|
export const TopbarActions: Story = {
|
|
106
116
|
render: (args) => ({
|
|
107
|
-
components: {
|
|
117
|
+
components: {
|
|
118
|
+
MDataTable,
|
|
119
|
+
MDataTableColumn,
|
|
120
|
+
MDataTableTop,
|
|
121
|
+
MButton,
|
|
122
|
+
Settings24,
|
|
123
|
+
Filter24,
|
|
124
|
+
MToggle,
|
|
125
|
+
},
|
|
108
126
|
setup() {
|
|
109
127
|
return { args };
|
|
110
128
|
},
|
|
@@ -153,7 +171,15 @@ export const TopbarActions: Story = {
|
|
|
153
171
|
|
|
154
172
|
export const TopbarEdition: Story = {
|
|
155
173
|
render: (args) => ({
|
|
156
|
-
components: {
|
|
174
|
+
components: {
|
|
175
|
+
MDataTable,
|
|
176
|
+
MDataTableColumn,
|
|
177
|
+
MDataTableTop,
|
|
178
|
+
MButton,
|
|
179
|
+
MIconButton,
|
|
180
|
+
Edit24,
|
|
181
|
+
Download24,
|
|
182
|
+
},
|
|
157
183
|
setup() {
|
|
158
184
|
return { args };
|
|
159
185
|
},
|
|
@@ -214,7 +240,7 @@ export const TopbarFull: Story = {
|
|
|
214
240
|
Settings24,
|
|
215
241
|
Filter24,
|
|
216
242
|
Search24,
|
|
217
|
-
MTag
|
|
243
|
+
MTag,
|
|
218
244
|
},
|
|
219
245
|
setup() {
|
|
220
246
|
return { args };
|
|
@@ -12,7 +12,7 @@ const meta: Meta<typeof MDataTable> = {
|
|
|
12
12
|
componentName: 'MDataTable',
|
|
13
13
|
docs: {
|
|
14
14
|
canvas: { sourceState: 'none' },
|
|
15
|
-
}
|
|
15
|
+
},
|
|
16
16
|
},
|
|
17
17
|
render: (args) => ({
|
|
18
18
|
components: { MDataTable, MDataTableColumn },
|
|
@@ -92,4 +92,4 @@ export const SpecifiedRows: Story = {
|
|
|
92
92
|
...Default.args,
|
|
93
93
|
expandableList: [1, 7, 9],
|
|
94
94
|
},
|
|
95
|
-
};
|
|
95
|
+
};
|
|
@@ -5,7 +5,6 @@ import * as utils from './utils';
|
|
|
5
5
|
import { MDataTable, MDataTableColumn } from '@mozaic-ds/datatable-vue';
|
|
6
6
|
import MCheckbox from '../checkbox/MCheckbox.vue';
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
const meta: Meta<typeof MDataTable> = {
|
|
10
9
|
title: 'DataTable/MDataTable Selectable',
|
|
11
10
|
component: MDataTable,
|
|
@@ -14,7 +13,7 @@ const meta: Meta<typeof MDataTable> = {
|
|
|
14
13
|
componentName: 'MDataTable',
|
|
15
14
|
docs: {
|
|
16
15
|
canvas: { sourceState: 'none' },
|
|
17
|
-
}
|
|
16
|
+
},
|
|
18
17
|
},
|
|
19
18
|
render: (args) => ({
|
|
20
19
|
components: { MDataTable, MDataTableColumn },
|
|
@@ -121,4 +120,4 @@ export const SpecifiedRows: Story = {
|
|
|
121
120
|
},
|
|
122
121
|
},
|
|
123
122
|
}),
|
|
124
|
-
};
|
|
123
|
+
};
|
|
@@ -12,9 +12,9 @@ figma.connect(
|
|
|
12
12
|
},
|
|
13
13
|
example: () =>
|
|
14
14
|
html`<script setup>
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
import { MDatepicker } from '@mozaic-ds/vue';
|
|
16
|
+
</script>
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
<MDatepicker id="datepicker" />`,
|
|
19
19
|
},
|
|
20
20
|
);
|
|
@@ -22,9 +22,9 @@ figma.connect(
|
|
|
22
22
|
},
|
|
23
23
|
example: ({ appearance, size }) =>
|
|
24
24
|
html`<script setup>
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
import { MDivider } from '@mozaic-ds/vue';
|
|
26
|
+
</script>
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
<MDivider appearance=${appearance} size=${size} />`,
|
|
29
29
|
},
|
|
30
30
|
);
|
|
@@ -19,19 +19,19 @@ figma.connect(
|
|
|
19
19
|
},
|
|
20
20
|
example: ({ position, extended }) =>
|
|
21
21
|
html`<script setup>
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
import { MDrawer, MButton } from '@mozaic-ds/vue';
|
|
23
|
+
</script>
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
25
|
+
<MDrawer
|
|
26
|
+
open
|
|
27
|
+
title="Drawer title"
|
|
28
|
+
:position=${position}
|
|
29
|
+
:extended=${extended}
|
|
30
|
+
>
|
|
31
|
+
<p>Drawer content</p>
|
|
32
|
+
<template #footer>
|
|
33
|
+
<MButton>Confirm</MButton>
|
|
34
|
+
</template>
|
|
35
|
+
</MDrawer>`,
|
|
36
36
|
},
|
|
37
37
|
);
|
|
@@ -20,11 +20,15 @@ figma.connect(
|
|
|
20
20
|
},
|
|
21
21
|
example: ({ label, requirementText }) =>
|
|
22
22
|
html`<script setup>
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
import { MField, MTextInput } from '@mozaic-ds/vue';
|
|
24
|
+
</script>
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
<MField
|
|
27
|
+
id="field-id"
|
|
28
|
+
label=${label}
|
|
29
|
+
requirement-text=${requirementText}
|
|
30
|
+
>
|
|
31
|
+
<MTextInput id="field-id" placeholder="Placeholder"></MTextInput>
|
|
32
|
+
</MField>`,
|
|
29
33
|
},
|
|
30
34
|
);
|
|
@@ -15,9 +15,9 @@ figma.connect(
|
|
|
15
15
|
},
|
|
16
16
|
example: ({ hasDragDrop }) =>
|
|
17
17
|
html`<script setup>
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
import { MFileUploader } from '@mozaic-ds/vue';
|
|
19
|
+
</script>
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
<MFileUploader :model-value="[]" :has-drag-drop=${hasDragDrop} />`,
|
|
22
22
|
},
|
|
23
23
|
);
|
|
@@ -19,9 +19,13 @@ figma.connect(
|
|
|
19
19
|
},
|
|
20
20
|
example: ({ format, valid }) =>
|
|
21
21
|
html`<script setup>
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
import { MFileUploaderItem } from '@mozaic-ds/vue';
|
|
23
|
+
</script>
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
<MFileUploaderItem
|
|
26
|
+
:file="{ name: 'document.pdf' }"
|
|
27
|
+
format=${format}
|
|
28
|
+
:valid=${valid}
|
|
29
|
+
/>`,
|
|
26
30
|
},
|
|
27
31
|
);
|
|
@@ -18,9 +18,9 @@ figma.connect(
|
|
|
18
18
|
},
|
|
19
19
|
example: ({ label, appearance }) =>
|
|
20
20
|
html`<script setup>
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
import { MFlag } from '@mozaic-ds/vue';
|
|
22
|
+
</script>
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
<MFlag label=${label} appearance=${appearance}></MFlag>`,
|
|
25
25
|
},
|
|
26
26
|
);
|
|
@@ -33,22 +33,22 @@ figma.connect(
|
|
|
33
33
|
},
|
|
34
34
|
example: ({ appearance, size, disabled, isLoading, outlined, ghost }) =>
|
|
35
35
|
html`<script setup>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
import { MIconButton } from '@mozaic-ds/vue';
|
|
37
|
+
import { ChevronRight24 } from '@mozaic-ds/icons-vue';
|
|
38
|
+
</script>
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
40
|
+
<MIconButton
|
|
41
|
+
appearance=${appearance}
|
|
42
|
+
size=${size}
|
|
43
|
+
disabled=${disabled}
|
|
44
|
+
:is-loading=${isLoading}
|
|
45
|
+
outlined=${outlined}
|
|
46
|
+
ghost=${ghost}
|
|
47
|
+
aria-label="Action"
|
|
48
|
+
>
|
|
49
|
+
<template #icon>
|
|
50
|
+
<ChevronRight24 />
|
|
51
|
+
</template>
|
|
52
|
+
</MIconButton>`,
|
|
53
53
|
},
|
|
54
54
|
);
|
|
@@ -25,9 +25,14 @@ figma.connect(
|
|
|
25
25
|
},
|
|
26
26
|
example: ({ value, label, size, status }) =>
|
|
27
27
|
html`<script setup>
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
import { MKpiItem } from '@mozaic-ds/vue';
|
|
29
|
+
</script>
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
<MKpiItem
|
|
32
|
+
value=${value}
|
|
33
|
+
label=${label}
|
|
34
|
+
size=${size}
|
|
35
|
+
status=${status}
|
|
36
|
+
/>`,
|
|
32
37
|
},
|
|
33
38
|
);
|
|
@@ -68,17 +68,16 @@ describe('MKpiItem component', () => {
|
|
|
68
68
|
expect(wrapper.find('.mc-kpi__icon').exists()).toBe(true);
|
|
69
69
|
});
|
|
70
70
|
|
|
71
|
-
it.each([
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
});
|
|
71
|
+
it.each([['increasing'], ['decreasing'], ['stable']] as const)(
|
|
72
|
+
'gives the trend icon an accessible label for "%s"',
|
|
73
|
+
(trend) => {
|
|
74
|
+
const wrapper = mount(KpiItem, {
|
|
75
|
+
props: { value: '123', trend },
|
|
76
|
+
});
|
|
77
|
+
const icon = wrapper.find('.mc-kpi__icon');
|
|
78
|
+
expect(icon.attributes('role')).toBe('img');
|
|
79
|
+
expect(icon.attributes('aria-label')).toBe(trend);
|
|
80
|
+
},
|
|
81
|
+
);
|
|
83
82
|
});
|
|
84
83
|
});
|
|
@@ -15,7 +15,13 @@
|
|
|
15
15
|
{{ information }}
|
|
16
16
|
</span>
|
|
17
17
|
|
|
18
|
-
<component
|
|
18
|
+
<component
|
|
19
|
+
v-if="trend"
|
|
20
|
+
:is="getIconComponent"
|
|
21
|
+
class="mc-kpi__icon"
|
|
22
|
+
role="img"
|
|
23
|
+
:aria-label="trend"
|
|
24
|
+
/>
|
|
19
25
|
</div>
|
|
20
26
|
</div>
|
|
21
27
|
</div>
|
|
@@ -23,9 +23,12 @@ figma.connect(
|
|
|
23
23
|
},
|
|
24
24
|
example: ({ size, value }) =>
|
|
25
25
|
html`<script setup>
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
import { MLinearProgressbarBuffer } from '@mozaic-ds/vue';
|
|
27
|
+
</script>
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
<MLinearProgressbarBuffer
|
|
30
|
+
size=${size}
|
|
31
|
+
:value=${value}
|
|
32
|
+
></MLinearProgressbarBuffer>`,
|
|
30
33
|
},
|
|
31
34
|
);
|
|
@@ -18,9 +18,11 @@ figma.connect(
|
|
|
18
18
|
},
|
|
19
19
|
example: ({ value }) =>
|
|
20
20
|
html`<script setup>
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
import { MLinearProgressbarPercentage } from '@mozaic-ds/vue';
|
|
22
|
+
</script>
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
<MLinearProgressbarPercentage
|
|
25
|
+
:value=${value}
|
|
26
|
+
></MLinearProgressbarPercentage>`,
|
|
25
27
|
},
|
|
26
28
|
);
|
|
@@ -22,11 +22,11 @@ figma.connect(
|
|
|
22
22
|
},
|
|
23
23
|
example: ({ label, size, appearance }) =>
|
|
24
24
|
html`<script setup>
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
import { MLink } from '@mozaic-ds/vue';
|
|
26
|
+
</script>
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
<MLink href="#" size=${size} appearance=${appearance}>
|
|
29
|
+
${label}
|
|
30
|
+
</MLink>`,
|
|
31
31
|
},
|
|
32
32
|
);
|
|
@@ -22,9 +22,9 @@ figma.connect(
|
|
|
22
22
|
},
|
|
23
23
|
example: ({ appearance, size }) =>
|
|
24
24
|
html`<script setup>
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
import { MLoader } from '@mozaic-ds/vue';
|
|
26
|
+
</script>
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
<MLoader appearance=${appearance} size=${size}></MLoader>`,
|
|
29
29
|
},
|
|
30
30
|
);
|
|
@@ -10,9 +10,9 @@ figma.connect(
|
|
|
10
10
|
props: {},
|
|
11
11
|
example: () =>
|
|
12
12
|
html`<script setup>
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import { MLoadingOverlay } from '@mozaic-ds/vue';
|
|
14
|
+
</script>
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
<MLoadingOverlay is-visible text="Loading..."></MLoadingOverlay>`,
|
|
17
17
|
},
|
|
18
18
|
);
|
|
@@ -10,18 +10,18 @@ figma.connect(
|
|
|
10
10
|
props: {},
|
|
11
11
|
example: () =>
|
|
12
12
|
html`<script setup>
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import { MModal, MButton } from '@mozaic-ds/vue';
|
|
14
|
+
</script>
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
<MModal
|
|
17
|
+
open
|
|
18
|
+
title="Modal title"
|
|
19
|
+
description="A modal is a dialog window allowing you to focus the user's attention."
|
|
20
|
+
closable
|
|
21
|
+
>
|
|
22
|
+
<template #footer>
|
|
23
|
+
<MButton>Confirm</MButton>
|
|
24
|
+
</template>
|
|
25
|
+
</MModal>`,
|
|
26
26
|
},
|
|
27
27
|
);
|
|
@@ -16,9 +16,13 @@ figma.connect(
|
|
|
16
16
|
},
|
|
17
17
|
example: ({ player }) =>
|
|
18
18
|
html`<script setup>
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
import { MNavigationIndicator } from '@mozaic-ds/vue';
|
|
20
|
+
</script>
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
<MNavigationIndicator
|
|
23
|
+
:steps="6"
|
|
24
|
+
:model-value="0"
|
|
25
|
+
player=${player}
|
|
26
|
+
></MNavigationIndicator>`,
|
|
23
27
|
},
|
|
24
28
|
);
|
|
@@ -23,9 +23,13 @@ figma.connect(
|
|
|
23
23
|
},
|
|
24
24
|
example: ({ label, appearance, size }) =>
|
|
25
25
|
html`<script setup>
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
import { MNumberBadge } from '@mozaic-ds/vue';
|
|
27
|
+
</script>
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
<MNumberBadge
|
|
30
|
+
:label=${label}
|
|
31
|
+
appearance=${appearance}
|
|
32
|
+
size=${size}
|
|
33
|
+
></MNumberBadge>`,
|
|
30
34
|
},
|
|
31
35
|
);
|
|
@@ -21,16 +21,16 @@ figma.connect(
|
|
|
21
21
|
},
|
|
22
22
|
example: ({ search, actions }) =>
|
|
23
23
|
html`<script setup>
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
import { MOptionListbox } from '@mozaic-ds/vue';
|
|
25
|
+
</script>
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
<MOptionListbox
|
|
28
|
+
id="option-listbox"
|
|
29
|
+
v-model="selected"
|
|
30
|
+
multiple
|
|
31
|
+
search=${search}
|
|
32
|
+
actions=${actions}
|
|
33
|
+
:options="[{ label: 'Option 1', value: '1' }, { label: 'Option 2', value: '2' }]"
|
|
34
|
+
/>`,
|
|
35
35
|
},
|
|
36
36
|
);
|
|
@@ -10,11 +10,11 @@ figma.connect(
|
|
|
10
10
|
props: {},
|
|
11
11
|
example: () =>
|
|
12
12
|
html`<script setup>
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import { MOverlay } from '@mozaic-ds/vue';
|
|
14
|
+
</script>
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
<MOverlay is-visible dialog-label="Overlay">
|
|
17
|
+
<p>Overlay content</p>
|
|
18
|
+
</MOverlay>`,
|
|
19
19
|
},
|
|
20
20
|
);
|
|
@@ -13,9 +13,9 @@ figma.connect(
|
|
|
13
13
|
},
|
|
14
14
|
example: ({ title, shadow }) =>
|
|
15
15
|
html`<script setup>
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
import { MPageHeader } from '@mozaic-ds/vue';
|
|
17
|
+
</script>
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
<MPageHeader title=${title} shadow=${shadow} />`,
|
|
20
20
|
},
|
|
21
21
|
);
|
|
@@ -15,20 +15,20 @@ figma.connect(
|
|
|
15
15
|
},
|
|
16
16
|
example: ({ compact }) =>
|
|
17
17
|
html`<script setup>
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
import { MPagination } from '@mozaic-ds/vue';
|
|
19
|
+
</script>
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
<MPagination
|
|
22
|
+
id="pagination-id"
|
|
23
|
+
:model-value="1"
|
|
24
|
+
:compact=${compact}
|
|
25
|
+
:options="[
|
|
26
26
|
{ text: 'Page 1 of 99', value: 1 },
|
|
27
27
|
{ text: 'Page 2 of 99', value: 2 },
|
|
28
28
|
{ text: 'Page 99 of 99', value: 99 },
|
|
29
29
|
]"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
select-label="Select page"
|
|
31
|
+
aria-label="pagination"
|
|
32
|
+
></MPagination>`,
|
|
33
33
|
},
|
|
34
34
|
);
|