@cfx-dev/ui-components 5.0.2 → 5.0.3

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.
@@ -15,6 +15,7 @@ body {
15
15
  @include tokens.flyout-tokens;
16
16
  @include tokens.color-tokens;
17
17
  @include tokens.offset-tokens;
18
+ @include tokens.spacing-tokens;
18
19
  @include tokens.border-radius-tokens;
19
20
  @include tokens.switch-tokens;
20
21
  @include tokens.input-dropzone-tokens;
@@ -143,6 +143,12 @@
143
143
  }
144
144
  }
145
145
 
146
+ @mixin spacing-tokens() {
147
+ @each $name, $value in ui.$spacingMap {
148
+ @include ui.def('spacing-#{$name}', $value);
149
+ }
150
+ }
151
+
146
152
  @mixin spacer-tokens() {
147
153
  // Mobile sizes
148
154
  @include ui.def('spacer-xxsmall', ui.gs(100));
@@ -36,7 +36,7 @@ var h;
36
36
  }
37
37
  r.spacer = c;
38
38
  function m(e) {
39
- return `var(--spacing-${e})`;
39
+ return `var(--spacing-${e.slice(2)})`;
40
40
  }
41
41
  r.spacing = m;
42
42
  function A(e, t, i = 1) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cfx-dev/ui-components",
3
3
  "private": false,
4
- "version": "5.0.2",
4
+ "version": "5.0.3",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "dist/main.js",