@madgex/design-system 2.0.7 → 2.0.8

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 (58) hide show
  1. package/coverage/cobertura-coverage.xml +1 -1
  2. package/coverage/components/accordion/accordion.js.html +1 -1
  3. package/coverage/components/accordion/index.html +1 -1
  4. package/coverage/components/button/button.js.html +1 -1
  5. package/coverage/components/button/index.html +1 -1
  6. package/coverage/components/inputs/combobox/combobox.js.html +1 -1
  7. package/coverage/components/inputs/combobox/index.html +1 -1
  8. package/coverage/components/inputs/combobox/vue-components/Combobox.vue.html +1 -1
  9. package/coverage/components/inputs/combobox/vue-components/ListBoxOption.vue.html +1 -1
  10. package/coverage/components/inputs/combobox/vue-components/index.html +1 -1
  11. package/coverage/components/inputs/file-upload/file-upload.js.html +1 -1
  12. package/coverage/components/inputs/file-upload/index.html +1 -1
  13. package/coverage/components/inputs/textarea/character-count.js.html +1 -1
  14. package/coverage/components/inputs/textarea/index.html +1 -1
  15. package/coverage/components/modal/index.html +1 -1
  16. package/coverage/components/modal/modal.js.html +1 -1
  17. package/coverage/components/notification/index.html +1 -1
  18. package/coverage/components/notification/notification.js.html +1 -1
  19. package/coverage/components/popover/index.html +1 -1
  20. package/coverage/components/popover/popover.js.html +1 -1
  21. package/coverage/components/switch-state/index.html +1 -1
  22. package/coverage/components/switch-state/switch-state.js.html +1 -1
  23. package/coverage/components/tabs/index.html +1 -1
  24. package/coverage/components/tabs/tabs.js.html +1 -1
  25. package/coverage/index.html +1 -1
  26. package/coverage/js/common.js.html +1 -1
  27. package/coverage/js/fractal-scripts/combobox.js.html +1 -1
  28. package/coverage/js/fractal-scripts/index.html +1 -1
  29. package/coverage/js/fractal-scripts/notification.js.html +1 -1
  30. package/coverage/js/fractal-scripts/switch-state.js.html +1 -1
  31. package/coverage/js/index-fractal.js.html +1 -1
  32. package/coverage/js/index-polyfills.js.html +1 -1
  33. package/coverage/js/index-vue.js.html +1 -1
  34. package/coverage/js/index.html +1 -1
  35. package/coverage/js/index.js.html +1 -1
  36. package/coverage/js/polyfills/arrayPrototypeFind.js.html +1 -1
  37. package/coverage/js/polyfills/closest.js.html +1 -1
  38. package/coverage/js/polyfills/index.html +1 -1
  39. package/coverage/js/polyfills/objectAssign.js.html +1 -1
  40. package/coverage/js/polyfills/remove.js.html +1 -1
  41. package/coverage/tokens/_config.js.html +1 -1
  42. package/coverage/tokens/index.html +1 -1
  43. package/dist/_tokens/css/_tokens.css +27 -29
  44. package/dist/_tokens/js/_tokens-module.js +1906 -1950
  45. package/dist/_tokens/scss/_tokens.scss +75 -81
  46. package/dist/assets/icons.json +1 -1
  47. package/dist/css/index.css +1 -1
  48. package/dist/js/index.js +1 -1
  49. package/package.json +1 -1
  50. package/src/components/button/button.scss +1 -0
  51. package/src/components/notification/notification.scss +1 -1
  52. package/src/components/popover/popover.scss +1 -1
  53. package/src/layout/containers/01-base-containers.njk +1 -1
  54. package/src/scss/core/_containers.scss +8 -6
  55. package/src/tokens/color.json +0 -13
  56. package/src/tokens/effects.json +10 -0
  57. package/src/tokens/size.json +2 -5
  58. /package/src/tokens/{font.json → typography.json} +0 -0
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@madgex/design-system",
3
3
  "author": "Madgex",
4
4
  "license": "UNLICENSED",
5
- "version": "2.0.7",
5
+ "version": "2.0.8",
6
6
  "scripts": {
7
7
  "clean": "rimraf dist public tokens/build",
8
8
  "commit": "commit",
@@ -46,6 +46,7 @@
46
46
  color: $mds-color-link-base;
47
47
  font-weight: $mds-font-weight-link-base;
48
48
  border-color: transparent;
49
+ text-transform: none;
49
50
 
50
51
  &:hover,
51
52
  &:focus {
@@ -5,7 +5,7 @@
5
5
  left: 50%;
6
6
  @include z-index(modal);
7
7
  transform: translateX(-50%) translateY(-50%);
8
- box-shadow: $mds-color-box-shadow-base;
8
+ box-shadow: $mds-shadow-base;
9
9
 
10
10
  animation: notification-fadeIn 0.25s;
11
11
  animation-fill-mode: forwards;
@@ -13,7 +13,7 @@ $arrow-size: 10px;
13
13
  border: $mds-size-border-width-base solid $mds-color-border;
14
14
  border-radius: $mds-size-border-radius-base;
15
15
  padding: ($mds-size-baseline * 2);
16
- box-shadow: $mds-color-box-shadow-base;
16
+ box-shadow: $mds-shadow-base;
17
17
  text-align: left;
18
18
  max-width: 250px;
19
19
  @include z-index(popup);
@@ -5,7 +5,7 @@
5
5
  <div class="mds-surface__inner">
6
6
  <h2>Content inside the site-container and wrapper</h2>
7
7
  <p>site-container is 100%</p>
8
- <p>wrapper is 100% - 20px (gutter width) and max-width 1280px (1.5% left and right padding)</p>
8
+ <p>wrapper is 97% - 20px (gutter width) and max-width 1240px</p>
9
9
  <div style="height: 100px;"></div>
10
10
  </div>
11
11
  </div>
@@ -9,7 +9,7 @@ body {
9
9
  min-width: $mds-size-container-min-width;
10
10
  margin: 0 auto;
11
11
  background: $mds-color-background-site-container;
12
- // box-shadow: $mds-color-container-box-shadow;
12
+ box-shadow: $mds-shadow-site-container;
13
13
  }
14
14
  .mds-main {
15
15
  background: $mds-color-background-main;
@@ -20,7 +20,6 @@ body {
20
20
  width: calc(#{$mds-size-wrapper-width} - #{$mds-size-gutter-width});
21
21
  max-width: $mds-size-wrapper-max-width;
22
22
  margin: 0 auto;
23
- padding: 0 $mds-size-wrapper-padding;
24
23
  }
25
24
 
26
25
  .mds-surface {
@@ -85,15 +84,18 @@ $breakpoints: map-get(map-get($tokens, 'size'), 'breakpoint');
85
84
  }
86
85
 
87
86
  $mds-half-gutter-width: $mds-size-gutter-width * 0.5;
87
+ // Calculate space left between the wrapper and the edge of the screen on each side
88
+ // so we can stretch the sticky container to make it appear full screen
89
+ // I added 0.01 to stretch the container slightly more to avoid a tiny gap between the edge of the screen and the container
90
+ $space-between-wrapper-and-edge: (100% - $mds-size-wrapper-width) / 2 + 0.01;
88
91
 
89
92
  .mds-fixed-container--sticky {
90
93
  position: sticky;
91
94
 
92
- // I added 0.01 to stretch the container slightly more to avoid a tiny gap between the edge of the screen and the container
93
95
  .mds-wrapper & {
94
- width: calc(100% + #{($mds-size-wrapper-padding + 0.01) * 2} + #{$mds-size-gutter-width});
95
- margin-left: calc((#{$mds-size-wrapper-padding + 0.01} + #{$mds-half-gutter-width}) * -1);
96
- margin-right: calc((#{$mds-size-wrapper-padding + 0.01} + #{$mds-half-gutter-width}) * -1);
96
+ width: calc(100% + #{$space-between-wrapper-and-edge * 2} + #{$mds-size-gutter-width});
97
+ margin-left: calc((#{$space-between-wrapper-and-edge} + #{$mds-half-gutter-width}) * -1);
98
+ margin-right: calc((#{$space-between-wrapper-and-edge} + #{$mds-half-gutter-width}) * -1);
97
99
 
98
100
  @include mq($from: $mds-size-breakpoint-md) {
99
101
  width: 100%;
@@ -225,11 +225,6 @@
225
225
  "value" : "{color.brand.1.dark.value}"
226
226
  }
227
227
  },
228
- "box-shadow": {
229
- "base": {
230
- "value" : "0 2px 5px 0 {color.neutral.lighter.value}"
231
- }
232
- },
233
228
  "branded-container": {
234
229
  "1": {
235
230
  "background": {
@@ -248,14 +243,6 @@
248
243
  }
249
244
  },
250
245
  "input": {
251
- "shadow": {
252
- "disabled": {
253
- "value" : "0px 0px 0px 3px {color.input.disabled.field.value}"
254
- },
255
- "focus": {
256
- "value" : "0px 0px 0px 3px {color.input.focus.value}"
257
- }
258
- },
259
246
  "checked": {
260
247
  "value" : "{color.neutral.black.value}"
261
248
  },
@@ -0,0 +1,10 @@
1
+ {
2
+ "shadow": {
3
+ "base": {
4
+ "value" : "0 2px 5px 0 {color.neutral.lighter.value}"
5
+ },
6
+ "site-container": {
7
+ "value": "none"
8
+ }
9
+ }
10
+ }
@@ -39,13 +39,10 @@
39
39
  },
40
40
  "wrapper": {
41
41
  "width": {
42
- "value": "100%"
42
+ "value": "97%"
43
43
  },
44
44
  "max-width": {
45
- "value": "1280px"
46
- },
47
- "padding": {
48
- "value": "1.5%"
45
+ "value": "1240px"
49
46
  }
50
47
  },
51
48
  "surface": {
File without changes