agroptima-design-system 0.6.1 → 0.7.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 +1 -1
- package/src/atoms/Button.scss +233 -132
- package/src/atoms/CardsTable.scss +1 -1
- package/src/atoms/Checkbox.scss +1 -1
- package/src/atoms/EmptyState.scss +3 -2
- package/src/atoms/Icon.scss +0 -1
- package/src/atoms/Icon.tsx +5 -1
- package/src/atoms/IconButton.scss +0 -1
- package/src/atoms/Input.scss +2 -2
- package/src/atoms/Modal.scss +134 -0
- package/src/atoms/Modal.tsx +80 -0
- package/src/atoms/Multiselect.scss +2 -2
- package/src/atoms/Select.scss +2 -2
- package/src/settings/_depth.scss +2 -0
- package/src/settings/typography/_cards_table.scss +19 -0
- package/src/settings/typography/_content.scss +132 -0
- package/src/settings/typography/_form.scss +40 -0
- package/src/stories/Changelog.stories.mdx +7 -2
- package/src/stories/Input.stories.ts +3 -3
- package/src/stories/Modal.stories.js +119 -0
- package/src/stories/Typography.stories.js +26 -0
- package/tests/Modal.spec.tsx +86 -0
- package/tests/library.ts +1 -0
- package/tsconfig.json +1 -1
- package/src/settings/_typography.scss +0 -136
package/package.json
CHANGED
package/src/atoms/Button.scss
CHANGED
|
@@ -1,183 +1,284 @@
|
|
|
1
1
|
@use '../settings/color_alias';
|
|
2
|
-
@use '../settings/typography';
|
|
2
|
+
@use '../settings/typography/content' as typography;
|
|
3
3
|
@use '../settings/config';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
&.error-outlined,
|
|
17
|
-
&.error-ghost {
|
|
18
|
-
--color-bg: #{color_alias.$error-color-600};
|
|
19
|
-
--color-bg-hover: #{color_alias.$error-color-900};
|
|
20
|
-
--color-bg-hover-outlined: #{color_alias.$error-color-50};
|
|
21
|
-
--color-fg: #{color_alias.$neutral-white};
|
|
22
|
-
--color-fg-reversed: #{color_alias.$error-color-600};
|
|
23
|
-
}
|
|
24
|
-
&.success,
|
|
25
|
-
&.success-outlined,
|
|
26
|
-
&.success-ghost {
|
|
27
|
-
--color-bg: #{color_alias.$success-color-1000};
|
|
28
|
-
--color-bg-hover: #{color_alias.$success-color-700};
|
|
29
|
-
--color-bg-hover-outlined: #{color_alias.$success-color-50};
|
|
30
|
-
--color-fg: #{color_alias.$neutral-color-900};
|
|
31
|
-
--color-fg-reversed: #{color_alias.$success-color-1000};
|
|
32
|
-
}
|
|
33
|
-
&.warning,
|
|
34
|
-
&.warning-outlined,
|
|
35
|
-
&.warning-ghost {
|
|
36
|
-
--color-bg: #{color_alias.$warning-color-1000};
|
|
37
|
-
--color-bg-hover: #{color_alias.$warning-color-700};
|
|
38
|
-
--color-bg-hover-outlined: #{color_alias.$warning-color-50};
|
|
39
|
-
--color-fg: #{color_alias.$neutral-color-900};
|
|
40
|
-
--color-fg-reversed: #{color_alias.$warning-color-1000};
|
|
41
|
-
}
|
|
42
|
-
&.info,
|
|
43
|
-
&.info-outlined,
|
|
44
|
-
&.info-ghost {
|
|
45
|
-
--color-bg: #{color_alias.$info-color-600};
|
|
46
|
-
--color-bg-hover: #{color_alias.$info-color-900};
|
|
47
|
-
--color-bg-hover-outlined: #{color_alias.$info-color-50};
|
|
48
|
-
--color-fg: #{color_alias.$neutral-white};
|
|
49
|
-
--color-fg-reversed: #{color_alias.$info-color-600};
|
|
50
|
-
}
|
|
51
|
-
&.neutral,
|
|
52
|
-
&.neutral-outlined,
|
|
53
|
-
&.neutral-ghost {
|
|
54
|
-
--color-bg: #{color_alias.$neutral-color-100};
|
|
55
|
-
--color-bg-hover: #{color_alias.$neutral-color-300};
|
|
56
|
-
--color-bg-hover-outlined: #{color_alias.$neutral-color-50};
|
|
57
|
-
--color-fg: #{color_alias.$neutral-color-1000};
|
|
58
|
-
--color-fg-reversed: #{color_alias.$neutral-color-1000};
|
|
59
|
-
--color-fg-disabled: #{color_alias.$neutral-color-50};
|
|
5
|
+
@mixin button-style($main-color, $secondary-color, $hover-color) {
|
|
6
|
+
background: $main-color;
|
|
7
|
+
color: $secondary-color;
|
|
8
|
+
|
|
9
|
+
> .icon {
|
|
10
|
+
> svg {
|
|
11
|
+
fill: $secondary-color;
|
|
12
|
+
path {
|
|
13
|
+
fill: $secondary-color;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
60
16
|
}
|
|
61
17
|
|
|
62
|
-
|
|
18
|
+
&:not(:disabled):hover,
|
|
19
|
+
&:not(:disabled):active {
|
|
20
|
+
background: $hover-color;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
63
23
|
|
|
24
|
+
.button {
|
|
64
25
|
display: inline-flex;
|
|
65
|
-
height: fit-content;
|
|
66
|
-
background: var(--color-bg);
|
|
67
|
-
border: 1px solid transparent;
|
|
68
|
-
padding: config.$space-2x config.$space-3x;
|
|
69
|
-
// padding: var(--space-2-x, .5em) var(--space-3-x, .75em);
|
|
70
26
|
justify-content: center;
|
|
71
27
|
align-items: center;
|
|
72
|
-
gap: config.$space-1x;
|
|
73
28
|
flex-shrink: 0;
|
|
29
|
+
gap: config.$space-1x;
|
|
30
|
+
height: fit-content;
|
|
31
|
+
padding: config.$space-2x config.$space-3x;
|
|
74
32
|
border-radius: config.$corner-radius-m;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
33
|
+
text-decoration: none;
|
|
34
|
+
border: 1px solid transparent;
|
|
35
|
+
|
|
36
|
+
> .icon {
|
|
78
37
|
width: config.$icon-size-3x;
|
|
79
38
|
height: config.$icon-size-3x;
|
|
80
39
|
> svg {
|
|
81
40
|
width: 100%;
|
|
82
41
|
height: 100%;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@include typography.body-medium;
|
|
46
|
+
|
|
47
|
+
&.primary {
|
|
48
|
+
@include button-style(
|
|
49
|
+
color_alias.$primary-color-600,
|
|
50
|
+
color_alias.$neutral-white,
|
|
51
|
+
color_alias.$primary-color-1000
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.primary-outlined {
|
|
56
|
+
@include button-style(
|
|
57
|
+
color_alias.$neutral-white,
|
|
58
|
+
color_alias.$primary-color-600,
|
|
59
|
+
color_alias.$primary-color-50
|
|
60
|
+
);
|
|
61
|
+
border: 1px solid color_alias.$primary-color-600;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.primary-ghost {
|
|
65
|
+
@include button-style(
|
|
66
|
+
transparent,
|
|
67
|
+
color_alias.$primary-color-600,
|
|
68
|
+
transparent
|
|
69
|
+
);
|
|
70
|
+
&:not(:disabled):hover,
|
|
71
|
+
&:not(:disabled):active {
|
|
72
|
+
border: 1px solid color_alias.$primary-color-600;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&.error {
|
|
77
|
+
@include button-style(
|
|
78
|
+
color_alias.$error-color-600,
|
|
79
|
+
color_alias.$neutral-white,
|
|
80
|
+
color_alias.$error-color-900
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&.error-outlined {
|
|
85
|
+
@include button-style(
|
|
86
|
+
color_alias.$neutral-white,
|
|
87
|
+
color_alias.$error-color-600,
|
|
88
|
+
color_alias.$error-color-50
|
|
89
|
+
);
|
|
90
|
+
border: 1px solid color_alias.$error-color-600;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&.error-ghost {
|
|
94
|
+
@include button-style(
|
|
95
|
+
transparent,
|
|
96
|
+
color_alias.$error-color-600,
|
|
97
|
+
transparent
|
|
98
|
+
);
|
|
99
|
+
&:not(:disabled):hover,
|
|
100
|
+
&:not(:disabled):active {
|
|
101
|
+
border: 1px solid color_alias.$error-color-600;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&.success {
|
|
106
|
+
@include button-style(
|
|
107
|
+
color_alias.$success-color-1000,
|
|
108
|
+
color_alias.$neutral-color-900,
|
|
109
|
+
color_alias.$success-color-700
|
|
110
|
+
);
|
|
111
|
+
&:not(:disabled):hover,
|
|
112
|
+
&:not(:disabled):active {
|
|
113
|
+
color: color_alias.$neutral-white;
|
|
114
|
+
> .icon {
|
|
115
|
+
> svg {
|
|
116
|
+
fill: color_alias.$neutral-white;
|
|
117
|
+
path {
|
|
118
|
+
fill: color_alias.$neutral-white;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
86
121
|
}
|
|
87
122
|
}
|
|
88
123
|
}
|
|
89
124
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
125
|
+
&.success-outlined {
|
|
126
|
+
@include button-style(
|
|
127
|
+
color_alias.$neutral-white,
|
|
128
|
+
color_alias.$neutral-color-900,
|
|
129
|
+
color_alias.$success-color-50
|
|
130
|
+
);
|
|
131
|
+
border: 1px solid color_alias.$success-color-1000;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&.success-ghost {
|
|
135
|
+
@include button-style(
|
|
136
|
+
transparent,
|
|
137
|
+
color_alias.$success-color-1000,
|
|
138
|
+
transparent
|
|
139
|
+
);
|
|
140
|
+
&:not(:disabled):hover,
|
|
141
|
+
&:not(:disabled):active {
|
|
142
|
+
border: 1px solid color_alias.$success-color-1000;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
93
145
|
|
|
94
|
-
|
|
95
|
-
|
|
146
|
+
&.warning {
|
|
147
|
+
@include button-style(
|
|
148
|
+
color_alias.$warning-color-1000,
|
|
149
|
+
color_alias.$neutral-color-900,
|
|
150
|
+
color_alias.$warning-color-700
|
|
151
|
+
);
|
|
152
|
+
&:not(:disabled):hover,
|
|
153
|
+
&:not(:disabled):active {
|
|
96
154
|
color: color_alias.$neutral-white;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
155
|
+
> .icon {
|
|
156
|
+
> svg {
|
|
157
|
+
fill: color_alias.$neutral-white;
|
|
158
|
+
path {
|
|
159
|
+
fill: color_alias.$neutral-white;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
100
162
|
}
|
|
101
163
|
}
|
|
102
164
|
}
|
|
103
165
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
166
|
+
&.warning-outlined {
|
|
167
|
+
@include button-style(
|
|
168
|
+
color_alias.$neutral-white,
|
|
169
|
+
color_alias.$neutral-color-900,
|
|
170
|
+
color_alias.$warning-color-50
|
|
171
|
+
);
|
|
172
|
+
border: 1px solid color_alias.$warning-color-1000;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&.warning-ghost {
|
|
176
|
+
@include button-style(
|
|
177
|
+
transparent,
|
|
178
|
+
color_alias.$warning-color-1000,
|
|
179
|
+
transparent
|
|
180
|
+
);
|
|
181
|
+
&:not(:disabled):hover,
|
|
182
|
+
&:not(:disabled):active {
|
|
183
|
+
border: 1px solid color_alias.$warning-color-1000;
|
|
110
184
|
}
|
|
111
185
|
}
|
|
112
186
|
|
|
113
|
-
&.
|
|
114
|
-
|
|
115
|
-
|
|
187
|
+
&.info {
|
|
188
|
+
@include button-style(
|
|
189
|
+
color_alias.$info-color-600,
|
|
190
|
+
color_alias.$neutral-white,
|
|
191
|
+
color_alias.$info-color-900
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&.info-outlined {
|
|
196
|
+
@include button-style(
|
|
197
|
+
color_alias.$neutral-white,
|
|
198
|
+
color_alias.$info-color-600,
|
|
199
|
+
color_alias.$info-color-50
|
|
200
|
+
);
|
|
201
|
+
border: 1px solid color_alias.$info-color-600;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&.info-ghost {
|
|
205
|
+
@include button-style(
|
|
206
|
+
transparent,
|
|
207
|
+
color_alias.$info-color-600,
|
|
208
|
+
transparent
|
|
209
|
+
);
|
|
210
|
+
&:not(:disabled):hover,
|
|
211
|
+
&:not(:disabled):active {
|
|
212
|
+
border: 1px solid color_alias.$info-color-600;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
&.neutral {
|
|
217
|
+
@include button-style(
|
|
218
|
+
color_alias.$neutral-color-100,
|
|
219
|
+
color_alias.$neutral-color-1000,
|
|
220
|
+
color_alias.$neutral-color-300
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
|
|
116
224
|
&.neutral-outlined {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
225
|
+
@include button-style(
|
|
226
|
+
color_alias.$neutral-white,
|
|
227
|
+
color_alias.$neutral-color-1000,
|
|
228
|
+
color_alias.$neutral-color-50
|
|
229
|
+
);
|
|
230
|
+
border: 1px solid color_alias.$neutral-color-100;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
&.neutral-ghost {
|
|
234
|
+
@include button-style(
|
|
235
|
+
transparent,
|
|
236
|
+
color_alias.$neutral-color-1000,
|
|
237
|
+
transparent
|
|
238
|
+
);
|
|
239
|
+
&:not(:disabled):hover,
|
|
240
|
+
&:not(:disabled):active {
|
|
241
|
+
border: 1px solid color_alias.$neutral-color-100;
|
|
123
242
|
}
|
|
124
243
|
}
|
|
125
244
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
245
|
+
&:disabled {
|
|
246
|
+
color: color_alias.$neutral-color-400;
|
|
247
|
+
> .icon {
|
|
248
|
+
> svg {
|
|
249
|
+
fill: color_alias.$neutral-color-400;
|
|
250
|
+
path {
|
|
251
|
+
fill: color_alias.$neutral-color-400;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
134
254
|
}
|
|
135
255
|
}
|
|
136
256
|
|
|
257
|
+
&.primary,
|
|
258
|
+
&.error,
|
|
259
|
+
&.success,
|
|
260
|
+
&.warning,
|
|
261
|
+
&.info,
|
|
262
|
+
&.neutral,
|
|
137
263
|
&.primary-outlined,
|
|
138
264
|
&.error-outlined,
|
|
139
265
|
&.success-outlined,
|
|
140
266
|
&.warning-outlined,
|
|
141
267
|
&.info-outlined,
|
|
142
268
|
&.neutral-outlined {
|
|
143
|
-
&:not(:disabled):hover,
|
|
144
|
-
&:not(:disabled):active {
|
|
145
|
-
background: var(--color-bg-hover-outlined);
|
|
146
|
-
}
|
|
147
269
|
&:disabled {
|
|
148
270
|
background: color_alias.$neutral-color-50;
|
|
149
|
-
border: none;
|
|
150
|
-
color: color_alias.$neutral-color-400;
|
|
151
|
-
svg,
|
|
152
|
-
svg path {
|
|
153
|
-
fill: color_alias.$neutral-color-400;
|
|
154
|
-
}
|
|
155
271
|
}
|
|
156
272
|
}
|
|
157
273
|
|
|
158
|
-
&.primary-
|
|
159
|
-
&.error-
|
|
160
|
-
&.success-
|
|
161
|
-
&.warning-
|
|
162
|
-
&.info-
|
|
163
|
-
&.neutral-
|
|
164
|
-
background: transparent;
|
|
165
|
-
color: var(--color-fg-reversed);
|
|
166
|
-
svg,
|
|
167
|
-
svg path {
|
|
168
|
-
fill: var(--color-fg-reversed);
|
|
169
|
-
}
|
|
170
|
-
&:not(:disabled):hover,
|
|
171
|
-
&:not(:disabled):active {
|
|
172
|
-
background: transparent;
|
|
173
|
-
border: 1px solid var(--color-bg);
|
|
174
|
-
}
|
|
274
|
+
&.primary-outlined,
|
|
275
|
+
&.error-outlined,
|
|
276
|
+
&.success-outlined,
|
|
277
|
+
&.warning-outlined,
|
|
278
|
+
&.info-outlined,
|
|
279
|
+
&.neutral-outlined {
|
|
175
280
|
&:disabled {
|
|
176
|
-
|
|
177
|
-
svg,
|
|
178
|
-
svg path {
|
|
179
|
-
fill: color_alias.$neutral-color-400;
|
|
180
|
-
}
|
|
281
|
+
border: 1px solid transparent;
|
|
181
282
|
}
|
|
182
283
|
}
|
|
183
284
|
}
|
package/src/atoms/Checkbox.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use '../settings/color_alias';
|
|
2
|
-
@use '../settings/typography';
|
|
2
|
+
@use '../settings/typography/content' as typography;
|
|
3
3
|
@use '../settings/config';
|
|
4
4
|
@use '../settings/depth';
|
|
5
5
|
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
> p {
|
|
33
|
-
@include typography.
|
|
33
|
+
@include typography.body-regular-primary;
|
|
34
|
+
text-align: center;
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
}
|
package/src/atoms/Icon.scss
CHANGED
package/src/atoms/Icon.tsx
CHANGED
|
@@ -14,5 +14,9 @@ export const Icon: React.FC<IconProps> = ({ name, className, ...props }) => {
|
|
|
14
14
|
className,
|
|
15
15
|
name === 'Loading' ? 'rotate' : '',
|
|
16
16
|
].join(' ')
|
|
17
|
-
return
|
|
17
|
+
return (
|
|
18
|
+
<span role="img" title={name} className={cssClasses}>
|
|
19
|
+
{icons[name](props)}
|
|
20
|
+
</span>
|
|
21
|
+
)
|
|
18
22
|
}
|
package/src/atoms/Input.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use '../settings/color_alias';
|
|
2
|
-
@use '../settings/typography';
|
|
2
|
+
@use '../settings/typography/form' as typography;
|
|
3
3
|
@use '../settings/config';
|
|
4
4
|
|
|
5
5
|
.input-group {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
&:has(.input.invalid) {
|
|
15
15
|
& .input-help-text {
|
|
16
|
-
|
|
16
|
+
@include typography.form-help-text-error;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
@use '../settings/color_alias';
|
|
2
|
+
@use '../settings/typography/content' as typography;
|
|
3
|
+
@use '../settings/config';
|
|
4
|
+
@use '../settings/depth';
|
|
5
|
+
|
|
6
|
+
.modal-container {
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
|
|
10
|
+
.modal {
|
|
11
|
+
display: flex;
|
|
12
|
+
position: relative;
|
|
13
|
+
padding: config.$space-5x;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
align-items: flex-start;
|
|
16
|
+
gap: config.$space-2x;
|
|
17
|
+
flex-grow: 1;
|
|
18
|
+
border-radius: config.$corner-radius-xxs;
|
|
19
|
+
background: color_alias.$neutral-white;
|
|
20
|
+
max-width: 34.5rem;
|
|
21
|
+
z-index: depth.$z-modal;
|
|
22
|
+
box-shadow:
|
|
23
|
+
0px 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
24
|
+
0px 6px 16px 0px rgba(0, 0, 0, 0.08),
|
|
25
|
+
0px 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
26
|
+
|
|
27
|
+
.header {
|
|
28
|
+
display: flex;
|
|
29
|
+
gap: config.$space-2x;
|
|
30
|
+
align-items: center;
|
|
31
|
+
|
|
32
|
+
.icon {
|
|
33
|
+
width: config.$icon-size-5x;
|
|
34
|
+
height: config.$icon-size-5x;
|
|
35
|
+
> svg {
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 100%;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.title {
|
|
42
|
+
@include typography.h4;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.body {
|
|
47
|
+
@include typography.body-regular-primary;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.footer {
|
|
51
|
+
display: flex;
|
|
52
|
+
align-self: flex-end;
|
|
53
|
+
gap: config.$space-3x;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.info {
|
|
57
|
+
.header {
|
|
58
|
+
.icon {
|
|
59
|
+
> svg {
|
|
60
|
+
fill: color_alias.$info-color-1000;
|
|
61
|
+
path {
|
|
62
|
+
fill: color_alias.$info-color-1000;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.success {
|
|
70
|
+
.header {
|
|
71
|
+
.icon {
|
|
72
|
+
> svg {
|
|
73
|
+
fill: color_alias.$success-color-1000;
|
|
74
|
+
path {
|
|
75
|
+
fill: color_alias.$success-color-1000;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.warning {
|
|
83
|
+
.header {
|
|
84
|
+
.icon {
|
|
85
|
+
> svg {
|
|
86
|
+
fill: color_alias.$warning-color-1000;
|
|
87
|
+
path {
|
|
88
|
+
fill: color_alias.$warning-color-1000;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&.discard {
|
|
96
|
+
.header {
|
|
97
|
+
.icon {
|
|
98
|
+
> svg {
|
|
99
|
+
fill: color_alias.$warning-color-1000;
|
|
100
|
+
path {
|
|
101
|
+
fill: color_alias.$warning-color-1000;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&.error {
|
|
109
|
+
.header {
|
|
110
|
+
.icon {
|
|
111
|
+
> svg {
|
|
112
|
+
fill: color_alias.$error-color-1000;
|
|
113
|
+
path {
|
|
114
|
+
fill: color_alias.$error-color-1000;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
+ .backdrop {
|
|
122
|
+
position: fixed;
|
|
123
|
+
top: 0;
|
|
124
|
+
bottom: 0;
|
|
125
|
+
left: 0;
|
|
126
|
+
right: 0;
|
|
127
|
+
width: 100%;
|
|
128
|
+
height: 100%;
|
|
129
|
+
opacity: 0.4;
|
|
130
|
+
background: color_alias.$neutral-color-900;
|
|
131
|
+
z-index: depth.$z-modal-backdrop;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|