@mozaic-ds/vue 1.0.0-beta.7 → 1.0.0-beta.9
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/README.md +1 -1
- package/dist/mozaic-vue.css +1 -1
- package/dist/mozaic-vue.d.ts +605 -210
- package/dist/mozaic-vue.js +1281 -629
- package/dist/mozaic-vue.js.map +1 -1
- package/dist/mozaic-vue.umd.cjs +1 -1
- package/dist/mozaic-vue.umd.cjs.map +1 -1
- package/package.json +8 -11
- package/src/components/Contributing.mdx +1 -1
- package/src/components/GettingStarted.mdx +2 -7
- package/src/components/Introduction.mdx +41 -21
- package/src/components/Support.mdx +1 -1
- package/src/components/breadcrumb/MBreadcrumb.stories.ts +11 -13
- package/src/components/breadcrumb/MBreadcrumb.vue +1 -1
- package/src/components/button/MButton.stories.ts +1 -8
- package/src/components/checkbox/MCheckbox.stories.ts +2 -2
- package/src/components/checkboxgroup/MCheckboxGroup.stories.ts +2 -2
- package/src/components/divider/MDivider.spec.ts +57 -0
- package/src/components/divider/MDivider.stories.ts +64 -0
- package/src/components/divider/MDivider.vue +56 -0
- package/src/components/drawer/MDrawer.spec.ts +100 -0
- package/src/components/drawer/MDrawer.stories.ts +128 -0
- package/src/components/drawer/MDrawer.vue +140 -0
- package/src/components/field/MField.stories.ts +2 -9
- package/src/components/fieldgroup/MFieldGroup.stories.ts +2 -9
- package/src/components/iconbutton/MIconButton.stories.ts +12 -4
- package/src/components/link/MLink.stories.ts +3 -12
- package/src/components/loader/MLoader.stories.ts +3 -5
- package/src/components/loader/MLoader.vue +1 -0
- package/src/components/loadingoverlay/MLoadingOverlay.spec.ts +37 -0
- package/src/components/loadingoverlay/MLoadingOverlay.stories.ts +40 -0
- package/src/components/loadingoverlay/MLoadingOverlay.vue +28 -0
- package/src/components/modal/MModal.spec.ts +103 -0
- package/src/components/modal/MModal.stories.ts +127 -0
- package/src/components/modal/MModal.vue +131 -0
- package/src/components/numberbadge/MNumberBadge.stories.ts +3 -5
- package/src/components/overlay/MOverlay.stories.ts +3 -8
- package/src/components/pagination/MPagination.spec.ts +123 -0
- package/src/components/pagination/MPagination.stories.ts +83 -0
- package/src/components/pagination/MPagination.vue +142 -0
- package/src/components/passwordinput/MPasswordInput.stories.ts +2 -2
- package/src/components/passwordinput/MPasswordInput.vue +2 -5
- package/src/components/pincode/MPincode.spec.ts +126 -0
- package/src/components/pincode/MPincode.stories.ts +68 -0
- package/src/components/pincode/MPincode.vue +139 -0
- package/src/components/quantityselector/MQuantitySelector.stories.ts +2 -2
- package/src/components/radio/MRadio.stories.ts +2 -2
- package/src/components/radiogroup/MRadioGroup.stories.ts +2 -2
- package/src/components/select/MSelect.stories.ts +2 -2
- package/src/components/statusbadge/MStatusBadge.stories.ts +1 -1
- package/src/components/statusdot/MStatusDot.stories.ts +1 -1
- package/src/components/statusnotification/MStatusNotification.spec.ts +12 -8
- package/src/components/statusnotification/MStatusNotification.stories.ts +2 -9
- package/src/components/statusnotification/MStatusNotification.vue +8 -8
- package/src/components/tabs/MTabs.stories.ts +104 -0
- package/src/components/tabs/MTabs.vue +113 -0
- package/src/components/tabs/Mtabs.spec.ts +149 -0
- package/src/components/tag/MTag.spec.ts +107 -0
- package/src/components/tag/MTag.stories.ts +75 -0
- package/src/components/tag/MTag.vue +151 -0
- package/src/components/textarea/MTextArea.stories.ts +2 -2
- package/src/components/textinput/MTextInput.stories.ts +2 -9
- package/src/components/toggle/MToggle.stories.ts +2 -2
- package/src/components/togglegroup/MToggleGroup.stories.ts +2 -2
- package/src/components/usingIcons.mdx +5 -13
- package/src/components/usingPresets.mdx +12 -9
- package/src/main.ts +8 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Meta } from '@storybook/blocks';
|
|
2
|
-
import { Source } from '@storybook/addon-docs';
|
|
1
|
+
import { Meta, Source } from '@storybook/addon-docs/blocks';
|
|
3
2
|
|
|
4
3
|
<Meta title="Using Presets" />
|
|
5
4
|
|
|
@@ -31,12 +30,13 @@ Once **Mozaic-Vue** is installed as shown, we can make the following changes:
|
|
|
31
30
|
All it has to do is insert the following code into its main Sass file (entrypoint stylesheet):
|
|
32
31
|
|
|
33
32
|
<Source
|
|
34
|
-
language=
|
|
33
|
+
language="css"
|
|
35
34
|
dark
|
|
36
35
|
code={`
|
|
37
36
|
// Entrypoint stylesheet
|
|
38
37
|
@use "@mozaic-ds/tokens/<presetName>" as *;
|
|
39
|
-
`}
|
|
38
|
+
`}
|
|
39
|
+
/>
|
|
40
40
|
|
|
41
41
|
> [!NOTE]
|
|
42
42
|
> The `<presetName>` string should be replaced by the name of the preset you want, one of the following values: `adeo | enki | mbrand`.
|
|
@@ -45,12 +45,13 @@ All it has to do is insert the following code into its main Sass file (entrypoin
|
|
|
45
45
|
For example, for ADEO
|
|
46
46
|
|
|
47
47
|
<Source
|
|
48
|
-
language=
|
|
48
|
+
language="css"
|
|
49
49
|
dark
|
|
50
50
|
code={`
|
|
51
51
|
// Entrypoint stylesheet
|
|
52
52
|
@use "@mozaic-ds/tokens/adeo" as *;
|
|
53
|
-
`}
|
|
53
|
+
`}
|
|
54
|
+
/>
|
|
54
55
|
|
|
55
56
|
### 2. Font by brand
|
|
56
57
|
|
|
@@ -65,7 +66,9 @@ The table below summarises which font to use depending on the brand.
|
|
|
65
66
|
</tr>
|
|
66
67
|
<tr>
|
|
67
68
|
<td>Leroy Merlin</td>
|
|
68
|
-
<td>
|
|
69
|
+
<td>
|
|
70
|
+
[LeroyMerlinSans](https://mozaic.adeo.cloud/foundations/typography/font-families/)
|
|
71
|
+
</td>
|
|
69
72
|
</tr>
|
|
70
73
|
<tr>
|
|
71
74
|
<td>Adeo</td>
|
|
@@ -86,7 +89,7 @@ From there, we can update the main style sheet of your project, in order to impo
|
|
|
86
89
|
@use "@mozaic-ds/styles/tools/t.font" as *;
|
|
87
90
|
|
|
88
91
|
body {
|
|
89
|
-
|
|
92
|
+
@include set-font-family();
|
|
90
93
|
}
|
|
91
94
|
`} />
|
|
92
95
|
|
|
@@ -109,7 +112,7 @@ You can do this as follows:
|
|
|
109
112
|
<Source
|
|
110
113
|
language="bash"
|
|
111
114
|
dark
|
|
112
|
-
code=
|
|
115
|
+
code="cp node_modules/@mozaic-ds/web-fonts/*.{woff,woff2} static/assets/fonts"
|
|
113
116
|
/>
|
|
114
117
|
|
|
115
118
|
### 3. Usage
|
package/src/main.ts
CHANGED
|
@@ -2,20 +2,28 @@ export { default as MBreadcrumb } from './components/breadcrumb/MBreadcrumb.vue'
|
|
|
2
2
|
export { default as MButton } from './components/button/MButton.vue';
|
|
3
3
|
export { default as MCheckbox } from './components/checkbox/MCheckbox.vue';
|
|
4
4
|
export { default as MCheckboxGroup } from './components/checkboxgroup/MCheckboxGroup.vue';
|
|
5
|
+
export { default as MDivider } from './components/divider/MDivider.vue';
|
|
6
|
+
export { default as MDrawer } from './components/drawer/MDrawer.vue';
|
|
5
7
|
export { default as MField } from './components/field/MField.vue';
|
|
6
8
|
export { default as MFieldGroup } from './components/fieldgroup/MFieldGroup.vue';
|
|
7
9
|
export { default as MIconButton } from './components/iconbutton/MIconButton.vue';
|
|
8
10
|
export { default as MLink } from './components/link/MLink.vue';
|
|
9
11
|
export { default as MLoader } from './components/loader/MLoader.vue';
|
|
12
|
+
export { default as MLoadingOverlay } from './components/loadingoverlay/MLoadingOverlay.vue';
|
|
13
|
+
export { default as MModal } from './components/modal/MModal.vue';
|
|
10
14
|
export { default as MNumberBadge } from './components/numberbadge/MNumberBadge.vue';
|
|
11
15
|
export { default as MOverlay } from './components/overlay/MOverlay.vue';
|
|
16
|
+
export { default as MPagination } from './components/pagination/MPagination.vue';
|
|
12
17
|
export { default as MPasswordInput } from './components/passwordinput/MPasswordInput.vue';
|
|
18
|
+
export { default as MPincode } from './components/pincode/MPincode.vue';
|
|
13
19
|
export { default as MQuantitySelector } from './components/quantityselector/MQuantitySelector.vue';
|
|
14
20
|
export { default as MRadio } from './components/radio/MRadio.vue';
|
|
15
21
|
export { default as MRadioGroup } from './components/radiogroup/MRadioGroup.vue';
|
|
16
22
|
export { default as MSelect } from './components/select/MSelect.vue';
|
|
17
23
|
export { default as MStatusBadge } from './components/statusbadge/MStatusBadge.vue';
|
|
18
24
|
export { default as MStatusNotification } from './components/statusnotification/MStatusNotification.vue';
|
|
25
|
+
export { default as MTabs } from './components/tabs/MTabs.vue';
|
|
26
|
+
export { default as MTag } from './components/tag/MTag.vue';
|
|
19
27
|
export { default as MTextArea } from './components/textarea/MTextArea.vue';
|
|
20
28
|
export { default as MTextInput } from './components/textinput/MTextInput.vue';
|
|
21
29
|
export { default as MToggle } from './components/toggle/MToggle.vue';
|