@seamly/web-ui 21.0.5-beta.1 → 21.0.5-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamly/web-ui",
3
- "version": "21.0.5-beta.1",
3
+ "version": "21.0.5-beta.3",
4
4
  "main": "build/dist/lib/index.js",
5
5
  "types": "build/src/javascripts/index.d.ts",
6
6
  "module": "",
@@ -3,9 +3,45 @@
3
3
 
4
4
  // PARTS
5
5
  // ----
6
+ .#{$n}-input__checkbox {
7
+ margin-right: $spacer * 0.5;
8
+
9
+ &[aria-disabled='true'] {
10
+ opacity: 0.5;
11
+ }
12
+ }
13
+
6
14
  .#{$n}-label {
7
15
  display: block;
16
+ margin-bottom: $spacer * 0.25;
8
17
  color: $brand3;
9
18
  font-size: $fontsize-medium;
10
19
  font-weight: $fontweight-bold;
11
20
  }
21
+
22
+ .#{$n}-input__checkbox[aria-disabled='true'] + .#{$n}-label {
23
+ opacity: 0.5;
24
+ }
25
+
26
+ .#{$n}-input__select {
27
+ appearance: none;
28
+ width: 100%;
29
+ min-height: $buttonsize;
30
+ padding: $spacer * 0.5;
31
+ border: $thin-border solid $grey-b;
32
+ border-radius: $borderradius-small;
33
+ background-color: $white;
34
+ background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiPjxkZWZzLz48cGF0aCBmaWxsPSIjNEE0OEMxIiBkPSJNMi45OTgsNi41MDNjMC0wLjI0NywwLjA5MS0wLjQ5NCwwLjI3My0wLjY4N2MwLjM4LTAuNDAxLDEuMDEzLTAuNDE5LDEuNDE0LTAuMDRsMi41ODUsMi40NDYJYzAuMzk0LDAuMzczLDEuMDYsMC4zNzMsMS40NTQsMGwyLjU4Ni0yLjQ0NmMwLjQtMC4zNzksMS4wMzMtMC4zNjIsMS40MTMsMC4wNGMwLjM3OSwwLjQsMC4zNjIsMS4wMzQtMC4wMzksMS40MTRsLTIuNTg2LDIuNDQ2CWMtMS4xNTksMS4wOTYtMy4wNDMsMS4wOTYtNC4yMDMsMEwzLjMxLDcuMjI5QzMuMTAyLDcuMDMzLDIuOTk4LDYuNzY4LDIuOTk4LDYuNTAzeiIvPjwvc3ZnPg==');
35
+ background-repeat: no-repeat;
36
+ background-position: right $spacer * 0.5 top 50%;
37
+ background-size: $spacer * 0.75 auto;
38
+ color: $grey-e;
39
+ font-size: $fontsize-default;
40
+ resize: none;
41
+
42
+ &[aria-disabled='true'] {
43
+ border: $thin-border solid $grey-c;
44
+ background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiPjxkZWZzLz48cGF0aCBmaWxsPSIjYTNiNGJmIiBkPSJNMi45OTgsNi41MDNjMC0wLjI0NywwLjA5MS0wLjQ5NCwwLjI3My0wLjY4N2MwLjM4LTAuNDAxLDEuMDEzLTAuNDE5LDEuNDE0LTAuMDRsMi41ODUsMi40NDYJYzAuMzk0LDAuMzczLDEuMDYsMC4zNzMsMS40NTQsMGwyLjU4Ni0yLjQ0NmMwLjQtMC4zNzksMS4wMzMtMC4zNjIsMS40MTMsMC4wNGMwLjM3OSwwLjQsMC4zNjIsMS4wMzQtMC4wMzksMS40MTRsLTIuNTg2LDIuNDQ2CWMtMS4xNTksMS4wOTYtMy4wNDMsMS4wOTYtNC4yMDMsMEwzLjMxLDcuMjI5QzMuMTAyLDcuMDMzLDIuOTk4LDYuNzY4LDIuOTk4LDYuNTAzeiIvPjwvc3ZnPg==');
45
+ color: $grey-c;
46
+ }
47
+ }
@@ -1,16 +1,3 @@
1
- a,
2
- input,
3
- button {
4
- &:focus {
5
- outline: none;
6
- }
7
-
8
- &:focus-visible {
9
- outline: 1px dotted #212121;
10
- outline: 1px auto -webkit-focus-ring-color;
11
- }
12
- }
13
-
14
1
  .#{$n}-button {
15
2
  display: inline-block;
16
3
  margin: 0;
@@ -1,7 +1,10 @@
1
1
  .#{$n}-chat-status {
2
2
  display: flex;
3
- align-items: flex-start;
4
- gap: $spacer * 0.5;
3
+ z-index: 1;
4
+ top: $spacer;
5
+ right: 0;
6
+ left: 0;
7
+ align-items: center;
5
8
  width: 100%;
6
9
  min-height: $buttonsize;
7
10
  margin: $spacer;
@@ -11,31 +14,44 @@
11
14
  box-shadow: $boxshadow;
12
15
 
13
16
  &--condensed {
14
- align-items: center;
15
- padding: $spacer * 0.25 $spacer * 0.5 $spacer * 0.25 $spacer * 0.25;
17
+ padding: $spacer * 0.25;
18
+
19
+ .#{$n}-chat-status__title {
20
+ padding-left: $spacer * 0.25;
21
+ }
22
+
23
+ .#{$n}-chat-status__close {
24
+ min-height: $buttonsize-small;
25
+ padding-right: $spacer * 0.25;
26
+ }
16
27
  }
17
28
  }
18
29
 
19
- .#{$n}-chat--layout-window .#{$n}-chat-status {
20
- margin-right: $buttonsize + $spacer * 2;
30
+ .#{$n}-chat--layout-window {
31
+ .#{$n}-chat-status {
32
+ margin-right: $buttonsize + $spacer * 2;
33
+ }
21
34
  }
22
35
 
23
36
  .#{$n}-chat-status__body {
24
37
  display: flex;
25
- flex: 1 1 auto;
26
- flex-wrap: wrap;
27
- gap: $spacer * 0.5;
28
- align-items: center;
38
+ flex-direction: column;
39
+ flex-grow: 1;
40
+ align-items: flex-start;
29
41
  justify-content: flex-start;
30
42
  }
31
43
 
32
44
  .#{$n}-chat-status__title {
33
45
  display: flex;
34
- margin: 0;
46
+ margin: 0 $spacer * 0.5 0 0;
35
47
  color: $grey-e;
36
48
  font-size: $fontsize-medium;
37
49
  font-weight: $fontweight-bold;
38
50
  line-height: 1.25;
51
+
52
+ + .#{$n}-chat-status__button {
53
+ margin-top: $spacer * 0.5;
54
+ }
39
55
  }
40
56
 
41
57
  .#{$n}-chat-status .#{$n}-icon {
@@ -51,33 +67,28 @@
51
67
  min-height: $buttonsize-small;
52
68
  padding: $spacer * 0.25 $spacer * 0.5;
53
69
  color: $white;
54
- }
55
70
 
56
- .#{$n}-chat-status__button .#{$n}-icon {
57
- svg {
58
- width: 100%;
59
- height: 100%;
71
+ .#{$n}-icon {
72
+ margin-right: $spacer * 0.25;
73
+
74
+ svg {
75
+ width: 100%;
76
+ height: 100%;
60
77
 
61
- path {
62
- fill: $white;
78
+ path {
79
+ fill: $white;
80
+ }
63
81
  }
64
82
  }
65
83
  }
66
84
 
67
85
  .#{$n}-chat-status__close {
68
86
  display: inline-flex;
69
- flex: 0 0 auto;
87
+ align-self: flex-start;
70
88
  justify-content: center;
71
- min-width: $buttonsize-small - $spacer * 0.5;
72
89
  min-height: $buttonsize-small - $spacer * 0.5;
73
90
  color: $brand3;
74
91
 
75
- &:has(.#{$n}-icon) {
76
- flex: 0 0 $buttonsize-small - $spacer * 0.5;
77
- width: $buttonsize-small - $spacer * 0.5;
78
- padding: 0;
79
- }
80
-
81
92
  .#{$n}-icon {
82
93
  align-self: center;
83
94
  }
@@ -67,3 +67,36 @@
67
67
  }
68
68
  }
69
69
 
70
+ .#{$n}-unread-messages {
71
+ display: none;
72
+ position: absolute;
73
+ bottom: 0;
74
+ align-items: center;
75
+ justify-content: center;
76
+ margin: $spacer;
77
+ opacity: 0;
78
+
79
+ > .#{$n}-button {
80
+ display: flex;
81
+ align-items: center;
82
+
83
+ > .#{$n}-icon {
84
+ width: $spacer;
85
+ height: $spacer;
86
+ margin-left: calc($spacer / 2);
87
+
88
+ svg path {
89
+ fill: $white;
90
+ }
91
+ }
92
+ }
93
+ }
94
+
95
+ .#{$n}-unread-messages.#{$n}-transition--visible {
96
+ display: flex;
97
+ }
98
+
99
+ .#{$n}-unread-messages.#{$n}-transition--in {
100
+ transition: opacity $transition 1000ms;
101
+ opacity: 1;
102
+ }
@@ -238,7 +238,7 @@
238
238
  border-radius: $borderradius-small;
239
239
  font-size: $fontsize-default;
240
240
 
241
- &:focus-visible {
241
+ &:focus {
242
242
  border: $thin-border solid $grey-b;
243
243
  }
244
244
 
@@ -249,6 +249,11 @@
249
249
  }
250
250
  }
251
251
 
252
+ .#{$n}-options__active-language {
253
+ color: $grey-e;
254
+ font-size: $fontsize-medium;
255
+ }
256
+
252
257
  .#{$n}-options__actions {
253
258
  display: flex;
254
259
  flex: 0 0 auto;
@@ -14,9 +14,8 @@
14
14
  color: $white;
15
15
  font-size: $fontsize-small;
16
16
 
17
- &:focus-visible {
17
+ &:focus {
18
18
  transform: translate(-50%, 0%) scale(1);
19
- outline: none;
20
19
  opacity: 1;
21
20
  }
22
21
  }
@@ -84,9 +84,9 @@
84
84
  border-radius: $borderradius-small;
85
85
  }
86
86
 
87
- .#{$n}-file-upload.#{$n}-focus-within:has(.#{$n}-upload__input:focus-visible) {
87
+ .#{$n}-file-upload.#{$n}-focus-within {
88
88
  outline: 1px dotted #212121;
89
- outline: 1px auto -webkit-focus-ring-color;
89
+ outline: 5px auto -webkit-focus-ring-color;
90
90
  }
91
91
 
92
92
  // VISUALLY HIDDEN
@@ -13,7 +13,7 @@
13
13
  transition: fill $transition;
14
14
  }
15
15
 
16
- &:hover .#{$n}-icon svg path {
16
+ &:hover svg path {
17
17
  fill: $white;
18
18
  }
19
19
  }
@@ -77,19 +77,16 @@
77
77
  fill: $white;
78
78
  }
79
79
 
80
- .#{$n}-conversation__item--source-agent
81
- .#{$n}-download.#{$n}-download-link:hover
82
- .#{$n}-icon
83
- path {
84
- fill: $white;
85
- }
86
-
87
80
  .#{$n}-input__text {
88
81
  transition: padding $transition, border $transition;
89
82
 
90
83
  &:hover {
91
84
  border-color: $interaction-dark;
92
85
  }
86
+
87
+ &:focus {
88
+ border-color: transparent;
89
+ }
93
90
  }
94
91
 
95
92
  .#{$n}-input__submit:not([aria-disabled='true']):hover .#{$n}-icon path {
@@ -45,7 +45,6 @@
45
45
  @import '5-components/window-open-button';
46
46
  @import '5-components/pre-chat-messages';
47
47
  @import '5-components/unstarted';
48
- @import '5-components/unread-messages';
49
48
  }
50
49
 
51
50
  .#{$n}-app,
@@ -1,33 +0,0 @@
1
- .#{$n}-unread-messages {
2
- display: none;
3
- position: absolute;
4
- bottom: $spacer;
5
- align-items: center;
6
- justify-content: center;
7
- margin: 0;
8
- opacity: 0;
9
-
10
- &.#{$n}-transition--visible {
11
- display: flex;
12
- }
13
-
14
- &.#{$n}-transition--in {
15
- transition: opacity $transition 1s;
16
- opacity: 1;
17
- }
18
-
19
- .#{$n}-button {
20
- display: flex;
21
- align-items: center;
22
- gap: $spacer * 0.5;
23
- }
24
-
25
- .#{$n}-icon {
26
- width: $spacer;
27
- height: $spacer;
28
-
29
- svg path {
30
- fill: $white;
31
- }
32
- }
33
- }