@leapdev/gui 0.2.254 → 0.2.257

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.
@@ -1,70 +1,80 @@
1
- .toast {
2
- padding: 1rem 2rem !important;
3
- background-color: white !important;
4
- border-radius: var(--leap-border-radius) !important;
5
- border: 1px solid #ebebeb;
6
- margin-bottom: 0;
7
- box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.10) !important;
8
- transition: box-shadow 0.15s ease-in-out;
9
-
10
- @media screen and (min-width: 768px) {
11
- width: 20rem;
12
- }
13
-
14
- &:hover {
15
- box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.18) !important;
1
+ #toast-container {
2
+ .toast {
3
+ padding: 1.25rem 2.75rem 1.25rem 1.25rem;
4
+ background-color: white !important;
5
+ border-radius: var(--leap-border-radius) !important;
6
+ border: 1px solid #ebebeb;
7
+ margin-bottom: 0;
8
+ box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.10) !important;
16
9
  transition: box-shadow 0.15s ease-in-out;
17
- }
18
10
 
19
- > .toast-title {
20
- text-transform: uppercase;
21
- font-weight: 600;
22
- font-size: 1rem;
23
- }
11
+ @media screen and (min-width: 768px) {
12
+ width: 20rem;
13
+ }
24
14
 
25
- &.toast-success {
26
- >.toast-title {
27
- color: $primary;
15
+ &:hover {
16
+ box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.18) !important;
17
+ transition: box-shadow 0.15s ease-in-out;
28
18
  }
29
- >.toast-close-button {
30
- background-color: $primary;
31
- color: #fff;
32
- &:hover {
33
- background-color: darken($primary, 5%);
19
+
20
+ > .toast-title {
21
+ text-transform: uppercase;
22
+ font-weight: 600;
23
+ font-size: 1rem;
24
+ margin-bottom: 0.25rem;
25
+ }
26
+
27
+ &.toast-success {
28
+ >.toast-title {
29
+ color: $primary;
30
+ }
31
+ >.toast-close-button {
32
+ background-color: $primary;
33
+ color: #fff;
34
+ &:hover {
35
+ background-color: darken($primary, 5%);
36
+ }
34
37
  }
35
38
  }
36
- }
37
39
 
38
- &.toast-error {
39
- color: $danger !important;
40
+ &.toast-error {
41
+ color: $danger !important;
40
42
 
41
- > .toast-title {
42
-
43
- }
44
- >.toast-close-button {
45
- background-color: $danger;
46
- color: #fff;
43
+ // > .toast-title {}
44
+ >.toast-close-button {
45
+ background-color: $danger;
46
+ color: #fff;
47
47
 
48
- &:hover {
49
- background-color: darken($danger, 5%);
48
+ &:hover {
49
+ background-color: darken($danger, 5%);
50
+ }
50
51
  }
51
52
  }
52
- }
53
- }
54
53
 
55
- .toast-close-button {
56
- position: absolute;
57
- top: 1rem;
58
- right: 1rem;
59
- background-color: #f7f7f7;
60
- color: var(--leap-label-color);
61
- border-radius: var(--leap-border-radius);
62
- border: none;
63
- font-size: 1.4rem;
64
- line-height: 1;
65
- transition: all .15s ease-in-out;
54
+ .toast-message {
55
+ max-width: 12.5rem;
56
+ min-width: 12.5rem;
57
+ }
58
+
59
+ button.toast-close-button {
60
+ position: absolute;
61
+ top: 1rem;
62
+ right: 1rem;
63
+ background-color: #f7f7f7;
64
+ color: var(--leap-label-color);
65
+ border-radius: var(--leap-border-radius);
66
+ border: none;
67
+ font-size: 1.4rem !important;
68
+ font-weight: normal;
69
+ line-height: 1;
70
+ padding: 0.0625rem 0.375rem !important;
71
+ transition: all .15s ease-in-out;
72
+ opacity: 1;
66
73
 
67
- &:hover {
68
- transition: all .15s ease-in-out;
74
+ &:hover {
75
+ transition: all .15s ease-in-out;
76
+ opacity: 1;
77
+ }
78
+ }
69
79
  }
70
80
  }
@@ -36,6 +36,14 @@
36
36
  background-color: var(--leap-input-disabled-background);
37
37
  border-color: var(--leap-input-disabled-border);
38
38
  }
39
+
40
+ &.has-error {
41
+ border-color: $danger;
42
+
43
+ &:focus {
44
+ box-shadow: var(--leap-input-box-shadow-error);
45
+ }
46
+ }
39
47
  }
40
48
 
41
49
  .form-control {
@@ -49,6 +49,7 @@ $custom-select-chevron: str-replace(url("data:image/svg+xml,%3Cs
49
49
  --leap-input-focus-border-color: #0078d7;
50
50
  --leap-input-placeholder-color: #6c757d;
51
51
  --leap-input-box-shadow: none;
52
+ --leap-input-box-shadow-error: none;
52
53
  --leap-input-addon-padding: 0 0.4375rem;
53
54
 
54
55
  --leap-select-padding-y: 0.125rem;
@@ -52,6 +52,7 @@ $custom-select-chevron: str-replace(url("data:image/svg+xml,%3cs
52
52
  --leap-input-focus-border-color: #1E365E;
53
53
  --leap-input-placeholder-color: #717880;
54
54
  --leap-input-box-shadow: inset 0 0 0 rgb(19 19 19 / 0%), 0 0 0 0.15rem #cdd3dc;
55
+ --leap-input-box-shadow-error: inset 0 0 0 #BE332A, 0 0 0 0.15rem rgba(190, 51, 42, 0.2);
55
56
  --leap-input-addon-padding: 0.375rem 1rem;
56
57
 
57
58
  --leap-select-padding-y: 0.125rem;
@@ -48,6 +48,7 @@ $custom-select-chevron: str-replace(url("data:image/svg+xml,%3Cs
48
48
  --leap-input-focus-border-color: #0078d7;
49
49
  --leap-input-placeholder-color: #6c757d;
50
50
  --leap-input-box-shadow: none;
51
+ --leap-input-box-shadow-error: none;
51
52
  --leap-input-addon-padding: 0 0.4375rem;
52
53
 
53
54
  --leap-select-padding-y: 0.125rem;
@@ -13,7 +13,7 @@ html {
13
13
  padding-right: 1rem;
14
14
 
15
15
  @media screen and (min-height: 850px) {
16
- background-image: url(/img/auth-bg.png);
16
+ background-image: url(/img/auth-bg.png), url('https://unpkg.com/@leapdev/gui@0.2.254/dist/images/leap-auth/auth-bg.png');
17
17
  background-position: bottom left;
18
18
  background-repeat: no-repeat;
19
19
  background-size: 1194px;
@@ -128,6 +128,7 @@ html {
128
128
  display: block;
129
129
  font-weight: 600;
130
130
  font-size: 0.875rem;
131
+ font-style: normal;
131
132
  text-align: center;
132
133
  width: $or-dim;
133
134
  height: $or-dim;
@@ -145,31 +146,6 @@ html {
145
146
  }
146
147
  }
147
148
 
148
- &_btn_microsoft {
149
- display: flex;
150
- justify-content: center;
151
- align-items: center;
152
- }
153
-
154
- $icon_microsoft_dimension: 1.25rem;
155
- &_icon_microsoft {
156
- width: $icon_microsoft_dimension;
157
- height: $icon_microsoft_dimension;
158
- margin-top: -0.0625rem;
159
- margin-right: 0.5rem;
160
- $microsoft-icon: str-replace(url("data:image/svg+xml,%3Csvg width='20' height='21' viewBox='0 0 20 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_2_21)'%3E%3Cpath d='M0 0.125H20V20.125H0V0.125Z' fill='%23F3F3F3'/%3E%3Cpath d='M0.869568 0.994564H9.56522V9.69022H0.869568V0.994564Z' fill='%23F35325'/%3E%3Cpath d='M10.4348 0.994564H19.1304V9.69022H10.4348V0.994564Z' fill='%2381BC06'/%3E%3Cpath d='M0.869568 10.5598H9.56522V19.2554H0.869568V10.5598Z' fill='%2305A6F0'/%3E%3Cpath d='M10.4348 10.5598H19.1304V19.2554H10.4348V10.5598Z' fill='%23FFBA08'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_2_21'%3E%3Crect width='20' height='20' fill='white' transform='translate(0 0.125)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A"), "#", "%23");
161
- &::before {
162
- width: $icon_microsoft_dimension;
163
- height: $icon_microsoft_dimension;
164
- display: inline-block;
165
- background-repeat: no-repeat;
166
- background-size: 100%;
167
- content: '';
168
- background-image: $microsoft-icon;
169
-
170
- }
171
- }
172
-
173
149
  &_permissions, &_codes {
174
150
  padding-top: 0.25rem;
175
151
  padding-right: 0.25rem;
@@ -311,11 +287,9 @@ html {
311
287
  }
312
288
  }
313
289
 
314
- // @media screen and (min-width: 577px) {
315
- &_support_tabcontent {
316
- min-height: 21.5rem;
317
- }
318
- // }
290
+ &_support_tabcontent {
291
+ min-height: 21.5rem;
292
+ }
319
293
 
320
294
  &_firm_id {
321
295
  position: relative;
@@ -370,8 +344,8 @@ html {
370
344
  }
371
345
 
372
346
  &_validation_message {
373
- margin: -0.5rem 0 var(--leap-form-group-margin) 0;
374
347
  & > summary {
348
+ pointer-events: none;
375
349
  display: flex;
376
350
  align-items: center;
377
351
  gap: 0.25rem;
@@ -386,13 +360,9 @@ html {
386
360
  font-size: 1rem;
387
361
  }
388
362
  &:hover {
389
- text-decoration: underline;
363
+ cursor: pointer;
390
364
  }
391
365
  }
392
- &[closed] {
393
- }
394
- &[open] {
395
- }
396
366
  > ul {
397
367
  border-radius: var(--leap-border-radius);
398
368
  background-color: #f7f7f7;
@@ -413,6 +383,52 @@ html {
413
383
  top: calc(50% - 0.1875rem);
414
384
  left: 0;
415
385
  }
386
+
387
+ &.text-green {
388
+ color: $success;
389
+ &::before {
390
+ content: '';
391
+ width: 1rem;
392
+ height: 1rem;
393
+ background-size: contain;
394
+ background-color: transparent;
395
+ top: 0.1875rem;
396
+ left: -0.3125rem;
397
+ background-image: str-replace(url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' fill='#{$success}' viewBox='0 0 96 96'%3E%3Cpath d='M4,48 C4,23.699471 23.699471,4 48,4 C72.300529,4 92,23.699471 92,48 C92,72.300529 72.300529,92 48,92 C23.699471,92 4,72.300529 4,48 Z M40.9289322,54.8994949 L31.0294373,45 L23.9583694,52.0710678 L40.9289322,69.0416306 L72.0416306,37.9289322 L64.9705627,30.8578644 L40.9289322,54.8994949 Z'/%3E%3C/svg%3E"), '#', '%23');
398
+ }
399
+ }
400
+ }
401
+ }
402
+ }
403
+
404
+ &_signin_methods {
405
+ > .auth_btn {
406
+ display: flex;
407
+ align-items: center;
408
+ justify-content: center;
409
+ text-transform: none;
410
+
411
+ > span {
412
+ width: calc(100% - 3rem);
413
+ text-align: center;
414
+ display: flex;
415
+ justify-content: center;
416
+ }
417
+ }
418
+ @media screen and (min-width: 480px) {
419
+ display: grid;
420
+ grid-template-columns: 1fr;
421
+ grid-template-rows: 1fr;
422
+ gap: 0.5rem;
423
+
424
+ >.auth_btn {
425
+ margin: 0;
426
+ display: flex;
427
+ justify-content: stretch;
428
+ align-items: center;
429
+ text-align: left;
430
+ line-height: 1.4;
431
+ padding: 0 1rem;
416
432
  }
417
433
  }
418
434
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leapdev/gui",
3
- "version": "0.2.254",
3
+ "version": "0.2.257",
4
4
  "description": "LEAP GUI",
5
5
  "author": "LEAP Dev",
6
6
  "license": "ISC",