@lumx/core 3.6.6-alpha.2 → 3.6.7-alpha.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
@@ -40,7 +40,7 @@
40
40
  "update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
41
41
  },
42
42
  "sideEffects": false,
43
- "version": "3.6.6-alpha.2",
43
+ "version": "3.6.7-alpha.0",
44
44
  "devDependencies": {
45
45
  "@babel/core": "^7.18.13",
46
46
  "@babel/plugin-proposal-class-properties": "^7.18.6",
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * Do not edit directly
5
- * Generated on Thu, 04 Jan 2024 13:59:14 GMT
5
+ * Generated on Tue, 19 Mar 2024 13:36:08 GMT
6
6
  */
7
7
 
8
8
  $lumx-button-height: 36px !default;
@@ -368,7 +368,7 @@ $lumx-color-blue-L3: rgb(36 91 231 / 0.4) !default; // Base blue color with 40%
368
368
  $lumx-color-blue-L4: rgb(36 91 231 / 0.2) !default; // Base blue color with 20% opacity
369
369
  $lumx-color-blue-L5: rgb(36 91 231 / 0.1) !default; // Base blue color with 10% opacity
370
370
  $lumx-color-blue-L6: rgb(36 91 231 / 0.05) !default; // Base blue color with 5% opacity
371
- $lumx-color-green-D2: rgb(26 110 89) !default; // Darkest green color
371
+ $lumx-color-green-D2: rgb(25 109 88) !default; // Darkest green color
372
372
  $lumx-color-green-D1: rgb(23 122 97) !default; // Dark green color
373
373
  $lumx-color-green-N: rgb(19 134 105) !default; // Neutral green color
374
374
  $lumx-color-green-L1: rgb(19 134 105 / 0.8) !default; // Base green color with 80% opacity
@@ -386,15 +386,15 @@ $lumx-color-yellow-L3: rgb(255 196 37 / 0.6) !default; // Base yellow color with
386
386
  $lumx-color-yellow-L4: rgb(255 196 37 / 0.48) !default; // Base yellow color with 40% opacity
387
387
  $lumx-color-yellow-L5: rgb(255 196 37 / 0.24) !default; // Base yellow color with 20% opacity
388
388
  $lumx-color-yellow-L6: rgb(255 196 37 / 0.12) !default; // Base yellow color with 10% opacity
389
- $lumx-color-red-D2: rgb(190 30 70) !default; // Darkest red color
389
+ $lumx-color-red-D2: rgb(188 9 48) !default; // Darkest red color
390
390
  $lumx-color-red-D1: rgb(212 33 72) !default; // Dark red color
391
- $lumx-color-red-N: rgb(223 48 80) !default; // Neutral red color
392
- $lumx-color-red-L1: rgb(223 48 80 / 0.8) !default; // Base red color with 80% opacity
393
- $lumx-color-red-L2: rgb(223 48 80 / 0.6) !default; // Base red color with 60% opacity
394
- $lumx-color-red-L3: rgb(223 48 80 / 0.4) !default; // Base red color with 40% opacity
395
- $lumx-color-red-L4: rgb(223 48 80 / 0.2) !default; // Base red color with 20% opacity
396
- $lumx-color-red-L5: rgb(223 48 80 / 0.1) !default; // Base red color with 10% opacity
397
- $lumx-color-red-L6: rgb(223 48 80 / 0.05) !default; // Base red color with 5% opacity
391
+ $lumx-color-red-N: rgb(223 42 75) !default; // Neutral red color
392
+ $lumx-color-red-L1: rgb(223 42 75 / 0.8) !default; // Base red color with 80% opacity
393
+ $lumx-color-red-L2: rgb(223 42 75 / 0.6) !default; // Base red color with 60% opacity
394
+ $lumx-color-red-L3: rgb(223 42 75 / 0.4) !default; // Base red color with 40% opacity
395
+ $lumx-color-red-L4: rgb(223 42 75 / 0.2) !default; // Base red color with 20% opacity
396
+ $lumx-color-red-L5: rgb(223 42 75 / 0.1) !default; // Base red color with 10% opacity
397
+ $lumx-color-red-L6: rgb(223 42 75 / 0.05) !default; // Base red color with 5% opacity
398
398
  $lumx-color-grey-N: rgb(117 117 117) !default; // Neutral grey color
399
399
  $lumx-color-grey-L1: rgb(117 117 117 / 0.8) !default; // Base grey color with 80% opacity
400
400
  $lumx-color-grey-L2: rgb(117 117 117 / 0.6) !default; // Base grey color with 60% opacity
@@ -30,7 +30,7 @@
30
30
  }
31
31
  }
32
32
 
33
- &.#{$lumx-base-prefix}-button--emphasis-medium {
33
+ &.#{$lumx-base-prefix}-button--emphasis-medium:not(.#{$lumx-base-prefix}-button--is-selected) {
34
34
  &.#{$lumx-base-prefix}-button--variant-button {
35
35
  @include lumx-button-size(lumx-base-const("emphasis", "MEDIUM"), "button", $key);
36
36
  }
@@ -40,6 +40,16 @@
40
40
  }
41
41
  }
42
42
 
43
+ &.#{$lumx-base-prefix}-button--emphasis-medium.#{$lumx-base-prefix}-button--is-selected {
44
+ &.#{$lumx-base-prefix}-button--variant-button {
45
+ @include lumx-button-size(lumx-base-const("emphasis", "SELECTED"), "button", $key);
46
+ }
47
+
48
+ &.#{$lumx-base-prefix}-button--variant-icon {
49
+ @include lumx-button-size(lumx-base-const("emphasis", "SELECTED"), "icon", $key);
50
+ }
51
+ }
52
+
43
53
  &.#{$lumx-base-prefix}-button--emphasis-low {
44
54
  &.#{$lumx-base-prefix}-button--variant-button {
45
55
  @include lumx-button-size(lumx-base-const("emphasis", "LOW"), "button", $key);
@@ -14,6 +14,12 @@
14
14
  text-align: center;
15
15
  }
16
16
 
17
+ &__year {
18
+ input[type="number"] {
19
+ width: 4ch;
20
+ }
21
+ }
22
+
17
23
  &__calendar {
18
24
  padding: $lumx-spacing-unit * 2;
19
25
  padding-top: 0;
@@ -40,6 +40,10 @@
40
40
  background-color: lumx-color-variant("dark", "L1");
41
41
  animation: lumx-dialog-overlay-show $lumx-dialog-transition-duration;
42
42
 
43
+ @include mq($until: desktop) {
44
+ display: none;
45
+ }
46
+
43
47
  @media (prefers-reduced-motion: reduce) {
44
48
  animation: none;
45
49
  }
@@ -51,7 +55,21 @@
51
55
  display: flex;
52
56
  flex-direction: column;
53
57
  transform: translateY(0);
54
- animation: lumx-dialog-show $lumx-dialog-transition-duration;
58
+
59
+ #{$self}--is-hidden & {
60
+ @include mq($until: desktop) {
61
+ transform: translateY(100%);
62
+ }
63
+ }
64
+
65
+ @include mq($until: desktop) {
66
+ transition: transform $lumx-dialog-transition-duration cubic-bezier(0.23, 1, 0.32, 1);
67
+ animation: lumx-dialog-show-mobile $lumx-dialog-transition-duration cubic-bezier(0.23, 1, 0.32, 1);
68
+ }
69
+
70
+ @include mq($from: desktop) {
71
+ animation: lumx-dialog-show-desktop $lumx-dialog-transition-duration;
72
+ }
55
73
 
56
74
  @media (prefers-reduced-motion: reduce) {
57
75
  animation: none;
@@ -59,17 +77,26 @@
59
77
  }
60
78
 
61
79
  &__wrapper {
62
- @include lumx-elevation(5);
63
-
64
80
  position: relative;
65
81
  display: flex;
66
82
  flex-direction: column;
67
- max-height: 100%;
68
83
  background-color: lumx-color-variant("light", "N");
69
- border-radius: var(--lumx-border-radius);
84
+
85
+ @include mq($until: desktop) {
86
+ min-height: 100%;
87
+ }
88
+
89
+ @include mq($from: desktop) {
90
+ @include lumx-elevation(5);
91
+
92
+ max-height: 100%;
93
+ border-radius: var(--lumx-border-radius);
94
+ }
70
95
 
71
96
  #{$self}--size-huge & {
72
- height: 100%;
97
+ @include mq($from: desktop) {
98
+ min-height: 100%;
99
+ }
73
100
  }
74
101
  }
75
102
 
@@ -118,7 +145,17 @@
118
145
  }
119
146
  }
120
147
 
121
- @keyframes lumx-dialog-show {
148
+ @keyframes lumx-dialog-show-mobile {
149
+ 0% {
150
+ transform: translateY(100%);
151
+ }
152
+
153
+ 100% {
154
+ transform: translateY(0);
155
+ }
156
+ }
157
+
158
+ @keyframes lumx-dialog-show-desktop {
122
159
  0% {
123
160
  opacity: 0;
124
161
  transform: translateY(-24px);
@@ -136,10 +173,10 @@
136
173
  @each $key, $size in $lumx-dialog-sizes {
137
174
  .#{$lumx-base-prefix}-dialog--size-#{$key} .#{$lumx-base-prefix}-dialog__container {
138
175
  @include mq($until: desktop) {
139
- top: $lumx-dialog-offset-portable;
140
- right: $lumx-dialog-offset-portable;
141
- left: $lumx-dialog-offset-portable;
142
- height: calc(100% - 48px);
176
+ top: 0;
177
+ right: 0;
178
+ left: 0;
179
+ height: 100%;
143
180
  }
144
181
 
145
182
  @include mq($from: desktop) {
@@ -154,10 +191,10 @@
154
191
 
155
192
  .#{$lumx-base-prefix}-dialog--size-huge .#{$lumx-base-prefix}-dialog__container {
156
193
  @include mq($until: desktop) {
157
- top: $lumx-dialog-offset-portable;
158
- right: $lumx-dialog-offset-portable;
159
- bottom: $lumx-dialog-offset-portable;
160
- left: $lumx-dialog-offset-portable;
194
+ top: 0;
195
+ right: 0;
196
+ bottom: 0;
197
+ left: 0;
161
198
  }
162
199
 
163
200
  @include mq($from: desktop) {
@@ -4,5 +4,5 @@ $lumx-dialog-sizes: (
4
4
  "big": 800px,
5
5
  );
6
6
  $lumx-dialog-offset-desktop: 48px;
7
- $lumx-dialog-offset-portable: 24px;
7
+ $lumx-dialog-offset-portable: 0px;
8
8
  $lumx-dialog-transition-duration: 400ms;
@@ -22,6 +22,10 @@
22
22
  flex: 1 1 auto;
23
23
  color: lumx-color-variant("dark", "N");
24
24
  }
25
+
26
+ &__close-button {
27
+ flex-shrink: 0;
28
+ }
25
29
  }
26
30
 
27
31
  /* Message kind
@@ -42,7 +42,7 @@
42
42
  @if $color == "yellow" {
43
43
  color: lumx-color-variant("dark", "L1");
44
44
  } @else {
45
- color: lumx-color-variant($color, "N");
45
+ color: lumx-color-variant($color, "D2");
46
46
  }
47
47
  } @else if $state == lumx-base-const("state", "HOVER") {
48
48
  background-color: lumx-color-variant($color, "L4");
@@ -84,7 +84,7 @@
84
84
 
85
85
  @mixin lumx-state-low($state, $color) {
86
86
  @if $state == lumx-base-const("state", "DEFAULT") {
87
- color: lumx-color-variant($color, "N");
87
+ color: lumx-color-variant($color, "D2");
88
88
  background-color: transparent;
89
89
  } @else if $state == lumx-base-const("state", "HOVER") {
90
90
  background-color: lumx-color-variant($color, "L5");