@elliemae/ds-basic 3.17.0-next.0 → 3.17.0-next.2

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.
@@ -26,7 +26,6 @@
26
26
  @import '../../ds-truncated-tooltip-text/src/DSTruncatedTooltipText';
27
27
  @import '../../ds-toolbar/src/DSToolbar';
28
28
  @import '../../ds-time-picker/src/DSTimePicker';
29
- @import '../../ds-toast/src/DSToast';
30
29
  @import '../../ds-spinner/src/DSSpinner';
31
30
  @import '../../ds-loading-indicator/src/DSLoadingIndicator';
32
31
  @import '../../ds-tooltip/src/v1/DSTooltip';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-basic",
3
- "version": "3.17.0-next.0",
3
+ "version": "3.17.0-next.2",
4
4
  "license": "MIT",
5
5
  "description": "EllieMae UI Design System Library",
6
6
  "files": [
@@ -1,389 +0,0 @@
1
- // ********************************************
2
- // container definition
3
- //$el-container: #{$prefix}-toast;
4
-
5
- $prefixCls: Toastify;
6
- $toast-container: #{$prefixCls}__toast-container;
7
- $toast-content: #{$prefix}-toast-content;
8
-
9
- // ********************************************
10
- // element definition
11
-
12
- $toast-el: #{$prefixCls}__toast;
13
- $toast-closeBtn: #{$prefixCls}__close-button;
14
- $toast-progressBar: #{$prefixCls}__progress-bar;
15
- $icon-message-el: #{$toast-content}__icon-message;
16
-
17
- // ********************************************
18
- // variables definition
19
-
20
- $toast-width: space(xxl) * 4.7;
21
- $min-height: space(xxl);
22
- $max-height: space(xxl) * 8;
23
- $container-opacity: 95%;
24
- $toast-mobile: "only screen and (max-width : 480px)" !default;
25
- $z-index: 9999;
26
-
27
- $defaultColor: color(neutral, 400);
28
- $infoColor: color(brand-primary, 400);
29
- $successColor: color(success, 900);
30
- $warningColor: color(warning, 900);
31
- $errorColor: color(danger, 900);
32
-
33
- $defaultColorLight: color(neutral, 300);
34
- $infoColorLight: color(brand-primary, 300);
35
- $successColorLight: color(success, 300);
36
- $warningColorLight: color(warning, 600);
37
- $errorColorLight: color(danger, 200);
38
-
39
- .#{$toast-container} {
40
- z-index: $z-index;
41
- position: fixed;
42
- width: $toast-width;
43
- box-sizing: border-box;
44
- color: #fff;
45
- &--top-left {
46
- top: 1em;
47
- left: 1em;
48
- }
49
- &--top-center {
50
- top: 1em;
51
- left: 50%;
52
- margin-left: -($toast-width / 2);
53
- }
54
- &--top-right {
55
- top: 1em;
56
- right: 1em;
57
- }
58
- &--bottom-left {
59
- bottom: 1em;
60
- left: 1em;
61
- }
62
- &--bottom-center {
63
- bottom: 1em;
64
- left: 50%;
65
- margin-left: -($toast-width / 2);
66
- }
67
- &--bottom-right {
68
- bottom: 1em;
69
- right: 1em;
70
- }
71
-
72
- .toast-close-button {
73
- position: absolute;
74
- top: 0;
75
- right: 0;
76
-
77
- &:focus {
78
- // fixes position relative applied to button on focus
79
- position: absolute !important;
80
- }
81
-
82
- @include icon-color(color(neutral, 300))
83
- }
84
-
85
-
86
- &:not(.with-progressbar) {
87
- .#{$toast-el} {
88
- &--default {
89
- border-color: $defaultColor;
90
- }
91
- &--info {
92
- border-color: $infoColor;
93
- }
94
- &--success {
95
- border-color: $successColor;
96
- }
97
- &--warning {
98
- border-color: $warningColor;
99
- }
100
- &--error {
101
- border-color: $errorColor;
102
- }
103
- }
104
- }
105
- &.with-progressbar {
106
- .#{$toast-el} {
107
- &--default {
108
- border-color: $defaultColorLight;
109
- }
110
- &--info {
111
- border-color: $infoColorLight;
112
- }
113
- &--success {
114
- border-color: $successColorLight;
115
- }
116
- &--warning {
117
- border-color: $warningColorLight;
118
- }
119
- &--error {
120
- border-color: $errorColorLight;
121
- }
122
- }
123
- }
124
- }
125
-
126
- @media #{$toast-mobile} {
127
- .#{$toast-container} {
128
- width: 100vw;
129
- padding: 0;
130
- left: 0;
131
- margin: 0;
132
- &--top-left,
133
- &--top-center,
134
- &--top-right {
135
- top: 0;
136
- }
137
- &--bottom-left,
138
- &--bottom-center,
139
- &--bottom-right {
140
- bottom: 0;
141
- }
142
- &--rtl{
143
- right: 0;
144
- left: initial;
145
- }
146
- }
147
- }
148
-
149
- .#{$toast-el} {
150
- position: relative;
151
- min-height: $min-height;
152
- box-sizing: border-box;
153
- margin-bottom: space(xs);
154
- border-radius: 1px;
155
- display: flex;
156
- justify-content: space-between;
157
- max-height: $max-height;
158
- cursor: pointer;
159
- direction: ltr;
160
- background-color: color(neutral, 000);
161
- border-left: space(xxs) solid;
162
- @include depth(100);
163
-
164
- &--default {
165
- .#{$icon-message-el} svg{
166
- @include icon-color($defaultColor);
167
- }
168
- }
169
- &--info {
170
- .#{$icon-message-el} svg{
171
- @include icon-color($infoColor);
172
- }
173
- }
174
- &--success {
175
- .#{$icon-message-el} svg{
176
- @include icon-color($successColor)
177
- }
178
- }
179
- &--warning {
180
- .#{$icon-message-el} svg{
181
- @include icon-color($warningColor);
182
- }
183
- }
184
- &--error {
185
- .#{$icon-message-el} svg{
186
- @include icon-color($errorColor);
187
- }
188
- }
189
-
190
- &--rtl {
191
- direction: rtl;
192
- }
193
- &-body {
194
- margin: auto 0;
195
- flex: 1;
196
- }
197
- }
198
-
199
- @media #{$toast-mobile} {
200
- .#{$toast-el} {
201
- margin-bottom: 0;
202
- }
203
- }
204
-
205
- .#{$toast-progressBar} {
206
- position: absolute;
207
- bottom: 0;
208
- left: space(xxs) * -1;
209
- width: space(xxs);
210
- height: 0;
211
- z-index: $z-index;
212
- opacity: 0.7;
213
- animation: #{$prefixCls}__trackProgress linear 1;
214
- background-color: color(brand-primary, 200);
215
-
216
- &--rtl {
217
- right: 0;
218
- left: initial;
219
- }
220
- &--default{
221
- background-color: $defaultColor;
222
- }
223
-
224
- &--info{
225
- background-color: $infoColor;
226
- }
227
- &--success{
228
- background-color: $successColor;
229
- }
230
- &--warning{
231
- background-color: $warningColor;
232
- }
233
- &--error{
234
- background-color: $errorColor;
235
- }
236
- }
237
-
238
- @keyframes #{$prefixCls}__trackProgress {
239
- 0%{
240
- height: 100%;
241
- }
242
- 100%{
243
- height: 0;
244
- }
245
- }
246
-
247
- .#{$toast-content} {
248
- display: flex;
249
- padding: space(xs);
250
- padding-right: 32px;
251
-
252
- &__message-content {
253
- flex: 1
254
- }
255
- &__icon-container {
256
- margin-right: space(xs);
257
- }
258
-
259
- &__message-header {
260
- color: color(neutral, 900);
261
- @include h5-text-style();
262
- font-weight: 600;
263
- display: block;
264
- margin-bottom: 8px;
265
- }
266
- &__message-text {
267
- color: color(neutral, 500);
268
- @include body-text-style()
269
- }
270
- }
271
-
272
-
273
- @mixin transform {
274
- transform: translate3d(0, 0, 0);
275
- }
276
-
277
- @keyframes #{$prefixCls}__slideInRight {
278
- from {
279
- transform: translate3d(110%, 0, 0);
280
- visibility: visible;
281
- }
282
- to {
283
- @include transform;
284
- }
285
- }
286
-
287
- @keyframes #{$prefixCls}__slideInLeft {
288
- from {
289
- transform: translate3d(-110%, 0, 0);
290
- visibility: visible;
291
- }
292
- to {
293
- @include transform;
294
- }
295
- }
296
-
297
- @keyframes #{$prefixCls}__slideInUp {
298
- from {
299
- transform: translate3d(0, 110%, 0);
300
- visibility: visible;
301
- }
302
- to {
303
- @include transform;
304
- }
305
- }
306
-
307
- @keyframes #{$prefixCls}__slideInDown {
308
- from {
309
- transform: translate3d(0, -110%, 0);
310
- visibility: visible;
311
- }
312
- to {
313
- @include transform;
314
- }
315
- }
316
-
317
- @keyframes #{$prefixCls}__slideOutRight {
318
- from {
319
- @include transform;
320
- }
321
- to {
322
- visibility: hidden;
323
- transform: translate3d(110%, 0, 0);
324
- }
325
- }
326
-
327
- @keyframes #{$prefixCls}__slideOutLeft {
328
- from {
329
- @include transform;
330
- }
331
- to {
332
- visibility: hidden;
333
- transform: translate3d(-110%, 0, 0);
334
- }
335
- }
336
-
337
- @keyframes #{$prefixCls}__slideOutDown {
338
- from {
339
- @include transform;
340
- }
341
- to {
342
- visibility: hidden;
343
- transform: translate3d(0, 500px, 0);
344
- }
345
- }
346
-
347
- @keyframes #{$prefixCls}__slideOutUp {
348
- from {
349
- @include transform;
350
- }
351
- to {
352
- visibility: hidden;
353
- transform: translate3d(0, -500px, 0);
354
- }
355
- }
356
-
357
- .#{$prefixCls}__slide-enter {
358
- &--top-left,
359
- &--bottom-left {
360
- animation-name: #{$prefixCls}__slideInLeft;
361
- }
362
- &--top-right,
363
- &--bottom-right {
364
- animation-name: #{$prefixCls}__slideInRight;
365
- }
366
- &--top-center {
367
- animation-name: #{$prefixCls}__slideInDown;
368
- }
369
- &--bottom-center {
370
- animation-name: #{$prefixCls}__slideInUp;
371
- }
372
- }
373
-
374
- .#{$prefixCls}__slide-exit {
375
- &--top-left,
376
- &--bottom-left {
377
- animation-name: #{$prefixCls}__slideOutLeft;
378
- }
379
- &--top-right,
380
- &--bottom-right {
381
- animation-name: #{$prefixCls}__slideOutRight;
382
- }
383
- &--top-center {
384
- animation-name: #{$prefixCls}__slideOutUp;
385
- }
386
- &--bottom-center {
387
- animation-name: #{$prefixCls}__slideOutDown;
388
- }
389
- }