@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
|
@@ -34,18 +34,18 @@ figma.connect(
|
|
|
34
34
|
},
|
|
35
35
|
example: ({ size, disabled, readonly, isInvalid, isClearable }) =>
|
|
36
36
|
html`<script setup>
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
import { MTextInput } from '@mozaic-ds/vue';
|
|
38
|
+
</script>
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
40
|
+
<MTextInput
|
|
41
|
+
id="text-input-id"
|
|
42
|
+
size=${size}
|
|
43
|
+
disabled=${disabled}
|
|
44
|
+
readonly=${readonly}
|
|
45
|
+
:is-invalid=${isInvalid}
|
|
46
|
+
:is-clearable=${isClearable}
|
|
47
|
+
placeholder="Placeholder"
|
|
48
|
+
model-value=""
|
|
49
|
+
></MTextInput>`,
|
|
50
50
|
},
|
|
51
51
|
);
|
|
@@ -11,7 +11,7 @@ A text input is a single-line input that allows users to enter and edit short te
|
|
|
11
11
|
| `name` | The name attribute for the input element, typically used for form submission. | `string` | - |
|
|
12
12
|
| `modelValue` | The current value of the input field. | `string` `number` | - |
|
|
13
13
|
| `placeholder` | A placeholder text to show in the input when it is empty. | `string` | - |
|
|
14
|
-
| `inputType` | Defines the type of input. | `"number"` `"search"` `"text"` `"date"` `"email"` `"password"` `"tel"` | `"text"` |
|
|
14
|
+
| `inputType` | Defines the type of input. | `"number"` `"search"` `"text"` `"date"` `"datetime-local"` `"email"` `"password"` `"tel"` | `"text"` |
|
|
15
15
|
| `isInvalid` | If `true`, applies an invalid state to the input. | `boolean` | - |
|
|
16
16
|
| `disabled` | If `true`, disables the input, making it non-interactive. | `boolean` | - |
|
|
17
17
|
| `size` | Determines the size of the input. | `"s"` `"m"` | `"m"` |
|
|
@@ -21,11 +21,11 @@ figma.connect(
|
|
|
21
21
|
},
|
|
22
22
|
example: ({ bordered }) =>
|
|
23
23
|
html`<script setup>
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
import { MTile } from '@mozaic-ds/vue';
|
|
25
|
+
</script>
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
<MTile bordered=${bordered}>
|
|
28
|
+
<p>Tile content</p>
|
|
29
|
+
</MTile>`,
|
|
30
30
|
},
|
|
31
31
|
);
|
|
@@ -20,12 +20,12 @@ figma.connect(
|
|
|
20
20
|
},
|
|
21
21
|
example: ({ appearance, iconPosition }) =>
|
|
22
22
|
html`<script setup>
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
import { MTileClickable } from '@mozaic-ds/vue';
|
|
24
|
+
</script>
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
<MTileClickable appearance=${appearance} icon-position=${iconPosition}>
|
|
27
|
+
<p>Tile content</p>
|
|
28
|
+
<template #icon>Action</template>
|
|
29
|
+
</MTileClickable>`,
|
|
30
30
|
},
|
|
31
31
|
);
|
|
@@ -20,12 +20,12 @@ figma.connect(
|
|
|
20
20
|
},
|
|
21
21
|
example: ({ appearance, trigger }) =>
|
|
22
22
|
html`<script setup>
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
import { MTileExpandable } from '@mozaic-ds/vue';
|
|
24
|
+
</script>
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
<MTileExpandable appearance=${appearance} trigger=${trigger}>
|
|
27
|
+
<p>Tile content</p>
|
|
28
|
+
<template #details>Expandable details</template>
|
|
29
|
+
</MTileExpandable>`,
|
|
30
30
|
},
|
|
31
31
|
);
|
|
@@ -19,11 +19,15 @@ figma.connect(
|
|
|
19
19
|
},
|
|
20
20
|
example: ({ inputPosition, centered }) =>
|
|
21
21
|
html`<script setup>
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
import { MTileSelectable } from '@mozaic-ds/vue';
|
|
23
|
+
</script>
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
<MTileSelectable
|
|
26
|
+
v-model="selected"
|
|
27
|
+
input-position=${inputPosition}
|
|
28
|
+
:centered=${centered}
|
|
29
|
+
>
|
|
30
|
+
<p>Tile content</p>
|
|
31
|
+
</MTileSelectable>`,
|
|
28
32
|
},
|
|
29
33
|
);
|
|
@@ -17,9 +17,9 @@ figma.connect(
|
|
|
17
17
|
},
|
|
18
18
|
example: ({ status }) =>
|
|
19
19
|
html`<script setup>
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
import { MToaster } from '@mozaic-ds/vue';
|
|
21
|
+
</script>
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
<MToaster description="Notification message" status=${status} />`,
|
|
24
24
|
},
|
|
25
25
|
);
|
|
@@ -25,15 +25,15 @@ figma.connect(
|
|
|
25
25
|
},
|
|
26
26
|
example: ({ modelValue, size, disabled }) =>
|
|
27
27
|
html`<script setup>
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
import { MToggle } from '@mozaic-ds/vue';
|
|
29
|
+
</script>
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
<MToggle
|
|
32
|
+
id="toggle-id"
|
|
33
|
+
label="Toggle Label"
|
|
34
|
+
:model-value=${modelValue}
|
|
35
|
+
size=${size}
|
|
36
|
+
disabled=${disabled}
|
|
37
|
+
></MToggle>`,
|
|
38
38
|
},
|
|
39
39
|
);
|
|
@@ -15,16 +15,16 @@ figma.connect(
|
|
|
15
15
|
},
|
|
16
16
|
example: ({ inline }) =>
|
|
17
17
|
html`<script setup>
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
import { MToggleGroup } from '@mozaic-ds/vue';
|
|
19
|
+
</script>
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
<MToggleGroup
|
|
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
|
);
|
|
@@ -19,11 +19,16 @@ figma.connect(
|
|
|
19
19
|
},
|
|
20
20
|
example: ({ text, position, pointer }) =>
|
|
21
21
|
html`<script setup>
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
import { MTooltip } from '@mozaic-ds/vue';
|
|
23
|
+
</script>
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
<MTooltip
|
|
26
|
+
id="tooltip-id"
|
|
27
|
+
text=${text}
|
|
28
|
+
position=${position}
|
|
29
|
+
:pointer=${pointer}
|
|
30
|
+
>
|
|
31
|
+
<span>Hover me</span>
|
|
32
|
+
</MTooltip>`,
|
|
28
33
|
},
|
|
29
34
|
);
|