@mozaic-ds/vue 1.0.0-beta.3 → 1.0.0-beta.5

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 (191) hide show
  1. package/LICENSE +51 -0
  2. package/README.md +224 -82
  3. package/dist/mozaic-vue.css +1 -1
  4. package/dist/mozaic-vue.d.ts +1202 -0
  5. package/dist/mozaic-vue.js +1220 -0
  6. package/dist/mozaic-vue.js.map +1 -0
  7. package/dist/mozaic-vue.umd.cjs +2 -0
  8. package/dist/mozaic-vue.umd.cjs.map +1 -0
  9. package/env.d.ts +1 -0
  10. package/package.json +81 -50
  11. package/src/components/Contributing.mdx +118 -0
  12. package/src/components/GettingStarted.mdx +50 -0
  13. package/src/components/Introduction.mdx +54 -0
  14. package/src/components/Support.mdx +18 -0
  15. package/src/components/badge/MBadge.spec.ts +16 -0
  16. package/src/components/badge/MBadge.stories.ts +50 -0
  17. package/src/components/badge/MBadge.vue +36 -34
  18. package/src/components/breadcrumb/MBreadcrumb.spec.ts +105 -0
  19. package/src/components/breadcrumb/MBreadcrumb.stories.ts +57 -0
  20. package/src/components/breadcrumb/MBreadcrumb.vue +52 -55
  21. package/src/components/button/MButton.spec.ts +191 -0
  22. package/src/components/button/MButton.stories.ts +66 -0
  23. package/src/components/button/MButton.vue +98 -154
  24. package/src/components/checkbox/MCheckbox.spec.ts +104 -0
  25. package/src/components/checkbox/MCheckbox.stories.ts +83 -0
  26. package/src/components/checkbox/MCheckbox.vue +60 -101
  27. package/src/components/checkboxgroup/MCheckboxGroup.spec.ts +78 -0
  28. package/src/components/checkboxgroup/MCheckboxGroup.stories.ts +61 -0
  29. package/src/components/checkboxgroup/MCheckboxGroup.vue +97 -0
  30. package/src/components/field/MField.spec.ts +166 -0
  31. package/src/components/field/MField.stories.ts +376 -0
  32. package/src/components/field/MField.vue +78 -61
  33. package/src/components/fieldgroup/MFieldGroup.spec.ts +165 -0
  34. package/src/components/fieldgroup/MFieldGroup.stories.ts +423 -0
  35. package/src/components/fieldgroup/MFieldGroup.vue +79 -0
  36. package/src/components/iconbutton/MIconButton.spec.ts +108 -0
  37. package/src/components/iconbutton/MIconButton.stories.ts +66 -0
  38. package/src/components/iconbutton/MIconButton.vue +73 -0
  39. package/src/components/link/MLink.spec.ts +154 -0
  40. package/src/components/link/MLink.stories.ts +98 -0
  41. package/src/components/link/MLink.vue +86 -109
  42. package/src/components/loader/MLoader.spec.ts +104 -0
  43. package/src/components/loader/MLoader.stories.ts +45 -0
  44. package/src/components/loader/MLoader.vue +65 -55
  45. package/src/components/overlay/MOverlay.spec.ts +51 -0
  46. package/src/components/overlay/MOverlay.stories.ts +40 -0
  47. package/src/components/overlay/MOverlay.vue +27 -19
  48. package/src/components/passwordinput/MPasswordInput.spec.ts +104 -0
  49. package/src/components/passwordinput/MPasswordInput.stories.ts +75 -0
  50. package/src/components/passwordinput/MPasswordInput.vue +129 -76
  51. package/src/components/quantityselector/MQuantitySelector.spec.ts +262 -0
  52. package/src/components/quantityselector/MQuantitySelector.stories.ts +89 -0
  53. package/src/components/quantityselector/MQuantitySelector.vue +160 -136
  54. package/src/components/radio/MRadio.spec.ts +104 -0
  55. package/src/components/radio/MRadio.stories.ts +68 -0
  56. package/src/components/radio/MRadio.vue +56 -39
  57. package/src/components/radiogroup/MRadioGroup.spec.ts +54 -0
  58. package/src/components/radiogroup/MRadioGroup.stories.ts +61 -0
  59. package/src/components/radiogroup/MRadioGroup.vue +79 -0
  60. package/src/components/select/MSelect.spec.ts +114 -0
  61. package/src/components/select/MSelect.stories.ts +101 -0
  62. package/src/components/select/MSelect.vue +77 -119
  63. package/src/components/statusbadge/MStatusBadge.stories.ts +45 -0
  64. package/src/components/statusbadge/MStatusBadge.vue +40 -0
  65. package/src/components/statusbadge/MstatusBadge.spec.ts +16 -0
  66. package/src/components/statusdot/MStatusDot.spec.ts +51 -0
  67. package/src/components/statusdot/MStatusDot.stories.ts +48 -0
  68. package/src/components/statusdot/MStatusDot.vue +36 -0
  69. package/src/components/statusnotification/MStatusNotification.spec.ts +99 -0
  70. package/src/components/statusnotification/MStatusNotification.stories.ts +96 -0
  71. package/src/components/statusnotification/MStatusNotification.vue +106 -0
  72. package/src/components/textarea/MTextArea.spec.ts +112 -0
  73. package/src/components/textarea/MTextArea.stories.ts +67 -0
  74. package/src/components/textarea/MTextArea.vue +81 -42
  75. package/src/components/textinput/MTextInput.spec.ts +121 -0
  76. package/src/components/textinput/MTextInput.stories.ts +114 -0
  77. package/src/components/textinput/MTextInput.vue +127 -47
  78. package/src/components/toggle/MToggle.spec.ts +99 -0
  79. package/src/components/toggle/MToggle.stories.ts +68 -0
  80. package/src/components/toggle/MToggle.vue +63 -103
  81. package/src/components/togglegroup/MToggleGroup.spec.ts +78 -0
  82. package/src/components/togglegroup/MToggleGroup.stories.ts +61 -0
  83. package/src/components/togglegroup/MToggleGroup.vue +97 -0
  84. package/src/components/usingIcons.mdx +43 -0
  85. package/src/components/usingPresets.mdx +125 -0
  86. package/src/main.ts +47 -0
  87. package/dist/demo.html +0 -1
  88. package/dist/mozaic-vue.adeo.css +0 -45
  89. package/dist/mozaic-vue.adeo.umd.js +0 -41775
  90. package/dist/mozaic-vue.common.js +0 -41765
  91. package/dist/mozaic-vue.common.js.map +0 -1
  92. package/dist/mozaic-vue.umd.js +0 -41776
  93. package/dist/mozaic-vue.umd.js.map +0 -1
  94. package/dist/mozaic-vue.umd.min.js +0 -4
  95. package/dist/mozaic-vue.umd.min.js.map +0 -1
  96. package/postinstall.js +0 -3
  97. package/src/components/accordion/MAccordion.vue +0 -128
  98. package/src/components/accordion/index.js +0 -7
  99. package/src/components/autocomplete/MAutocomplete.vue +0 -198
  100. package/src/components/autocomplete/index.js +0 -7
  101. package/src/components/badge/index.js +0 -7
  102. package/src/components/breadcrumb/index.js +0 -7
  103. package/src/components/button/index.js +0 -7
  104. package/src/components/card/MCard.vue +0 -78
  105. package/src/components/card/index.js +0 -7
  106. package/src/components/checkbox/MCheckboxGroup.vue +0 -155
  107. package/src/components/checkbox/index.js +0 -12
  108. package/src/components/container/MContainer.vue +0 -33
  109. package/src/components/container/index.js +0 -7
  110. package/src/components/datatable/MDataTable.vue +0 -651
  111. package/src/components/datatable/MDataTableHeader.vue +0 -55
  112. package/src/components/datatable/MDataTableTop.vue +0 -35
  113. package/src/components/datatable/helpers.js +0 -132
  114. package/src/components/datatable/index.js +0 -12
  115. package/src/components/field/index.js +0 -7
  116. package/src/components/fileuploader/MFileResult.vue +0 -149
  117. package/src/components/fileuploader/MFileUploader.vue +0 -142
  118. package/src/components/fileuploader/index.js +0 -7
  119. package/src/components/flag/MFlag.vue +0 -46
  120. package/src/components/flag/index.js +0 -7
  121. package/src/components/heading/MHeading.vue +0 -75
  122. package/src/components/heading/index.js +0 -7
  123. package/src/components/hero/MHero.vue +0 -93
  124. package/src/components/hero/index.js +0 -7
  125. package/src/components/icon/MIcon.vue +0 -120
  126. package/src/components/icon/index.js +0 -7
  127. package/src/components/index.js +0 -43
  128. package/src/components/layer/MLayer.vue +0 -208
  129. package/src/components/layer/index.js +0 -7
  130. package/src/components/link/index.js +0 -7
  131. package/src/components/listbox/MListBox.vue +0 -106
  132. package/src/components/listbox/index.js +0 -7
  133. package/src/components/loader/index.js +0 -7
  134. package/src/components/modal/MModal.vue +0 -179
  135. package/src/components/modal/index.js +0 -7
  136. package/src/components/notification/MNotification.vue +0 -110
  137. package/src/components/notification/index.js +0 -7
  138. package/src/components/optionbutton/MOptionButton.vue +0 -67
  139. package/src/components/optionbutton/index.js +0 -7
  140. package/src/components/optioncard/MOptionCard.vue +0 -132
  141. package/src/components/optioncard/index.js +0 -7
  142. package/src/components/optiongroup/MOptionGroup.vue +0 -18
  143. package/src/components/optiongroup/index.js +0 -7
  144. package/src/components/overlay/MOverlayLoader.vue +0 -43
  145. package/src/components/overlay/index.js +0 -12
  146. package/src/components/pagination/MPagination.vue +0 -162
  147. package/src/components/pagination/index.js +0 -7
  148. package/src/components/passwordinput/index.js +0 -7
  149. package/src/components/phonenumber/MPhoneNumber.vue +0 -390
  150. package/src/components/phonenumber/index.js +0 -7
  151. package/src/components/progressbar/MProgress.vue +0 -102
  152. package/src/components/progressbar/index.js +0 -7
  153. package/src/components/quantityselector/index.js +0 -7
  154. package/src/components/radio/MRadioGroup.vue +0 -111
  155. package/src/components/radio/index.js +0 -12
  156. package/src/components/ratingstars/MStarsInput.vue +0 -118
  157. package/src/components/ratingstars/MStarsResult.vue +0 -89
  158. package/src/components/ratingstars/index.js +0 -12
  159. package/src/components/select/index.js +0 -7
  160. package/src/components/stepper/MStepper.vue +0 -70
  161. package/src/components/stepper/index.js +0 -7
  162. package/src/components/tabs/MTab.vue +0 -184
  163. package/src/components/tabs/index.js +0 -7
  164. package/src/components/tags/MTag.vue +0 -173
  165. package/src/components/tags/index.js +0 -7
  166. package/src/components/textarea/index.js +0 -7
  167. package/src/components/textinput/MTextInputField.vue +0 -105
  168. package/src/components/textinput/MTextInputIcon.vue +0 -42
  169. package/src/components/textinput/index.js +0 -7
  170. package/src/components/toggle/index.js +0 -7
  171. package/src/components/tooltip/MTooltip.vue +0 -42
  172. package/src/components/tooltip/index.js +0 -7
  173. package/src/index.js +0 -62
  174. package/src/shims-tsx.d.ts +0 -13
  175. package/src/shims.vue.d.ts +0 -4
  176. package/src/tokens/adeo/android/colors.xml +0 -391
  177. package/src/tokens/adeo/android/font_dimens.xml +0 -18
  178. package/src/tokens/adeo/css/_variables.scss +0 -385
  179. package/src/tokens/adeo/css/root.scss +0 -387
  180. package/src/tokens/adeo/ios/StyleDictionaryColor.h +0 -399
  181. package/src/tokens/adeo/ios/StyleDictionaryColor.m +0 -411
  182. package/src/tokens/adeo/ios/StyleDictionaryColor.swift +0 -394
  183. package/src/tokens/adeo/ios/StyleDictionarySize.h +0 -69
  184. package/src/tokens/adeo/ios/StyleDictionarySize.m +0 -70
  185. package/src/tokens/adeo/ios/StyleDictionarySize.swift +0 -71
  186. package/src/tokens/adeo/js/tokens.js +0 -483
  187. package/src/tokens/adeo/js/tokensObject.js +0 -10354
  188. package/src/tokens/adeo/scss/_tokens.scss +0 -1300
  189. package/src/utils/mozaicClasses.js +0 -16
  190. package/src/utils/theme.validator.js +0 -19
  191. package/types/index.d.ts +0 -100
@@ -1,179 +0,0 @@
1
- <template>
2
- <div>
3
- <div
4
- ref="modal"
5
- class="mc-modal"
6
- tabindex="-1"
7
- role="dialog"
8
- aria-labelledby="modal_title"
9
- :aria-hidden="!open"
10
- @keyup.esc="closeModal()"
11
- >
12
- <div
13
- class="mc-modal__dialog"
14
- :class="{ 'is-open': open }"
15
- role="document"
16
- >
17
- <header class="mc-modal__header">
18
- <component
19
- :is="modalTitleTag"
20
- id="modal_title"
21
- class="mc-modal__title"
22
- >
23
- {{ modalTitle }}
24
- </component>
25
- <button
26
- v-if="displayCloseButton"
27
- ref="close"
28
- class="mc-modal__close"
29
- type="button"
30
- @click="closeModal()"
31
- >
32
- <span class="mc-modal__close-text">
33
- {{ closeButtonText }}
34
- </span>
35
- </button>
36
- </header>
37
- <main ref="body" class="mc-modal__body">
38
- <article ref="content" class="mc-modal__content">
39
- <component :is="titleTag" v-if="title" class="mc-modal__heading">
40
- {{ title }}
41
- </component>
42
- <div class="mt-body-m">
43
- <slot />
44
- </div>
45
- </article>
46
- </main>
47
- <footer v-if="$slots.footer" class="mc-modal__footer">
48
- <slot name="footer" />
49
- </footer>
50
- </div>
51
- </div>
52
- <keep-alive>
53
- <div
54
- class="mc-modal-overlay"
55
- :class="{ 'is-visible': open }"
56
- tabindex="-1"
57
- role="dialog"
58
- />
59
- </keep-alive>
60
- </div>
61
- </template>
62
-
63
- <script>
64
- export default {
65
- name: 'MModal',
66
-
67
- props: {
68
- open: {
69
- type: Boolean,
70
- default: false,
71
- },
72
- modalTitle: {
73
- type: String,
74
- required: true,
75
- },
76
- modalTitleTag: {
77
- type: String,
78
- default: 'h2',
79
- },
80
- title: {
81
- type: String,
82
- default: null,
83
- },
84
- titleTag: {
85
- type: String,
86
- default: 'h3',
87
- },
88
- closeButtonText: {
89
- type: String,
90
- default: 'Close',
91
- validator: (value) => value !== '',
92
- },
93
- displayCloseButton: {
94
- type: Boolean,
95
- default: true,
96
- },
97
- },
98
-
99
- watch: {
100
- open: {
101
- immediate: true,
102
- handler: function (isOpen) {
103
- this.$nextTick(() => {
104
- if (isOpen) {
105
- this.trapFocus();
106
- this.setFocusOnModal();
107
- this.setOverflow();
108
- this.$emit('modal-opened');
109
- } else {
110
- this.$emit('modal-closed');
111
- }
112
- });
113
- },
114
- },
115
- },
116
-
117
- methods: {
118
- trapFocus: function () {
119
- const modal = document.querySelector('.mc-modal');
120
- const focusableElements = modal.querySelectorAll(
121
- 'a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])'
122
- );
123
-
124
- const firstFocusableElement = focusableElements[0]; // get first element to be focused inside modal
125
- const lastFocusableElement =
126
- focusableElements[focusableElements.length - 1];
127
-
128
- document.addEventListener('keydown', function (e) {
129
- const isTabPressed = e.key === 'Tab' || e.keyCode === 9;
130
-
131
- if (!isTabPressed) {
132
- return;
133
- }
134
-
135
- if (e.shiftKey) {
136
- // if shift key pressed for shift + tab combination
137
- if (document.activeElement === firstFocusableElement) {
138
- lastFocusableElement.focus(); // add focus for the last focusable element
139
- e.preventDefault();
140
- }
141
- } else {
142
- // if tab key is pressed
143
- if (document.activeElement === lastFocusableElement) {
144
- // if focused has reached to last focusable element then focus first focusable element after pressing tab
145
- firstFocusableElement.focus(); // add focus for the first focusable element
146
- e.preventDefault();
147
- }
148
- }
149
- });
150
- },
151
-
152
- closeModal() {
153
- this.$emit('update:open', false);
154
- },
155
-
156
- setOverflow: function () {
157
- const modal = this.$refs.modal;
158
- const bodyHeight = this.$refs.body.clientHeight;
159
- const contentHeight = this.$refs.content.clientHeight;
160
-
161
- if (contentHeight > bodyHeight) {
162
- modal.classList.add('mc-modal--overflow');
163
- }
164
- },
165
-
166
- setFocusOnModal() {
167
- const modal = this.$refs.modal;
168
-
169
- modal.focus();
170
- },
171
- },
172
- };
173
- </script>
174
-
175
- <style lang="scss">
176
- @import 'settings-tools/all-settings';
177
- @import 'typography/_t.bodys';
178
- @import 'components/_c.modal';
179
- </style>
@@ -1,7 +0,0 @@
1
- import MModal from './MModal.vue';
2
-
3
- MModal.install = function (Vue) {
4
- Vue.component(MModal.name, MModal);
5
- };
6
-
7
- export { MModal };
@@ -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,7 +0,0 @@
1
- import MNotification from './MNotification.vue';
2
-
3
- MNotification.install = function (Vue) {
4
- Vue.component(MNotification.name, MNotification);
5
- };
6
-
7
- export { MNotification };
@@ -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,7 +0,0 @@
1
- import MOptionButton from './MOptionButton.vue';
2
-
3
- MOptionButton.install = function (Vue) {
4
- Vue.component(MOptionButton.name, MOptionButton);
5
- };
6
-
7
- export { MOptionButton };
@@ -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,7 +0,0 @@
1
- import MOptionCard from './MOptionCard.vue';
2
-
3
- MOptionCard.install = function (Vue) {
4
- Vue.component(MOptionCard.name, MOptionCard);
5
- };
6
-
7
- export { MOptionCard };
@@ -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,7 +0,0 @@
1
- import MOptionGroup from './MOptionGroup.vue';
2
-
3
- MOptionGroup.install = function (Vue) {
4
- Vue.component(MOptionGroup.name, MOptionGroup);
5
- };
6
-
7
- export { MOptionGroup };
@@ -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 };