@mozaic-ds/vue 1.0.0-rc.3 → 2.1.0
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/LICENSE +51 -0
- package/README.md +76 -77
- package/dist/mozaic-vue.css +1 -1
- package/dist/mozaic-vue.d.ts +1664 -0
- package/dist/mozaic-vue.js +1943 -0
- package/dist/mozaic-vue.js.map +1 -0
- package/dist/mozaic-vue.umd.cjs +2 -0
- package/dist/mozaic-vue.umd.cjs.map +1 -0
- package/env.d.ts +1 -0
- package/package.json +78 -51
- package/src/components/Contributing.mdx +118 -0
- package/src/components/GettingStarted.mdx +45 -0
- package/src/components/Introduction.mdx +100 -0
- package/src/components/Support.mdx +18 -0
- package/src/components/breadcrumb/MBreadcrumb.spec.ts +105 -0
- package/src/components/breadcrumb/MBreadcrumb.stories.ts +82 -0
- package/src/components/breadcrumb/MBreadcrumb.vue +52 -55
- package/src/components/button/MButton.spec.ts +191 -0
- package/src/components/button/MButton.stories.ts +59 -0
- package/src/components/button/MButton.vue +98 -154
- package/src/components/checkbox/MCheckbox.spec.ts +104 -0
- package/src/components/checkbox/MCheckbox.stories.ts +83 -0
- package/src/components/checkbox/MCheckbox.vue +60 -101
- package/src/components/checkboxgroup/MCheckboxGroup.spec.ts +78 -0
- package/src/components/checkboxgroup/MCheckboxGroup.stories.ts +61 -0
- package/src/components/checkboxgroup/MCheckboxGroup.vue +97 -0
- package/src/components/datepicker/MDatepicker.spec.ts +95 -0
- package/src/components/datepicker/MDatepicker.stories.ts +75 -0
- package/src/components/datepicker/MDatepicker.vue +114 -0
- 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.spec.ts +166 -0
- package/src/components/field/MField.stories.ts +369 -0
- package/src/components/field/MField.vue +78 -61
- package/src/components/fieldgroup/MFieldGroup.spec.ts +165 -0
- package/src/components/fieldgroup/MFieldGroup.stories.ts +416 -0
- package/src/components/fieldgroup/MFieldGroup.vue +79 -0
- package/src/components/flag/MFlag.spec.ts +46 -0
- package/src/components/flag/MFlag.stories.ts +46 -0
- package/src/components/flag/MFlag.vue +28 -39
- package/src/components/iconbutton/MIconButton.spec.ts +108 -0
- package/src/components/iconbutton/MIconButton.stories.ts +74 -0
- package/src/components/iconbutton/MIconButton.vue +73 -0
- package/src/components/link/MLink.spec.ts +154 -0
- package/src/components/link/MLink.stories.ts +89 -0
- package/src/components/link/MLink.vue +86 -120
- package/src/components/loader/MLoader.spec.ts +104 -0
- package/src/components/loader/MLoader.stories.ts +43 -0
- package/src/components/loader/MLoader.vue +66 -55
- 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 +111 -159
- package/src/components/numberbadge/MNumberBadge.spec.ts +56 -0
- package/src/components/numberbadge/MNumberBadge.stories.ts +48 -0
- package/src/components/numberbadge/MNumberBadge.vue +45 -0
- package/src/components/overlay/MOverlay.spec.ts +51 -0
- package/src/components/overlay/MOverlay.stories.ts +35 -0
- package/src/components/overlay/MOverlay.vue +27 -19
- package/src/components/pagination/MPagination.spec.ts +123 -0
- package/src/components/pagination/MPagination.stories.ts +83 -0
- package/src/components/pagination/MPagination.vue +120 -140
- package/src/components/passwordinput/MPasswordInput.spec.ts +104 -0
- package/src/components/passwordinput/MPasswordInput.stories.ts +75 -0
- package/src/components/passwordinput/MPasswordInput.vue +126 -77
- package/src/components/pincode/MPincode.spec.ts +126 -0
- package/src/components/pincode/MPincode.stories.ts +68 -0
- package/src/components/pincode/MPincode.vue +148 -0
- package/src/components/quantityselector/MQuantitySelector.spec.ts +262 -0
- package/src/components/quantityselector/MQuantitySelector.stories.ts +89 -0
- package/src/components/quantityselector/MQuantitySelector.vue +159 -148
- package/src/components/radio/MRadio.spec.ts +104 -0
- package/src/components/radio/MRadio.stories.ts +68 -0
- package/src/components/radio/MRadio.vue +56 -39
- package/src/components/radiogroup/MRadioGroup.spec.ts +54 -0
- package/src/components/radiogroup/MRadioGroup.stories.ts +61 -0
- package/src/components/radiogroup/MRadioGroup.vue +79 -0
- package/src/components/select/MSelect.spec.ts +114 -0
- package/src/components/select/MSelect.stories.ts +101 -0
- package/src/components/select/MSelect.vue +77 -119
- package/src/components/statusbadge/MStatusBadge.stories.ts +45 -0
- package/src/components/statusbadge/MStatusBadge.vue +40 -0
- package/src/components/statusbadge/MstatusBadge.spec.ts +16 -0
- package/src/components/statusdot/MStatusDot.spec.ts +51 -0
- package/src/components/statusdot/MStatusDot.stories.ts +48 -0
- package/src/components/statusdot/MStatusDot.vue +36 -0
- package/src/components/statusnotification/MStatusNotification.spec.ts +103 -0
- package/src/components/statusnotification/MStatusNotification.stories.ts +89 -0
- package/src/components/statusnotification/MStatusNotification.vue +106 -0
- 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.spec.ts +112 -0
- package/src/components/textarea/MTextArea.stories.ts +67 -0
- package/src/components/textarea/MTextArea.vue +81 -43
- package/src/components/textinput/MTextInput.spec.ts +121 -0
- package/src/components/textinput/MTextInput.stories.ts +107 -0
- package/src/components/textinput/MTextInput.vue +127 -47
- package/src/components/toggle/MToggle.spec.ts +99 -0
- package/src/components/toggle/MToggle.stories.ts +68 -0
- package/src/components/toggle/MToggle.vue +63 -103
- package/src/components/togglegroup/MToggleGroup.spec.ts +78 -0
- package/src/components/togglegroup/MToggleGroup.stories.ts +61 -0
- package/src/components/togglegroup/MToggleGroup.vue +97 -0
- package/src/components/usingIcons.mdx +35 -0
- package/src/components/usingPresets.mdx +128 -0
- package/src/main.ts +32 -0
- package/dist/demo.html +0 -1
- package/dist/mozaic-vue.adeo.css +0 -47
- package/dist/mozaic-vue.adeo.umd.js +0 -31341
- package/dist/mozaic-vue.common.js +0 -31331
- package/dist/mozaic-vue.common.js.map +0 -1
- package/dist/mozaic-vue.umd.js +0 -31342
- package/dist/mozaic-vue.umd.js.map +0 -1
- package/dist/mozaic-vue.umd.min.js +0 -4
- package/dist/mozaic-vue.umd.min.js.map +0 -1
- package/postinstall.js +0 -3
- package/src/components/accordion/MAccordion.vue +0 -128
- package/src/components/accordion/index.js +0 -7
- package/src/components/autocomplete/MAutocomplete.vue +0 -380
- package/src/components/autocomplete/index.js +0 -7
- package/src/components/badge/MBadge.vue +0 -43
- package/src/components/badge/index.js +0 -7
- package/src/components/breadcrumb/index.js +0 -7
- package/src/components/button/index.js +0 -7
- package/src/components/card/MCard.vue +0 -78
- package/src/components/card/index.js +0 -7
- package/src/components/checkbox/MCheckboxGroup.vue +0 -163
- package/src/components/checkbox/index.js +0 -12
- package/src/components/container/MContainer.vue +0 -33
- package/src/components/container/index.js +0 -7
- package/src/components/datatable/MDataTable.vue +0 -651
- package/src/components/datatable/MDataTableHeader.vue +0 -55
- package/src/components/datatable/MDataTableTop.vue +0 -35
- package/src/components/datatable/helpers.js +0 -132
- package/src/components/datatable/index.js +0 -12
- package/src/components/dropdown/MDropdown.vue +0 -317
- package/src/components/dropdown/index.js +0 -7
- package/src/components/field/index.js +0 -7
- package/src/components/fileuploader/MFileResult.vue +0 -149
- package/src/components/fileuploader/MFileUploader.vue +0 -142
- package/src/components/fileuploader/index.js +0 -7
- package/src/components/flag/index.js +0 -7
- package/src/components/heading/MHeading.vue +0 -75
- package/src/components/heading/index.js +0 -7
- package/src/components/hero/MHero.vue +0 -93
- package/src/components/hero/index.js +0 -7
- package/src/components/icon/MIcon.vue +0 -136
- package/src/components/icon/index.js +0 -7
- package/src/components/index.js +0 -44
- package/src/components/layer/MLayer.vue +0 -208
- package/src/components/layer/index.js +0 -7
- package/src/components/link/index.js +0 -7
- package/src/components/listbox/MListBox.vue +0 -146
- package/src/components/listbox/MListBoxActions.vue +0 -251
- package/src/components/listbox/index.js +0 -12
- package/src/components/loader/index.js +0 -7
- package/src/components/modal/index.js +0 -7
- package/src/components/notification/MNotification.vue +0 -110
- package/src/components/notification/index.js +0 -7
- package/src/components/optionbutton/MOptionButton.vue +0 -67
- package/src/components/optionbutton/index.js +0 -7
- package/src/components/optioncard/MOptionCard.vue +0 -132
- package/src/components/optioncard/index.js +0 -7
- package/src/components/optiongroup/MOptionGroup.vue +0 -18
- package/src/components/optiongroup/index.js +0 -7
- package/src/components/overlay/MOverlayLoader.vue +0 -43
- package/src/components/overlay/index.js +0 -12
- package/src/components/pagination/index.js +0 -7
- package/src/components/passwordinput/index.js +0 -7
- package/src/components/phonenumber/MPhoneNumber.vue +0 -398
- package/src/components/phonenumber/index.js +0 -7
- package/src/components/progressbar/MProgress.vue +0 -102
- package/src/components/progressbar/index.js +0 -7
- package/src/components/quantityselector/index.js +0 -7
- package/src/components/radio/MRadioGroup.vue +0 -111
- package/src/components/radio/index.js +0 -12
- package/src/components/ratingstars/MStarsInput.vue +0 -119
- package/src/components/ratingstars/MStarsResult.vue +0 -89
- package/src/components/ratingstars/index.js +0 -12
- package/src/components/select/index.js +0 -7
- package/src/components/stepper/MStepper.vue +0 -111
- package/src/components/stepper/index.js +0 -7
- package/src/components/tabs/MTab.vue +0 -204
- package/src/components/tabs/index.js +0 -7
- package/src/components/tags/MTag.vue +0 -175
- package/src/components/tags/index.js +0 -7
- package/src/components/textarea/index.js +0 -7
- package/src/components/textinput/MTextInputField.vue +0 -105
- package/src/components/textinput/MTextInputIcon.vue +0 -42
- package/src/components/textinput/index.js +0 -7
- package/src/components/toggle/index.js +0 -7
- package/src/components/tooltip/MTooltip.vue +0 -42
- package/src/components/tooltip/index.js +0 -7
- package/src/index.js +0 -63
- package/src/shims-tsx.d.ts +0 -13
- package/src/shims.vue.d.ts +0 -4
- package/src/tokens/adeo/android/colors.xml +0 -452
- package/src/tokens/adeo/android/font_dimens.xml +0 -18
- package/src/tokens/adeo/css/_variables.scss +0 -446
- package/src/tokens/adeo/css/root.scss +0 -448
- package/src/tokens/adeo/ios/StyleDictionaryColor.h +0 -460
- package/src/tokens/adeo/ios/StyleDictionaryColor.m +0 -472
- package/src/tokens/adeo/ios/StyleDictionaryColor.swift +0 -455
- package/src/tokens/adeo/ios/StyleDictionarySize.h +0 -69
- package/src/tokens/adeo/ios/StyleDictionarySize.m +0 -70
- package/src/tokens/adeo/ios/StyleDictionarySize.swift +0 -71
- package/src/tokens/adeo/js/tokens.js +0 -544
- package/src/tokens/adeo/js/tokensObject.js +0 -11733
- package/src/tokens/adeo/scss/_tokens.scss +0 -1522
- package/src/utils/mozaicClasses.js +0 -16
- package/src/utils/theme.validator.js +0 -19
- package/types/index.d.ts +0 -104
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="mc-notification"
|
|
4
|
-
:class="setClasses"
|
|
5
|
-
:role="alert ? 'alert' : null"
|
|
6
|
-
>
|
|
7
|
-
<div class="mc-notification__content">
|
|
8
|
-
<component :is="titleTag" v-if="title" class="mc-notification__title">
|
|
9
|
-
{{ title }}
|
|
10
|
-
</component>
|
|
11
|
-
<div class="mc-notification__message">
|
|
12
|
-
<slot />
|
|
13
|
-
</div>
|
|
14
|
-
<m-link
|
|
15
|
-
v-if="link && linkContent"
|
|
16
|
-
class="mc-notification__link"
|
|
17
|
-
:href="link"
|
|
18
|
-
>
|
|
19
|
-
{{ linkContent }}
|
|
20
|
-
</m-link>
|
|
21
|
-
<div v-else-if="$slots.footer" class="mc-notification__footer">
|
|
22
|
-
<slot name="footer" />
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
<button
|
|
26
|
-
v-if="closable"
|
|
27
|
-
type="button"
|
|
28
|
-
class="mc-notification-closable__close"
|
|
29
|
-
title="Close"
|
|
30
|
-
@click="$emit('close')"
|
|
31
|
-
/>
|
|
32
|
-
</div>
|
|
33
|
-
</template>
|
|
34
|
-
|
|
35
|
-
<script>
|
|
36
|
-
import MLink from '../link/MLink.vue';
|
|
37
|
-
|
|
38
|
-
export default {
|
|
39
|
-
name: 'MNotification',
|
|
40
|
-
|
|
41
|
-
components: {
|
|
42
|
-
MLink,
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
props: {
|
|
46
|
-
title: {
|
|
47
|
-
type: String,
|
|
48
|
-
default: null,
|
|
49
|
-
},
|
|
50
|
-
titleTag: {
|
|
51
|
-
type: String,
|
|
52
|
-
default: 'h3',
|
|
53
|
-
validator: (value) =>
|
|
54
|
-
['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(value),
|
|
55
|
-
},
|
|
56
|
-
alert: {
|
|
57
|
-
type: Boolean,
|
|
58
|
-
default: false,
|
|
59
|
-
},
|
|
60
|
-
link: {
|
|
61
|
-
type: String,
|
|
62
|
-
default: null,
|
|
63
|
-
},
|
|
64
|
-
linkContent: {
|
|
65
|
-
type: String,
|
|
66
|
-
default: null,
|
|
67
|
-
},
|
|
68
|
-
type: {
|
|
69
|
-
type: String,
|
|
70
|
-
default: null,
|
|
71
|
-
validator: (value) =>
|
|
72
|
-
['information', 'success', 'warning', 'danger'].includes(value),
|
|
73
|
-
},
|
|
74
|
-
closable: {
|
|
75
|
-
type: Boolean,
|
|
76
|
-
default: false,
|
|
77
|
-
},
|
|
78
|
-
size: {
|
|
79
|
-
type: String,
|
|
80
|
-
default: null,
|
|
81
|
-
validator: (value) => ['s', 'm'].includes(value),
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
computed: {
|
|
86
|
-
setClasses() {
|
|
87
|
-
const classes = [];
|
|
88
|
-
|
|
89
|
-
if (this.type) {
|
|
90
|
-
classes.push(`mc-notification--${this.type}`);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
if (this.size && this.size !== 'm') {
|
|
94
|
-
classes.push(`mc-notification--${this.size}`);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if (this.closable) {
|
|
98
|
-
classes.push('mc-notification-closable');
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return classes;
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
};
|
|
105
|
-
</script>
|
|
106
|
-
|
|
107
|
-
<style lang="scss">
|
|
108
|
-
@import 'settings-tools/_all-settings';
|
|
109
|
-
@import 'components/_c.notification';
|
|
110
|
-
</style>
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="mc-option-button"
|
|
4
|
-
:class="{ 'mc-option-button--full': fullWidth }"
|
|
5
|
-
>
|
|
6
|
-
<input
|
|
7
|
-
:id="id"
|
|
8
|
-
type="radio"
|
|
9
|
-
class="mc-option-button__input"
|
|
10
|
-
:name="name"
|
|
11
|
-
:checked="checked"
|
|
12
|
-
:disabled="disabled"
|
|
13
|
-
v-bind="inputAttrs"
|
|
14
|
-
@change="$emit('change', $event.target.checked)"
|
|
15
|
-
/>
|
|
16
|
-
<label :for="id" class="mc-option-button__label">
|
|
17
|
-
{{ label }}
|
|
18
|
-
</label>
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<script>
|
|
23
|
-
export default {
|
|
24
|
-
name: 'MOptionButton',
|
|
25
|
-
|
|
26
|
-
model: {
|
|
27
|
-
prop: 'checked',
|
|
28
|
-
event: 'change',
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
props: {
|
|
32
|
-
id: {
|
|
33
|
-
type: String,
|
|
34
|
-
required: true,
|
|
35
|
-
},
|
|
36
|
-
label: {
|
|
37
|
-
type: String,
|
|
38
|
-
required: true,
|
|
39
|
-
},
|
|
40
|
-
name: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: null,
|
|
43
|
-
},
|
|
44
|
-
checked: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: false,
|
|
47
|
-
},
|
|
48
|
-
disabled: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: false,
|
|
51
|
-
},
|
|
52
|
-
fullWidth: {
|
|
53
|
-
type: Boolean,
|
|
54
|
-
default: false,
|
|
55
|
-
},
|
|
56
|
-
inputAttrs: {
|
|
57
|
-
type: Object,
|
|
58
|
-
default: () => ({}),
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
</script>
|
|
63
|
-
|
|
64
|
-
<style lang="scss">
|
|
65
|
-
@import 'settings-tools/_all-settings';
|
|
66
|
-
@import 'components/c.option-button';
|
|
67
|
-
</style>
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="mc-option-card" :class="setClasses">
|
|
3
|
-
<input
|
|
4
|
-
:id="id"
|
|
5
|
-
:type="setType"
|
|
6
|
-
class="mc-option-card__input"
|
|
7
|
-
:class="setInputClasses"
|
|
8
|
-
:name="name"
|
|
9
|
-
:required="required"
|
|
10
|
-
:checked="checked"
|
|
11
|
-
v-bind="inputAttrs"
|
|
12
|
-
@change="$emit('change', $event.target.checked)"
|
|
13
|
-
/>
|
|
14
|
-
<label :for="id" class="mc-option-card__label">
|
|
15
|
-
<span class="mc-option-card__label-text">{{ label }}</span>
|
|
16
|
-
</label>
|
|
17
|
-
<div class="mc-option-card__content">
|
|
18
|
-
<slot />
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
</template>
|
|
22
|
-
|
|
23
|
-
<script>
|
|
24
|
-
export default {
|
|
25
|
-
name: 'MOptionCard',
|
|
26
|
-
|
|
27
|
-
model: {
|
|
28
|
-
prop: 'checked',
|
|
29
|
-
event: 'change',
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
props: {
|
|
33
|
-
id: {
|
|
34
|
-
type: String,
|
|
35
|
-
required: true,
|
|
36
|
-
},
|
|
37
|
-
type: {
|
|
38
|
-
type: String,
|
|
39
|
-
default: 'radio',
|
|
40
|
-
validator: (value) => ['radio', 'checkbox'].includes(value),
|
|
41
|
-
},
|
|
42
|
-
label: {
|
|
43
|
-
type: String,
|
|
44
|
-
required: true,
|
|
45
|
-
},
|
|
46
|
-
name: {
|
|
47
|
-
type: String,
|
|
48
|
-
default: null,
|
|
49
|
-
},
|
|
50
|
-
checked: {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
default: false,
|
|
53
|
-
},
|
|
54
|
-
required: {
|
|
55
|
-
type: Boolean,
|
|
56
|
-
default: false,
|
|
57
|
-
},
|
|
58
|
-
index: {
|
|
59
|
-
type: Number,
|
|
60
|
-
default: 1,
|
|
61
|
-
},
|
|
62
|
-
centered: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: false,
|
|
65
|
-
},
|
|
66
|
-
small: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: false,
|
|
69
|
-
},
|
|
70
|
-
noPadding: {
|
|
71
|
-
type: Boolean,
|
|
72
|
-
default: false,
|
|
73
|
-
},
|
|
74
|
-
inputAttrs: {
|
|
75
|
-
type: Object,
|
|
76
|
-
default: () => ({}),
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
computed: {
|
|
81
|
-
setType() {
|
|
82
|
-
return this.type === 'checkbox' ? 'checkbox' : 'radio';
|
|
83
|
-
},
|
|
84
|
-
setClasses() {
|
|
85
|
-
return {
|
|
86
|
-
'mc-option-card--centered': this.centered,
|
|
87
|
-
'mc-option-card--no-padding': this.noPadding,
|
|
88
|
-
'mc-option-card--small': this.small,
|
|
89
|
-
};
|
|
90
|
-
},
|
|
91
|
-
setInputClasses() {
|
|
92
|
-
return {
|
|
93
|
-
'mc-checkbox__input': this.type === 'checkbox',
|
|
94
|
-
'mc-radio__input': this.type === 'radio',
|
|
95
|
-
};
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
};
|
|
99
|
-
</script>
|
|
100
|
-
|
|
101
|
-
<style lang="scss">
|
|
102
|
-
@import 'settings-tools/all-settings';
|
|
103
|
-
@import 'components/c.option-card';
|
|
104
|
-
|
|
105
|
-
/* stylelint-disable */
|
|
106
|
-
// temporary fix
|
|
107
|
-
.mc-option-card {
|
|
108
|
-
$parent: get-parent-selector(&);
|
|
109
|
-
|
|
110
|
-
border-radius: get-border-radius('m');
|
|
111
|
-
cursor: pointer;
|
|
112
|
-
position: relative;
|
|
113
|
-
|
|
114
|
-
&__input {
|
|
115
|
-
@at-root input#{&} {
|
|
116
|
-
&:checked ~ #{$parent}__content {
|
|
117
|
-
button,
|
|
118
|
-
[href],
|
|
119
|
-
input,
|
|
120
|
-
select,
|
|
121
|
-
textarea,
|
|
122
|
-
label,
|
|
123
|
-
.mc-option-card__focusable,
|
|
124
|
-
[tabindex]:not([tabindex='-1']) {
|
|
125
|
-
position: relative;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
/* stylelint-enable */
|
|
132
|
-
</style>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<component :is="htmlTag" class="mc-option-group">
|
|
3
|
-
<slot />
|
|
4
|
-
</component>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
export default {
|
|
9
|
-
name: 'MOptionGroup',
|
|
10
|
-
|
|
11
|
-
props: {
|
|
12
|
-
htmlTag: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: 'div',
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
</script>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div class="mc-overlay-loader" :class="{ 'is-visible': isVisible }">
|
|
4
|
-
<MLoader size="l" theme="light" :text="text" />
|
|
5
|
-
</div>
|
|
6
|
-
</div>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script>
|
|
10
|
-
import MLoader from '../loader/MLoader.vue';
|
|
11
|
-
|
|
12
|
-
export default {
|
|
13
|
-
name: 'MOverlayLoader',
|
|
14
|
-
|
|
15
|
-
components: {
|
|
16
|
-
MLoader,
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
props: {
|
|
20
|
-
/**
|
|
21
|
-
* Define if the overlay is visible or not
|
|
22
|
-
* @values false, true
|
|
23
|
-
*/
|
|
24
|
-
isVisible: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: false,
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Loader text
|
|
31
|
-
*/
|
|
32
|
-
text: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: undefined,
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
</script>
|
|
39
|
-
|
|
40
|
-
<style lang="scss">
|
|
41
|
-
@import 'settings-tools/all-settings';
|
|
42
|
-
@import 'components/c.overlay';
|
|
43
|
-
</style>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import MOverlay from './MOverlay.vue';
|
|
2
|
-
import MOverlayLoader from './MOverlayLoader.vue';
|
|
3
|
-
|
|
4
|
-
MOverlay.install = function (Vue) {
|
|
5
|
-
Vue.component(MOverlay.name, MOverlay);
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
MOverlayLoader.install = function (Vue) {
|
|
9
|
-
Vue.component(MOverlayLoader.name, MOverlayLoader);
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { MOverlay, MOverlayLoader };
|