@gooddata/sdk-ui-kit 10.40.0-alpha.2 → 10.40.0-alpha.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.
@@ -2,7 +2,6 @@
2
2
  @use "mixins";
3
3
  @use "variables";
4
4
  @use "layout";
5
- @use "Messages/_variables" as messages-variables;
6
5
 
7
6
  /* ==========================================================================
8
7
  Messages
@@ -95,34 +94,31 @@ $gd-message-padding-vertical: 4px;
95
94
  @include mixins.clearfix();
96
95
 
97
96
  line-height: 1.4em;
98
- color: variables.$gd-palette-error-base;
99
- background: messages-variables.$gd-message-error-backgroundColor;
100
97
  pointer-events: all;
101
98
  max-width: 100%;
102
- border-radius: 3px;
103
99
  font-family: variables.$gd-font-primary;
104
100
  font-size: 14px;
105
101
  text-align: left;
106
102
 
107
- a:not(.gd-message-dismiss) {
108
- color: inherit;
109
- text-decoration: underline;
110
- }
103
+ --shadow-when-enabled: 0 4px 4px 0 var(--gd-shadow-color);
111
104
 
112
- &.progress {
113
- color: messages-variables.$gd-message-progress-color;
114
- background: messages-variables.$gd-message-progress-backgroundColor;
105
+ a:not(.gd-message-dismiss),
106
+ .gd-message-text-showmorelink {
107
+ color: var(--local_linkButtonColor);
108
+ text-decoration: underline;
115
109
  }
116
110
 
117
- &.success {
118
- color: variables.$gd-palette-success-base;
119
- background: messages-variables.$gd-message-success-backgroundColor;
111
+ .gd-message-dismiss::before {
112
+ color: var(--local_closeButtonColor);
120
113
  }
121
114
 
122
- &.warning {
123
- color: variables.$gd-palette-warning-base;
124
- background: messages-variables.$gd-message-warning-backgroundColor;
125
- }
115
+ color: var(--local_textColor);
116
+ background: var(--local_backgroundColor);
117
+ border-style: solid;
118
+ border-color: var(--local_borderColor);
119
+ border-width: var(--local_borderWidth);
120
+ border-radius: var(--local_borderRadius);
121
+ box-shadow: var(--local_dropShadow, var(--shadow-when-enabled));
126
122
 
127
123
  &.contrast {
128
124
  &::before {
@@ -137,42 +133,43 @@ $gd-message-padding-vertical: 4px;
137
133
  background-color: variables.$gd-color-white;
138
134
  }
139
135
  }
140
- }
141
-
142
- .gd-message-overlay,
143
- .gd-message.intensive {
144
- color: variables.$gd-color-text-light;
145
- background: messages-variables.$gd-message-overlay-error-backgroundColor;
146
136
 
147
- &.success,
148
- &.progress,
149
- &.error,
150
- &.warning {
151
- color: variables.$gd-color-text-light;
152
- }
137
+ // Variables
138
+ @mixin local-variables($messageType, $variant) {
139
+ --local_textColor: var(--gd-#{$messageType}-#{$variant}-textColor);
140
+ --local_backgroundColor: var(--gd-#{$messageType}-#{$variant}-backgroundColor);
141
+ --local_borderColor: var(--gd-#{$messageType}-#{$variant}-borderColor);
142
+ --local_borderWidth: var(--gd-#{$messageType}-#{$variant}-borderWidth);
143
+ --local_borderRadius: var(--gd-#{$messageType}-#{$variant}-borderRadius);
144
+ --local_dropShadow: var(--gd-#{$messageType}-#{$variant}-dropShadow);
145
+ --local_linkButtonColor: var(--gd-#{$messageType}-#{$variant}-linkButtonColor);
146
+ --local_closeButtonColor: var(--gd-#{$messageType}-#{$variant}-closeButtonColor);
153
147
 
154
- &.success {
155
- background: messages-variables.$gd-message-overlay-success-backgroundColor;
148
+ @if $messageType == "toastMessage" {
149
+ --local_separatorLineColor: var(--gd-#{$messageType}-#{$variant}-separatorLineColor);
150
+ }
156
151
  }
157
-
158
- &.progress {
159
- background: messages-variables.$gd-message-overlay-progress-backgroundColor;
152
+ @mixin local-variables-for-all-variants($messageType) {
153
+ @each $variant in (progress, success, warning, error) {
154
+ &.#{$variant} {
155
+ @include local-variables($messageType, $variant);
156
+ }
157
+ }
160
158
  }
161
159
 
162
- &.error {
163
- background: messages-variables.$gd-message-overlay-error-backgroundColor;
164
- }
160
+ @include local-variables-for-all-variants("message");
165
161
 
166
- &.warning {
167
- background: messages-variables.$gd-message-overlay-warning-backgroundColor;
162
+ &.gd-message-overlay,
163
+ &.gd-message.intensive {
164
+ @include local-variables-for-all-variants("toastMessage");
168
165
  }
169
166
  }
170
167
 
171
168
  .gd-message-overlay {
172
169
  margin: 0;
170
+ border: 1px solid transparent;
173
171
 
174
172
  @include mixins.transition("opacity", 0.25s, "ease-in-out");
175
- @include mixins.box-shadow("0 1px 3px rgba(20, 56, 92, 0.1), 0 2px 9px rgba(20, 57, 93, 0.15)");
176
173
 
177
174
  &.is-hidden {
178
175
  opacity: 0;
@@ -194,24 +191,20 @@ $gd-message-padding-vertical: 4px;
194
191
  }
195
192
 
196
193
  &-showmorelink {
197
- color: rgba($color: variables.$gd-color-text-light, $alpha: 0.85);
194
+ color: inherit;
198
195
  cursor: pointer;
199
196
  font-size: 13px;
200
197
  text-decoration: underline;
201
198
  padding-left: 5px;
202
199
  background-color: transparent;
203
200
  border: none;
204
-
205
- &.warning {
206
- color: rgba($color: variables.$gd-color-warning-label, $alpha: 1);
207
- }
208
201
  }
209
202
 
210
203
  &-content {
211
204
  padding-top: 5px;
212
- color: rgba($color: variables.$gd-color-text-light, $alpha: 0.85);
205
+ color: inherit;
213
206
  font-size: 13px;
214
- border-top: 1px solid rgba($color: variables.$gd-color-text-light, $alpha: 0.85);
207
+ border-top: 1px solid var(--local_separatorLineColor);
215
208
 
216
209
  &.on {
217
210
  visibility: visible;
@@ -225,11 +218,6 @@ $gd-message-padding-vertical: 4px;
225
218
  height: 0;
226
219
  padding: 0;
227
220
  }
228
-
229
- &.warning {
230
- color: rgba($color: variables.$gd-color-warning-label, $alpha: 1);
231
- border-color: rgba($color: variables.$gd-color-warning-label, $alpha: 0.3);
232
- }
233
221
  }
234
222
  }
235
223
  }
@@ -20,6 +20,7 @@
20
20
  border-radius: 3px;
21
21
  font-family: variables.$gd-font-primary;
22
22
  background-color: variables.$gd-color-white;
23
+ border: 1px solid transparent;
23
24
 
24
25
  @include mixins.box-shadow(0 1px 20px var(--gd-shadow-color-from-theme, rgba(20, 56, 93, 0.2)));
25
26
 
@@ -1,6 +1,10 @@
1
1
  // (C) 2021-2025 GoodData Corporation
2
2
  @use "variables";
3
3
 
4
+ .gd-share-dialog-overlay {
5
+ border: 1px solid transparent;
6
+ }
7
+
4
8
  .gd-share-dialog {
5
9
  @media #{variables.$medium-up} {
6
10
  width: 540px;
@@ -1,38 +0,0 @@
1
- @use "sass:color";
2
- @use "../variables";
3
-
4
- // (C) 2020 GoodData Corporation
5
-
6
- $gd-message-error-backgroundColor: var(
7
- --gd-palette-error-base-t85,
8
- color.adjust(variables.$gd-color-negative, $alpha: -0.85)
9
- );
10
- $gd-message-overlay-error-backgroundColor: var(
11
- --gd-palette-error-base-t02,
12
- color.adjust(variables.$gd-color-negative, $alpha: -0.02)
13
- );
14
-
15
- $gd-message-success-backgroundColor: var(
16
- --gd-palette-success-base-t85,
17
- color.adjust(variables.$gd-color-positive, $alpha: -0.85)
18
- );
19
- $gd-message-overlay-success-backgroundColor: var(
20
- --gd-palette-success-base-t02,
21
- color.adjust(variables.$gd-color-positive, $alpha: -0.02)
22
- );
23
-
24
- $gd-message-warning-backgroundColor: var(
25
- --gd-palette-warning-base-t85,
26
- color.adjust(variables.$gd-color-warning, $alpha: -0.85)
27
- );
28
- $gd-message-overlay-warning-backgroundColor: var(--gd-palette-warning-base, variables.$gd-color-warning);
29
-
30
- $gd-message-progress-color: var(--gd-palette-info-base, variables.$gd-palette-primary-base);
31
- $gd-message-progress-backgroundColor: var(
32
- --gd-palette-info-base-t85,
33
- var(--gd-palette-primary-base-t85, color.adjust(variables.$gd-color-highlight, $alpha: -0.85))
34
- );
35
- $gd-message-overlay-progress-backgroundColor: var(
36
- --gd-palette-info-base-t02,
37
- var(--gd-palette-primary-base-t02, color.adjust(variables.$gd-color-highlight, $alpha: -0.02))
38
- );