@lucca-front/scss 21.0.3 → 21.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucca-front/scss",
3
- "version": "21.0.3",
3
+ "version": "21.0.5",
4
4
  "description": "A Sass framework for Lucca products.",
5
5
  "main": "src/main.scss",
6
6
  "scripts": {},
@@ -23,6 +23,6 @@
23
23
  "normalize.css": "^8.0.0"
24
24
  },
25
25
  "peerDependencies": {
26
- "@lucca-front/icons": "21.0.3"
26
+ "@lucca-front/icons": "21.0.5"
27
27
  }
28
28
  }
@@ -34,9 +34,15 @@ $cursor: 'pointer', 'auto', 'default', 'text';
34
34
  // Tokens
35
35
 
36
36
  @mixin spacing($boxModel, $boxDirection, $key, $value, $suffix: '!important') {
37
+ $boxDirectionString: '-';
38
+
39
+ @if $boxDirection == '' {
40
+ $boxDirectionString: '';
41
+ }
42
+
37
43
  @if $boxModel != 'inset' or ($boxDirection != 'top' and $boxDirection != 'bottom' and $boxDirection != 'left' and $boxDirection != 'right') {
38
44
  .pr-u-#{transform.camelize($boxModel)}#{transform.capitalize(transform.camelize($boxDirection))}#{transform.capitalize($key)} {
39
- #{$boxModel}#{if($boxDirection == '', '', '-')}#{$boxDirection}: var(--pr-t-spacings-#{$key}) #{$suffix};
45
+ #{$boxModel}#{$boxDirectionString}#{$boxDirection}: var(--pr-t-spacings-#{$key}) #{$suffix};
40
46
  }
41
47
  }
42
48
  }
@@ -75,31 +81,43 @@ $cursor: 'pointer', 'auto', 'default', 'text';
75
81
 
76
82
  @mixin cssvars($name, $properties, $after: '') {
77
83
  @each $key, $value in $properties {
78
- --#{$name}#{if($key == '', '', '-')}#{$key}#{$after}: #{$value};
84
+ $keyString: '-';
85
+
86
+ @if $key == '' {
87
+ $keyString: '';
88
+ }
89
+
90
+ --#{$name}#{$keyString}#{$key}#{$after}: #{$value};
79
91
  }
80
92
  }
81
93
 
82
94
  @mixin classes($name, $properties, $suffix: '!important', $prefix: '') {
83
95
  @each $property in $properties {
96
+ $minusString: '';
97
+
98
+ @if string.slice($property, 1, 1) == '-' {
99
+ $minusString: 'Minus';
100
+ }
101
+
84
102
  @if $prefix == '' {
85
- .pr-u-#{transform.camelize($name)}#{if(string.slice($property, 1, 1) == '-', 'Minus', '')}#{transform.capitalize(transform.camelize($property))} {
103
+ .pr-u-#{transform.camelize($name)}#{$minusString}#{transform.capitalize(transform.camelize($property))} {
86
104
  #{$name}: #{transform.replace($property, '\\', '')} #{$suffix};
87
105
  }
88
106
 
89
107
  // Deprecated .u- utilities
90
108
  @if config.$deprecatedUtilityPrefix {
91
- .u-#{transform.camelize($name)}#{if(string.slice($property, 1, 1) == '-', 'Minus', '')}#{transform.capitalize(transform.camelize($property))} {
109
+ .u-#{transform.camelize($name)}#{$minusString}#{transform.capitalize(transform.camelize($property))} {
92
110
  #{$name}: #{transform.replace($property, '\\', '')} #{$suffix};
93
111
  }
94
112
  }
95
113
  } @else {
96
- .pr-u-#{$prefix}#{transform.capitalize(transform.camelize($name))}#{if(string.slice($property, 1, 1) == '-', 'Minus', '')}#{transform.capitalize(transform.camelize($property))} {
114
+ .pr-u-#{$prefix}#{transform.capitalize(transform.camelize($name))}#{$minusString}#{transform.capitalize(transform.camelize($property))} {
97
115
  #{$name}: #{transform.replace($property, '\\', '')} #{$suffix};
98
116
  }
99
117
 
100
118
  // Deprecated .u- utilities
101
119
  @if config.$deprecatedUtilityPrefix {
102
- .u-#{$prefix}#{transform.capitalize(transform.camelize($name))}#{if(string.slice($property, 1, 1) == '-', 'Minus', '')}#{transform.capitalize(transform.camelize($property))} {
120
+ .u-#{$prefix}#{transform.capitalize(transform.camelize($name))}#{$minusString}#{transform.capitalize(transform.camelize($property))} {
103
121
  #{$name}: #{transform.replace($property, '\\', '')} #{$suffix};
104
122
  }
105
123
  }
@@ -126,8 +126,19 @@
126
126
  }
127
127
 
128
128
  @mixin pointer($query, $any: false, $reversed: false) {
129
+ $mediaString: 'media';
130
+ $anyString: '';
131
+
132
+ @if $reversed {
133
+ $mediaString: 'media not';
134
+ }
135
+
136
+ @if $any {
137
+ $anyString: 'any-';
138
+ }
139
+
129
140
  // stylelint-disable-next-line scss/at-rule-no-unknown
130
- @#{if($reversed, 'media not', 'media')} (#{if($any, 'any-', '')}pointer: #{$query}) {
141
+ @#{$mediaString} (#{$anyString}pointer: #{$query}) {
131
142
  @content;
132
143
  }
133
144
  }
@@ -20,6 +20,4 @@
20
20
  @include sampleStateA;
21
21
  }
22
22
  }
23
-
24
- color: blue;
25
23
  }
@@ -36,7 +36,7 @@
36
36
  }
37
37
 
38
38
  &.mod-verticalAlignMiddle {
39
- @includeverticalAlignMiddle;
39
+ @include verticalAlignMiddle;
40
40
  }
41
41
 
42
42
  &.mod-layoutFixed {
@@ -15,7 +15,7 @@
15
15
  box-shadow: var(--pr-t-elevation-shadow-overlay);
16
16
  margin: auto;
17
17
  flex-direction: column;
18
- display: flex !important;
18
+ display: flex;
19
19
  position: fixed !important;
20
20
  max-inline-size: var(--components-dialog-maxWidth) !important;
21
21
  max-block-size: var(--components-dialog-maxHeight) !important;
@@ -92,6 +92,7 @@
92
92
 
93
93
  @mixin withAction {
94
94
  --components-dialog-insideHeaderAreas: 'container action close';
95
+ --components-dialog-insideHeaderColumns: 1fr auto auto;
95
96
  }
96
97
 
97
98
  @mixin stacked {
@@ -13,7 +13,7 @@
13
13
  --components-dialog-insideHeaderTitlePadding: calc(var(--pr-t-spacings-50) / 2) 0;
14
14
  --components-dialog-insideHeaderButtonDisplay: flex;
15
15
  --components-dialog-insideHeaderLinkDisplay: none;
16
- --components-dialog-insideHeaderColumns: 1fr auto auto;
16
+ --components-dialog-insideHeaderColumns: 1fr auto;
17
17
  --components-dialog-insideContent-background: transparent;
18
18
  --components-dialog-level: 0;
19
19
  --components-dialog-translate-spacing: var(--pr-t-spacings-500);
@@ -13,14 +13,14 @@
13
13
  .dropdown-list-option-action,
14
14
  .lu-dropdown-options-item-action {
15
15
  @layer mods {
16
- &[disabled],
17
- &.is-disabled {
18
- @include disabled;
19
- }
20
-
21
16
  &.mod-critical,
22
17
  &.mod-delete {
23
18
  @include critical;
24
19
  }
20
+
21
+ &[disabled],
22
+ &.is-disabled {
23
+ @include disabled;
24
+ }
25
25
  }
26
26
  }
@@ -32,6 +32,7 @@
32
32
  grid-area: value;
33
33
  font: var(--components-highlightData-value-font);
34
34
  order: var(--components-highlightData-value-order);
35
+ color: var(--pr-t-color-text-heading);
35
36
  }
36
37
 
37
38
  .highlightData-content-subText {
@@ -62,7 +62,7 @@
62
62
  .pageHeader-description {
63
63
  max-inline-size: var(--components-pageHeader-description-max-width);
64
64
  margin-block-start: var(--pr-t-spacings-100);
65
- color: var(--palettes-neutral-700);
65
+ color: var(--pr-t-color-text);
66
66
  }
67
67
 
68
68
  .pageHeader-description-paragraph {
@@ -40,7 +40,7 @@
40
40
  @mixin selected {
41
41
  .simpleSelect-field-input {
42
42
  &::placeholder {
43
- color: transparent;
43
+ opacity: 0;
44
44
  }
45
45
  }
46
46
  }
@@ -48,7 +48,7 @@
48
48
  @mixin selectedSearchFilled {
49
49
  .simpleSelect-field-input {
50
50
  &::placeholder {
51
- color: transparent;
51
+ opacity: 0;
52
52
  }
53
53
  }
54
54