@mozaic-ds/vue 0.38.0-beta.0 → 0.39.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mozaic-ds/vue",
3
- "version": "0.38.0-beta.0",
3
+ "version": "0.39.0-beta.0",
4
4
  "description": "Vue.js implementation of Mozaic Design System",
5
5
  "author": "Adeo - Mozaic Design System",
6
6
  "scripts": {
@@ -50,7 +50,6 @@
50
50
  :items="localItems"
51
51
  :multiple="multiple"
52
52
  :empty-search-label="emptySearchLabel"
53
- :data-key-expr="dataKeyExpr"
54
53
  :data-text-expr="dataTextExpr"
55
54
  :data-value-expr="dataValueExpr"
56
55
  :max-width="maxWidth"
@@ -183,10 +182,6 @@ export default {
183
182
  type: String,
184
183
  default: 'No results found',
185
184
  },
186
- dataKeyExpr: {
187
- type: String,
188
- default: 'id',
189
- },
190
185
  dataTextExpr: {
191
186
  type: String,
192
187
  default: 'label',
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <fieldset class="mc-field mc-field--group">
3
- <legend class="mc-field__legend">
3
+ <legend v-if="legend" class="mc-field__legend">
4
4
  {{ legend }}
5
5
  <span
6
6
  v-if="requirementText"
@@ -63,7 +63,7 @@ export default {
63
63
  */
64
64
  legend: {
65
65
  type: String,
66
- required: true,
66
+ default: undefined,
67
67
  },
68
68
  /**
69
69
  * Property used to manage the values checked by v-model
@@ -164,6 +164,19 @@ export default {
164
164
  </script>
165
165
 
166
166
  <style lang="scss">
167
- @import 'settings-tools/_all-settings';
168
- @import 'components/_c.fields';
167
+ @import 'settings-tools/all-settings';
168
+ @import 'components/c.fields';
169
+
170
+ // TODO: temporary fix - should be put inside @mozaic-ds/styles
171
+ .mc-field--group {
172
+ .mc-field {
173
+ &__container {
174
+ margin-top: 0;
175
+ }
176
+
177
+ &__legend {
178
+ margin-bottom: 1rem;
179
+ }
180
+ }
181
+ }
169
182
  </style>
@@ -43,7 +43,6 @@
43
43
  :items="localItems"
44
44
  :multiple="multiple"
45
45
  :empty-search-label="emptySearchLabel"
46
- :data-key-expr="dataKeyExpr"
47
46
  :data-text-expr="dataTextExpr"
48
47
  :data-value-expr="dataValueExpr"
49
48
  :max-width="maxWidth"
@@ -141,10 +140,6 @@ export default {
141
140
  type: String,
142
141
  default: 'No results found',
143
142
  },
144
- dataKeyExpr: {
145
- type: String,
146
- default: 'id',
147
- },
148
143
  dataTextExpr: {
149
144
  type: String,
150
145
  default: 'label',
@@ -151,7 +151,7 @@ export default {
151
151
  /** The size of title (l, s, m, or xl).*/
152
152
  size: {
153
153
  type: String,
154
- default: 'l',
154
+ default: 'm',
155
155
  validator: (value) => ['s', 'm', 'l', 'xl'].includes(value),
156
156
  },
157
157
  /** Label of the back button. Useful for accessibilty reason */
@@ -238,6 +238,16 @@ export default {
238
238
  @import 'settings-tools/all-settings';
239
239
  @import 'components/c.divider';
240
240
 
241
+ @mixin set-container-padding() {
242
+ padding-left: $mu200;
243
+ padding-right: $mu200;
244
+
245
+ @media (min-width: $screen-l) and (max-width: ($screen-xl - 1)) {
246
+ padding-left: $mu300;
247
+ padding-right: $mu300;
248
+ }
249
+ }
250
+
241
251
  .mc-header {
242
252
  @include set-font-face();
243
253
 
@@ -245,13 +255,11 @@ export default {
245
255
  z-index: 5;
246
256
 
247
257
  &__container {
248
- display: grid;
249
- padding: $mu050 $mu150 $mu100;
258
+ @include set-container-padding();
250
259
 
251
- @include set-from-screen('l') {
252
- padding-left: $mu200;
253
- padding-right: $mu200;
254
- }
260
+ display: grid;
261
+ padding-top: $mu050;
262
+ padding-bottom: $mu100;
255
263
  }
256
264
 
257
265
  &__breadcrumb {
@@ -318,6 +326,7 @@ export default {
318
326
  }
319
327
 
320
328
  &__title {
329
+ @include set-font-scale('08', 'm'); // 28px / 36px
321
330
  @include set-font-weight('semi-bold');
322
331
 
323
332
  margin-top: 0;
@@ -327,10 +336,6 @@ export default {
327
336
  @include set-font-scale('07', 'm'); // 23px / 32px
328
337
  }
329
338
 
330
- &--m {
331
- @include set-font-scale('08', 'm'); // 28px / 36px
332
- }
333
-
334
339
  &--l {
335
340
  @include set-font-scale('09', 'm'); // 34px / 44px
336
341
  }
@@ -376,8 +381,7 @@ export default {
376
381
  }
377
382
 
378
383
  &__tabs {
379
- padding-left: $mu200;
380
- padding-right: $mu200;
384
+ @include set-container-padding();
381
385
  }
382
386
 
383
387
  // Modifiers
@@ -63,10 +63,6 @@ export default {
63
63
  type: Boolean,
64
64
  default: false,
65
65
  },
66
- dataKeyExpr: {
67
- type: String,
68
- default: 'id',
69
- },
70
66
  dataTextExpr: {
71
67
  type: String,
72
68
  default: 'label',
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <fieldset class="mc-field mc-field--group">
3
- <legend class="mc-field__legend">
3
+ <legend v-if="legend" class="mc-field__legend">
4
4
  {{ legend }}
5
5
  <span
6
6
  v-if="requirementText"
@@ -48,7 +48,7 @@ export default {
48
48
  props: {
49
49
  legend: {
50
50
  type: String,
51
- required: true,
51
+ default: null,
52
52
  },
53
53
  requirementText: {
54
54
  type: String,
@@ -106,6 +106,19 @@ export default {
106
106
  </script>
107
107
 
108
108
  <style lang="scss">
109
- @import 'settings-tools/_all-settings';
110
- @import 'components/_c.fields';
109
+ @import 'settings-tools/all-settings';
110
+ @import 'components/c.fields';
111
+
112
+ // TODO: temporary fix - should be put inside @mozaic-ds/styles
113
+ .mc-field--group {
114
+ .mc-field {
115
+ &__container {
116
+ margin-top: 0;
117
+ }
118
+
119
+ &__legend {
120
+ margin-bottom: 1rem;
121
+ }
122
+ }
123
+ }
111
124
  </style>