@react-ui-org/react-ui 0.63.0 → 0.63.1

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@react-ui-org/react-ui",
3
3
  "description": "React UI is a themeable UI library for React apps.",
4
- "version": "0.63.0",
4
+ "version": "0.63.1",
5
5
  "keywords": [
6
6
  "react",
7
7
  "ui",
@@ -7,7 +7,11 @@
7
7
 
8
8
  @each $breakpoint in map.keys(breakpoint-settings.$values) {
9
9
  @include breakpoint.up($breakpoint) {
10
- $infix: if(map.get(breakpoint-settings.$values, $breakpoint) == 0, "", "-#{$breakpoint}");
10
+ $infix: "";
11
+
12
+ @if map.get(breakpoint-settings.$values, $breakpoint) != 0 {
13
+ $infix: "-#{$breakpoint}";
14
+ }
11
15
 
12
16
  @each $key, $utility in utility-settings.$map {
13
17
  @if meta.type-of($utility) == "map" and (map.get($utility, responsive) == true or $infix == "") {
@@ -63,8 +63,29 @@
63
63
  $properties,
64
64
  ) {
65
65
  @each $property in $properties {
66
- $modifier: if($modifier-value, "--" + $modifier-value, "");
67
- $state: if($interaction-state, "--" + $interaction-state, "");
66
+ $fallback-custom-property: "";
67
+ $modifier: "";
68
+ $state: "";
69
+
70
+ @if $modifier-value {
71
+ $modifier: "--" + $modifier-value;
72
+ }
73
+
74
+ @if $interaction-state {
75
+ $state: "--" + $interaction-state;
76
+ }
77
+
78
+ @if $interaction-state == "disabled" {
79
+ $fallback-custom-property: ", var(--"
80
+ + $prefix
81
+ + $component-name
82
+ + $modifier
83
+ + "--"
84
+ + $variant-value
85
+ + "--default__"
86
+ + $property
87
+ + ")";
88
+ }
68
89
 
69
90
  // 1.
70
91
  --#{$prefix}local-#{$property}:
@@ -80,19 +101,7 @@
80
101
  + "__"
81
102
  + $property
82
103
  }
83
- #{if(
84
- $interaction-state and $interaction-state == "disabled",
85
- ", var(--"
86
- + $prefix
87
- + $component-name
88
- + $modifier
89
- + "--"
90
- + $variant-value
91
- + "--default__"
92
- + $property
93
- + ")",
94
- ""
95
- )}
104
+ #{$fallback-custom-property}
96
105
  ); // 2.
97
106
  }
98
107
  }
@@ -202,13 +211,16 @@
202
211
  $inherit-link-color: false,
203
212
  $properties,
204
213
  ) {
205
- $modifier-class-name:
206
- if(
207
- $modifier-name and $modifier-value,
208
- ".isRoot#{rui-string.capitalize($modifier-name)}#{rui-string.capitalize($modifier-value)}",
209
- ""
210
- );
211
- $variant-class-name: ".isRoot#{rui-string.capitalize($variant-name)}#{rui-string.capitalize($variant-value)}";
214
+ $modifier-class-name: "";
215
+ $variant-class-name: ".isRoot"
216
+ + rui-string.capitalize($variant-name)
217
+ + rui-string.capitalize($variant-value);
218
+
219
+ @if $modifier-name and $modifier-value {
220
+ $modifier-class-name: ".isRoot"
221
+ + rui-string.capitalize($modifier-name)
222
+ + rui-string.capitalize($modifier-value);
223
+ }
212
224
 
213
225
  #{$modifier-class-name}#{$variant-class-name} {
214
226
  @if $generate-interaction-states {
@@ -16,9 +16,11 @@
16
16
  @each $key, $value in $values {
17
17
  $properties: map.get($utility, property);
18
18
  $property-class: map.get($utility, class);
19
+ $property-class-modifier: "";
19
20
 
20
- // Don't prefix if value key is null (e.g. with shadow class)
21
- $property-class-modifier: if($key, "-" + $key, "");
21
+ @if $key {
22
+ $property-class-modifier: "-" + $key;
23
+ }
22
24
 
23
25
  .#{$property-class + $infix + $property-class-modifier} {
24
26
  @each $property in $properties {