@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.
Files changed (99) hide show
  1. package/dist/mozaic-vue.css +1 -1
  2. package/dist/mozaic-vue.d.ts +958 -2090
  3. package/dist/mozaic-vue.js +806 -779
  4. package/dist/mozaic-vue.js.map +1 -1
  5. package/dist/mozaic-vue.umd.cjs +6 -6
  6. package/dist/mozaic-vue.umd.cjs.map +1 -1
  7. package/package.json +7 -5
  8. package/src/components/accordionlist/MAccordionList.figma.ts +16 -16
  9. package/src/components/accordionlist/MAccordionList.stories.ts +1 -1
  10. package/src/components/accordionlistitem/MAccordionListItem.figma.ts +9 -5
  11. package/src/components/accordionlistitem/MAccordionListItem.vue +4 -1
  12. package/src/components/accordionlistitem/README.md +2 -0
  13. package/src/components/actionbottombar/MActionBottomBar.figma.ts +7 -7
  14. package/src/components/actionlistbox/MActionListbox.figma.ts +11 -11
  15. package/src/components/actionlistbox/MActionListbox.spec.ts +21 -7
  16. package/src/components/actionlistbox/MActionListbox.vue +15 -4
  17. package/src/components/avatar/MAvatar.figma.ts +5 -5
  18. package/src/components/breadcrumb/MBreadcrumb.figma.ts +7 -7
  19. package/src/components/builtinmenu/MBuiltInMenu.figma.ts +8 -5
  20. package/src/components/builtinmenu/MBuiltInMenu.spec.ts +3 -1
  21. package/src/components/button/MButton.figma.ts +21 -6
  22. package/src/components/callout/MCallout.figma.ts +7 -7
  23. package/src/components/carousel/MCarousel.figma.ts +10 -10
  24. package/src/components/checkbox/MCheckbox.figma.ts +10 -10
  25. package/src/components/checkboxgroup/MCheckboxGroup.figma.ts +7 -7
  26. package/src/components/checklistmenu/MCheckListMenu.figma.ts +8 -8
  27. package/src/components/circularprogressbar/MCircularProgressbar.figma.ts +7 -3
  28. package/src/components/combobox/MCombobox.figma.ts +10 -10
  29. package/src/components/container/MContainer.figma.ts +5 -5
  30. package/src/components/datatable/DataTable.stories.ts +33 -7
  31. package/src/components/datatable/DataTableCells.stories.ts +2 -2
  32. package/src/components/datatable/DataTableEmpty.stories.ts +2 -2
  33. package/src/components/datatable/DataTableExpandable.stories.ts +2 -2
  34. package/src/components/datatable/DataTableNested.stories.ts +1 -1
  35. package/src/components/datatable/DataTableSelectable.stories.ts +2 -3
  36. package/src/components/datatable/DataTableSortable.stories.ts +1 -1
  37. package/src/components/datepicker/MDatepicker.figma.ts +3 -3
  38. package/src/components/divider/MDivider.figma.ts +3 -3
  39. package/src/components/drawer/MDrawer.figma.ts +13 -13
  40. package/src/components/field/MField.figma.ts +9 -5
  41. package/src/components/fileuploader/MFileUploader.figma.ts +3 -3
  42. package/src/components/fileuploaderitem/MFileUploaderItem.figma.ts +7 -3
  43. package/src/components/flag/MFlag.figma.ts +3 -3
  44. package/src/components/iconbutton/MIconButton.figma.ts +16 -16
  45. package/src/components/kpiitem/MKpiItem.figma.ts +8 -3
  46. package/src/components/kpiitem/MKpiItem.spec.ts +11 -12
  47. package/src/components/kpiitem/MKpiItem.vue +7 -1
  48. package/src/components/linearprogressbarbuffer/MLinearProgressbarBuffer.figma.ts +6 -3
  49. package/src/components/linearprogressbarpercentage/MLinearProgressbarPercentage.figma.ts +5 -3
  50. package/src/components/link/MLink.figma.ts +5 -5
  51. package/src/components/loader/MLoader.figma.ts +3 -3
  52. package/src/components/loadingoverlay/MLoadingOverlay.figma.ts +3 -3
  53. package/src/components/modal/MModal.figma.ts +12 -12
  54. package/src/components/navigationindicator/MNavigationIndicator.figma.ts +7 -3
  55. package/src/components/numberbadge/MNumberBadge.figma.ts +7 -3
  56. package/src/components/optionListbox/MOptionListbox.figma.ts +10 -10
  57. package/src/components/overlay/MOverlay.figma.ts +5 -5
  58. package/src/components/pageheader/MPageHeader.figma.ts +3 -3
  59. package/src/components/pagination/MPagination.figma.ts +10 -10
  60. package/src/components/passwordinput/MPasswordInput.figma.ts +9 -9
  61. package/src/components/phonenumber/MPhoneNumber.figma.ts +9 -9
  62. package/src/components/phonenumber/MPhoneNumber.vue +5 -3
  63. package/src/components/pincode/MPincode.figma.ts +9 -9
  64. package/src/components/popover/MPopover.figma.ts +15 -15
  65. package/src/components/quantityselector/MQuantitySelector.figma.ts +12 -12
  66. package/src/components/radio/MRadio.figma.ts +9 -9
  67. package/src/components/radiogroup/MRadioGroup.figma.ts +7 -7
  68. package/src/components/segmentedcontrol/MSegmentedControl.figma.ts +8 -8
  69. package/src/components/select/MSelect.figma.ts +11 -11
  70. package/src/components/sidebar/MSidebar.figma.ts +8 -8
  71. package/src/components/sidebar/MSidebar.vue +1 -0
  72. package/src/components/sidebarexpandableitem/MSidebarExpandableItem.figma.ts +8 -5
  73. package/src/components/sidebarfooter/MSidebarFooter.figma.ts +7 -3
  74. package/src/components/sidebarheader/MSidebarHeader.figma.ts +3 -3
  75. package/src/components/sidebarnavitem/MSidebarNavItem.figma.ts +3 -3
  76. package/src/components/sidebarshortcutitem/MSidebarShortcutItem.figma.ts +3 -3
  77. package/src/components/starrating/MStarRating.figma.ts +7 -7
  78. package/src/components/statusbadge/MStatusBadge.figma.ts +3 -3
  79. package/src/components/statusdot/MStatusDot.figma.ts +3 -3
  80. package/src/components/statusmessage/MStatusMessage.figma.ts +3 -3
  81. package/src/components/statusnotification/MStatusNotification.figma.ts +7 -7
  82. package/src/components/stepperbottombar/MStepperBottomBar.figma.ts +3 -3
  83. package/src/components/steppercompact/MStepperCompact.figma.ts +8 -3
  84. package/src/components/stepperinline/MStepperInline.figma.ts +6 -3
  85. package/src/components/stepperinline/MStepperInline.stories.ts +5 -1
  86. package/src/components/stepperstacked/MStepperStacked.figma.ts +6 -3
  87. package/src/components/tabs/MTabs.figma.ts +8 -8
  88. package/src/components/tag/MTag.figma.ts +3 -3
  89. package/src/components/textarea/MTextArea.figma.ts +8 -8
  90. package/src/components/textinput/MTextInput.figma.ts +12 -12
  91. package/src/components/textinput/README.md +1 -1
  92. package/src/components/tile/MTile.figma.ts +5 -5
  93. package/src/components/tileclickable/MTileClickable.figma.ts +6 -6
  94. package/src/components/tileexpandable/MTileExpandable.figma.ts +6 -6
  95. package/src/components/tileselectable/MTileSelectable.figma.ts +9 -5
  96. package/src/components/toaster/MToaster.figma.ts +3 -3
  97. package/src/components/toggle/MToggle.figma.ts +9 -9
  98. package/src/components/togglegroup/MToggleGroup.figma.ts +7 -7
  99. 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 { MDataTable, MDataTableColumn, MDataTableTop } from '@mozaic-ds/datatable-vue';
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 { Settings24, Edit24, Download24, Filter24, Search24 } from '@mozaic-ds/icons-vue';
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: { MDataTable, MDataTableColumn, MDataTableTop, MButton, Settings24, Filter24, MToggle },
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: { MDataTable, MDataTableColumn, MDataTableTop, MButton, MIconButton, Edit24, Download24 },
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 };
@@ -19,7 +19,7 @@ export default {
19
19
  componentName: 'MDataTable',
20
20
  docs: {
21
21
  canvas: { sourceState: 'none' },
22
- }
22
+ },
23
23
  },
24
24
  };
25
25
 
@@ -248,4 +248,4 @@ export const Default = {
248
248
  },
249
249
  },
250
250
  }),
251
- };
251
+ };
@@ -14,7 +14,7 @@ const meta: Meta<typeof MDataTable> = {
14
14
  componentName: 'MDataTable',
15
15
  docs: {
16
16
  canvas: { sourceState: 'none' },
17
- }
17
+ },
18
18
  },
19
19
  };
20
20
 
@@ -99,4 +99,4 @@ export const Search: Story = {
99
99
  </MDataTable>
100
100
  `,
101
101
  }),
102
- };
102
+ };
@@ -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
+ };
@@ -13,7 +13,7 @@ const meta: Meta<typeof MDataTable> = {
13
13
  componentName: 'MDataTable',
14
14
  docs: {
15
15
  canvas: { sourceState: 'none' },
16
- }
16
+ },
17
17
  },
18
18
  render: (args) => ({
19
19
  components: { MDataTable, MDataTableColumn },
@@ -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
+ };
@@ -14,7 +14,7 @@ const meta: Meta<typeof MDataTable> = {
14
14
  componentName: 'MDataTable',
15
15
  docs: {
16
16
  canvas: { sourceState: 'none' },
17
- }
17
+ },
18
18
  },
19
19
  render: (args) => ({
20
20
  components: { MDataTable, MDataTableColumn },
@@ -12,9 +12,9 @@ figma.connect(
12
12
  },
13
13
  example: () =>
14
14
  html`<script setup>
15
- import { MDatepicker } from '@mozaic-ds/vue';
16
- </script>
15
+ import { MDatepicker } from '@mozaic-ds/vue';
16
+ </script>
17
17
 
18
- <MDatepicker id="datepicker" />`,
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
- import { MDivider } from '@mozaic-ds/vue';
26
- </script>
25
+ import { MDivider } from '@mozaic-ds/vue';
26
+ </script>
27
27
 
28
- <MDivider appearance=${appearance} size=${size} />`,
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
- import { MDrawer, MButton } from '@mozaic-ds/vue';
23
- </script>
22
+ import { MDrawer, MButton } from '@mozaic-ds/vue';
23
+ </script>
24
24
 
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>`,
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
- import { MField, MTextInput } from '@mozaic-ds/vue';
24
- </script>
23
+ import { MField, MTextInput } from '@mozaic-ds/vue';
24
+ </script>
25
25
 
26
- <MField id="field-id" label=${label} requirement-text=${requirementText}>
27
- <MTextInput id="field-id" placeholder="Placeholder"></MTextInput>
28
- </MField>`,
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
- import { MFileUploader } from '@mozaic-ds/vue';
19
- </script>
18
+ import { MFileUploader } from '@mozaic-ds/vue';
19
+ </script>
20
20
 
21
- <MFileUploader :model-value="[]" :has-drag-drop=${hasDragDrop} />`,
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
- import { MFileUploaderItem } from '@mozaic-ds/vue';
23
- </script>
22
+ import { MFileUploaderItem } from '@mozaic-ds/vue';
23
+ </script>
24
24
 
25
- <MFileUploaderItem :file="{ name: 'document.pdf' }" format=${format} :valid=${valid} />`,
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
- import { MFlag } from '@mozaic-ds/vue';
22
- </script>
21
+ import { MFlag } from '@mozaic-ds/vue';
22
+ </script>
23
23
 
24
- <MFlag label=${label} appearance=${appearance}></MFlag>`,
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
- import { MIconButton } from '@mozaic-ds/vue';
37
- import { ChevronRight24 } from '@mozaic-ds/icons-vue';
38
- </script>
36
+ import { MIconButton } from '@mozaic-ds/vue';
37
+ import { ChevronRight24 } from '@mozaic-ds/icons-vue';
38
+ </script>
39
39
 
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>`,
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
- import { MKpiItem } from '@mozaic-ds/vue';
29
- </script>
28
+ import { MKpiItem } from '@mozaic-ds/vue';
29
+ </script>
30
30
 
31
- <MKpiItem value=${value} label=${label} size=${size} status=${status} />`,
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
- ['increasing'],
73
- ['decreasing'],
74
- ['stable'],
75
- ] as const)('gives the trend icon an accessible label for "%s"', (trend) => {
76
- const wrapper = mount(KpiItem, {
77
- props: { value: '123', trend },
78
- });
79
- const icon = wrapper.find('.mc-kpi__icon');
80
- expect(icon.attributes('role')).toBe('img');
81
- expect(icon.attributes('aria-label')).toBe(trend);
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 v-if="trend" :is="getIconComponent" class="mc-kpi__icon" role="img" :aria-label="trend" />
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
- import { MLinearProgressbarBuffer } from '@mozaic-ds/vue';
27
- </script>
26
+ import { MLinearProgressbarBuffer } from '@mozaic-ds/vue';
27
+ </script>
28
28
 
29
- <MLinearProgressbarBuffer size=${size} :value=${value}></MLinearProgressbarBuffer>`,
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
- import { MLinearProgressbarPercentage } from '@mozaic-ds/vue';
22
- </script>
21
+ import { MLinearProgressbarPercentage } from '@mozaic-ds/vue';
22
+ </script>
23
23
 
24
- <MLinearProgressbarPercentage :value=${value}></MLinearProgressbarPercentage>`,
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
- import { MLink } from '@mozaic-ds/vue';
26
- </script>
25
+ import { MLink } from '@mozaic-ds/vue';
26
+ </script>
27
27
 
28
- <MLink href="#" size=${size} appearance=${appearance}>
29
- ${label}
30
- </MLink>`,
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
- import { MLoader } from '@mozaic-ds/vue';
26
- </script>
25
+ import { MLoader } from '@mozaic-ds/vue';
26
+ </script>
27
27
 
28
- <MLoader appearance=${appearance} size=${size}></MLoader>`,
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
- import { MLoadingOverlay } from '@mozaic-ds/vue';
14
- </script>
13
+ import { MLoadingOverlay } from '@mozaic-ds/vue';
14
+ </script>
15
15
 
16
- <MLoadingOverlay is-visible text="Loading..."></MLoadingOverlay>`,
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
- import { MModal, MButton } from '@mozaic-ds/vue';
14
- </script>
13
+ import { MModal, MButton } from '@mozaic-ds/vue';
14
+ </script>
15
15
 
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>`,
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
- import { MNavigationIndicator } from '@mozaic-ds/vue';
20
- </script>
19
+ import { MNavigationIndicator } from '@mozaic-ds/vue';
20
+ </script>
21
21
 
22
- <MNavigationIndicator :steps="6" :model-value="0" player=${player}></MNavigationIndicator>`,
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
- import { MNumberBadge } from '@mozaic-ds/vue';
27
- </script>
26
+ import { MNumberBadge } from '@mozaic-ds/vue';
27
+ </script>
28
28
 
29
- <MNumberBadge :label=${label} appearance=${appearance} size=${size}></MNumberBadge>`,
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
- import { MOptionListbox } from '@mozaic-ds/vue';
25
- </script>
24
+ import { MOptionListbox } from '@mozaic-ds/vue';
25
+ </script>
26
26
 
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
- />`,
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
- import { MOverlay } from '@mozaic-ds/vue';
14
- </script>
13
+ import { MOverlay } from '@mozaic-ds/vue';
14
+ </script>
15
15
 
16
- <MOverlay is-visible dialog-label="Overlay">
17
- <p>Overlay content</p>
18
- </MOverlay>`,
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
- import { MPageHeader } from '@mozaic-ds/vue';
17
- </script>
16
+ import { MPageHeader } from '@mozaic-ds/vue';
17
+ </script>
18
18
 
19
- <MPageHeader title=${title} shadow=${shadow} />`,
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
- import { MPagination } from '@mozaic-ds/vue';
19
- </script>
18
+ import { MPagination } from '@mozaic-ds/vue';
19
+ </script>
20
20
 
21
- <MPagination
22
- id="pagination-id"
23
- :model-value="1"
24
- :compact=${compact}
25
- :options="[
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
- select-label="Select page"
31
- aria-label="pagination"
32
- ></MPagination>`,
30
+ select-label="Select page"
31
+ aria-label="pagination"
32
+ ></MPagination>`,
33
33
  },
34
34
  );