@trilogy-ds/styles 4.14.4 → 4.15.0-beta-1

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.
@@ -18,7 +18,7 @@
18
18
  flex-direction: column;
19
19
  background-color: getColor('background');
20
20
  font-size: $size-normal;
21
- border: var(--border);
21
+ border: 1px solid #{getColor('stroke-fade')};
22
22
  border-radius: var(--radius);
23
23
  margin: 8px 0;
24
24
  min-height: 56px;
@@ -132,13 +132,5 @@
132
132
  }
133
133
  }
134
134
  }
135
-
136
- .accordion-body {
137
- .accordion-content,
138
- p:last-child {
139
- margin-bottom: 0 !important;
140
- padding: 0 !important;
141
- }
142
- }
143
135
  }
144
136
  }
@@ -54,7 +54,7 @@ a.box {
54
54
 
55
55
  &.is-flat {
56
56
  box-shadow: none;
57
- border: var(--border);
57
+ border: 1px solid #{getColor('stroke-fade')};
58
58
 
59
59
  .box-header {
60
60
  margin-top: calc(var(--padding-box) * -1 - 1px);
@@ -68,6 +68,9 @@ $button-border-width: 2px !default;
68
68
  [aria-disabled=true] {
69
69
  pointer-events: none;
70
70
  }
71
+ .icon{
72
+ justify-content: start;
73
+ }
71
74
 
72
75
  &.is-loading {
73
76
  background-color: getColor('neutral');
@@ -67,7 +67,7 @@ $basis-values: (
67
67
 
68
68
  &.is-flat {
69
69
  box-shadow: none;
70
- border: var(--border);
70
+ border: 1px solid #{getColor('stroke-fade')};
71
71
 
72
72
  .card-content {
73
73
  padding-left: 20px;
@@ -112,7 +112,7 @@ $basis-values: (
112
112
  flex-basis: map-get($basis-values, 'is-#{$i}');
113
113
  }
114
114
  }
115
-
115
+
116
116
  .card-image {
117
117
  max-width: 100%;
118
118
 
@@ -236,7 +236,7 @@ $basis-values: (
236
236
  .card-image {
237
237
  order: 2;
238
238
  }
239
-
239
+
240
240
  .card-content {
241
241
  order: 1;
242
242
  }
@@ -55,8 +55,8 @@
55
55
  .checkbox-tile {
56
56
  input:checked ~ label.checkbox-label {
57
57
  &:after {
58
- top: 15px;
59
- left: 15px;
58
+ top: 16px;
59
+ left: 16px;
60
60
  }
61
61
  }
62
62
  }
@@ -3,6 +3,7 @@
3
3
  flex: 1;
4
4
  height: 1px;
5
5
  background-color: getColor('neutral');
6
+ border: 1px solid #{getColor('stroke-fade')};
6
7
  }
7
8
 
8
9
  .divider {
@@ -35,7 +35,10 @@
35
35
  }
36
36
 
37
37
  @include mobile {
38
- &:has(>.flex-item):not([class*='is-direction']) {
38
+ &:has(>.flex-item):not([class*='is-direction']):not(.is-mobile) {
39
+ flex-direction: column;
40
+ }
41
+ &:has(>.flex-item):not([class*='is-direction']):not(.is-mobile) {
39
42
  flex-direction: column;
40
43
  }
41
44
 
@@ -139,7 +142,7 @@
139
142
  }
140
143
 
141
144
  @include container-mobile {
142
- &:has(>.flex-item):not([class*='is-direction']) {
145
+ &:has(>.flex-item):not([class*='is-direction']):not(.is-mobile) {
143
146
  flex-direction: column;
144
147
  }
145
148
 
@@ -705,7 +708,7 @@
705
708
  margin-bottom: auto !important;
706
709
  }
707
710
 
708
- .flex-item {
711
+ > .flex-item {
709
712
  scroll-snap-align: center;
710
713
  }
711
714
  }
@@ -856,7 +859,7 @@
856
859
  );
857
860
 
858
861
  // SIZE
859
- .flex-item {
862
+ > .flex-item {
860
863
  flex-grow: 1;
861
864
  &.is-narrow {
862
865
  flex: none;
@@ -877,17 +880,27 @@
877
880
  }
878
881
  }
879
882
  }
883
+ &.is-mobile{
884
+ @each $key, $value in $itemSize {
885
+ > .flex-item.is-#{$key} {
886
+ flex: none;
887
+ --ColumnFraction: #{$value};
888
+ }
889
+ }
890
+ }
880
891
 
881
- @each $key, $value in $itemSize {
882
- .flex-item.is-#{$key} {
883
- flex: none;
884
- --ColumnFraction: #{$value};
892
+ @include tablet {
893
+ @each $key, $value in $itemSize {
894
+ > .flex-item.is-#{$key} {
895
+ flex: none;
896
+ --ColumnFraction: #{$value};
897
+ }
885
898
  }
886
899
  }
887
900
 
888
901
  @include mobile {
889
902
  @each $key, $value in $itemSize {
890
- .flex-item.is-#{$key}-mobile {
903
+ > .flex-item.is-#{$key}-mobile {
891
904
  flex: none;
892
905
  --ColumnFraction: #{$value};
893
906
  }
@@ -895,7 +908,7 @@
895
908
  }
896
909
  @include tablet {
897
910
  @each $key, $value in $itemSize {
898
- .flex-item.is-#{$key}-tablet {
911
+ > .flex-item.is-#{$key}-tablet {
899
912
  flex: none;
900
913
  --ColumnFraction: #{$value};
901
914
  }
@@ -903,7 +916,7 @@
903
916
  }
904
917
  @include touch {
905
918
  @each $key, $value in $itemSize {
906
- .flex-item.is-#{$key}-touch {
919
+ > .flex-item.is-#{$key}-touch {
907
920
  flex: none;
908
921
  --ColumnFraction: #{$value};
909
922
  }
@@ -911,7 +924,7 @@
911
924
  }
912
925
  @include desktop {
913
926
  @each $key, $value in $itemSize {
914
- .flex-item.is-#{$key}-desktop {
927
+ > .flex-item.is-#{$key}-desktop {
915
928
  flex: none;
916
929
  --ColumnFraction: #{$value};
917
930
  }
@@ -919,7 +932,7 @@
919
932
  }
920
933
  @include widescreen {
921
934
  @each $key, $value in $itemSize {
922
- .flex-item.is-#{$key}-widescreen {
935
+ > .flex-item.is-#{$key}-widescreen {
923
936
  flex: none;
924
937
  --ColumnFraction: #{$value};
925
938
  }
@@ -927,7 +940,7 @@
927
940
  }
928
941
  @include fullhd {
929
942
  @each $key, $value in $itemSize {
930
- .flex-item.is-#{$key}-fullhd {
943
+ > .flex-item.is-#{$key}-fullhd {
931
944
  flex: none;
932
945
  --ColumnFraction: #{$value};
933
946
  }
@@ -936,7 +949,7 @@
936
949
 
937
950
  @include container-mobile {
938
951
  @each $key, $value in $itemSize {
939
- .flex-item.is-#{$key}-mobile {
952
+ > .flex-item.is-#{$key}-mobile {
940
953
  flex: none;
941
954
  --ColumnFraction: #{$value};
942
955
  }
@@ -946,7 +959,7 @@
946
959
 
947
960
  @include container-tablet {
948
961
  @each $key, $value in $itemSize {
949
- .flex-item.is-#{$key}-tablet {
962
+ > .flex-item.is-#{$key}-tablet {
950
963
  flex: none;
951
964
  --ColumnFraction: #{$value};
952
965
  }
@@ -956,7 +969,7 @@
956
969
 
957
970
  @include container-touch {
958
971
  @each $key, $value in $itemSize {
959
- .flex-item.is-#{$key}-touch {
972
+ > .flex-item.is-#{$key}-touch {
960
973
  flex: none;
961
974
  --ColumnFraction: #{$value};
962
975
  }
@@ -966,7 +979,7 @@
966
979
 
967
980
  @include container-desktop {
968
981
  @each $key, $value in $itemSize {
969
- .flex-item.is-#{$key}-desktop {
982
+ > .flex-item.is-#{$key}-desktop {
970
983
  flex: none;
971
984
  --ColumnFraction: #{$value};
972
985
  }
@@ -976,7 +989,7 @@
976
989
 
977
990
  @include container-widescreen {
978
991
  @each $key, $value in $itemSize {
979
- .flex-item.is-#{$key}-widescreen {
992
+ > .flex-item.is-#{$key}-widescreen {
980
993
  flex: none;
981
994
  --ColumnFraction: #{$value};
982
995
  }
@@ -985,7 +998,7 @@
985
998
 
986
999
  @include container-fullhd {
987
1000
  @each $key, $value in $itemSize {
988
- .flex-item.is-#{$key}-fullhd {
1001
+ > .flex-item.is-#{$key}-fullhd {
989
1002
  flex: none;
990
1003
  --ColumnFraction: #{$value};
991
1004
  }
@@ -48,3 +48,6 @@
48
48
  @import 'textarea';
49
49
  @import 'timeline';
50
50
  @import 'title';
51
+ @import 'prompt';
52
+ @import 'timepicker-circular';
53
+ @import 'timepicker'
@@ -0,0 +1,143 @@
1
+ $height-prompt-item: 64px;
2
+
3
+ .prompt {
4
+ box-shadow: 0 0 0 1px var(--color-stroke);
5
+ border-radius: var(--radius-small);
6
+ overflow: hidden;
7
+ background-color: getColor('background');
8
+ &[aria-disabled] {
9
+ background-color: getColor('background') !important;
10
+ }
11
+ * {
12
+ margin-bottom: 0px !important;
13
+ }
14
+ &:focus-within {
15
+ box-shadow: 0 0 0 2px currentColor;
16
+ }
17
+ &.is-disabled {
18
+ box-shadow: 0 0 0 1px getColor('disabled') !important;
19
+ }
20
+ &-textarea {
21
+ textarea {
22
+ outline: none !important;
23
+ border: 0px !important;
24
+ background-color: initial !important;
25
+ min-height: 20px !important;
26
+ max-height: 180px !important;
27
+ transition: height 0.1s ease;
28
+ padding: 16px !important;
29
+ height: auto;
30
+ resize: none;
31
+ &[disabled] {
32
+ background-color: getColor('background') !important;
33
+ }
34
+ }
35
+ }
36
+ &-files {
37
+ padding: 16px 16px 0px 16px !important;
38
+ margin:0 !important;
39
+ &-img {
40
+ border-radius: 8px;
41
+ }
42
+ &-file {
43
+ width: $height-prompt-item;
44
+ height: $height-prompt-item;
45
+ position: relative;
46
+ }
47
+ &-file-name {
48
+ white-space: nowrap;
49
+ overflow: hidden;
50
+ text-overflow: ellipsis;
51
+ }
52
+ &-doc {
53
+ width: fit-content;
54
+ max-width: 264px;
55
+ &-preview {
56
+ width: 40px;
57
+ height: 40px;
58
+ display: flex;
59
+ align-items: center;
60
+ justify-content: center;
61
+ box-shadow: none;
62
+ .box-content {
63
+ margin: 0px !important;
64
+ }
65
+ }
66
+
67
+ &-preview-content {
68
+ max-width: calc(100% - 56px);
69
+ }
70
+ &-card-content {
71
+ padding:8px !important
72
+ }
73
+ }
74
+ &-delete {
75
+ background-color: getColor('main-fade');
76
+ border-radius: 100px;
77
+ height: 20px;
78
+ width: 20px;
79
+ }
80
+ &-delete-img {
81
+ position: absolute;
82
+ top: 2px;
83
+ right: 2px;
84
+ }
85
+ }
86
+ &-toolbar {
87
+ display: flex;
88
+ gap: 16px;
89
+ padding: 0px 16px 16px 16px;
90
+ align-items: center;
91
+ justify-content: flex-end;
92
+ &-tools {
93
+ display: flex;
94
+ gap: 16px;
95
+ align-items: end;
96
+ margin-right: auto;
97
+ }
98
+ &-tool {
99
+ height: 36px;
100
+ select {
101
+ height: 36px;
102
+ border-width: 0px !important;
103
+ max-width: 180px;
104
+ &:focus {
105
+ padding-left: 16px !important;
106
+ }
107
+ @include mobile {
108
+ max-width: 110px;
109
+ }
110
+ }
111
+ .field .control::after {
112
+ right: 0px !important;
113
+ }
114
+ &.active {
115
+ background-color: getColor('main') !important;
116
+ .icon i {
117
+ background-color: getColor('background');
118
+ }
119
+ }
120
+ &[disabled], &.is-disabled {
121
+ background-color: getColor('disabled-fade') !important;
122
+ cursor: not-allowed;
123
+ }
124
+ }
125
+ &-tool.icon_only {
126
+ width: 36px !important;
127
+ }
128
+ &-microphone {
129
+ border-radius: 100px;
130
+ }
131
+ &-tool-submit.streaming {
132
+ padding: 0;
133
+ }
134
+
135
+ }
136
+
137
+ &-stop_streaming {
138
+ background-color: getColor('background');
139
+ height: 16px;
140
+ width: 16px;
141
+ border-radius: 3px;
142
+ }
143
+ }
@@ -71,12 +71,8 @@
71
71
  left: 18px;
72
72
  }
73
73
  }
74
+ }
74
75
 
75
- input:checked:disabled ~ label.radio-label {
76
- &:after {
77
- background-color: getColor('neutral');
78
- top: 19px;
79
- left: 19px;
80
- }
81
- }
76
+ .radio-tile[aria-checked="true"] {
77
+ cursor: default;
82
78
  }
@@ -1,22 +1,18 @@
1
1
  @use "sass:math";
2
2
 
3
- .stepper-wrapper {
3
+ .stepper-items {
4
4
  display: flex;
5
5
  position: relative;
6
6
  justify-content: space-between;
7
7
  min-height: 44px;
8
- gap: $spacing-4;
9
-
10
- @include touch {
11
- gap : $spacing-2;
12
- }
8
+ gap: $spacing-2;
9
+ margin-top: $spacing-3;
13
10
  }
14
11
 
15
12
  .stepper-item {
16
13
  display: flex;
17
14
  flex-direction: column;
18
15
  width: 100%;
19
-
20
16
  &:before {
21
17
  content: "";
22
18
  display: block;
@@ -27,181 +23,65 @@
27
23
  }
28
24
 
29
25
  &.is-error {
30
-
31
26
  &:before {
32
27
  background-color: getColor('error') !important;
33
-
34
28
  }
29
+
35
30
  &.is-current{
36
31
  &:before{
37
32
  animation: progress 1s;
38
33
  }
39
-
40
- }
41
-
42
- .step-bars {
43
- background: getColor('error') !important;
44
- }
45
-
46
- color: getColor('font');
47
-
48
- .step-label {
49
-
50
- &::before {
51
- content: "";
52
- mask-image: url('./assets/icons/all/times.svg') !important;
53
- background-color: getColor('error') !important;
54
- border-width: 0;
55
- mask-size: 20px;
56
- width: 20px;
57
- height: 20px;
58
- align-self: baseline;
59
- margin-top: 2px;
60
- }
61
-
62
- .icon {
63
- display: none;
64
- }
65
34
  }
66
35
  }
67
36
 
68
37
  &.is-done {
69
-
70
38
  &:before {
71
39
  background-color: getColor('font');
72
40
  }
73
-
74
- .step-bars {
75
- background: getColor('font');
76
- transition: background-color 1s ease-in-out;
77
- }
78
-
79
- .step-label {
80
- &::before {
81
- content: "";
82
- mask-image: url('./assets/icons/all/check-circle.svg');
83
- background-color: getColor('success');
84
- border-width: 0;
85
- min-width: 20px;
86
- mask-size: 20px;
87
- height: 20px;
88
- align-self: baseline;
89
- margin-top: 2px;
90
- }
91
- }
92
41
  }
93
42
 
94
43
  &.is-current,
95
44
  &.is-active {
96
-
97
45
  &:before {
98
46
  background-color: getColor('main');
99
47
  animation: progress 1s;
100
48
  }
101
-
102
- .step-bars {
103
- background: getColor('main');
104
- }
105
-
106
- .step-label {
107
- font-style: normal;
108
- font-weight: 600;
109
- font-size: 20px;
110
- line-height: 22px;
111
- width: max-content;
112
-
113
- .icon [class^=tri-], .icon [class*=" tri-"] {
114
- height: 22px;
115
- width: 22px;
116
- margin: 0 4px 0 -4px;
117
- }
118
-
119
- @include tablet-only {
120
- width: 90% !important;
121
- }
122
-
123
- @include mobile {
124
- font-size: 18px;
125
- width: 90%;
126
- }
127
- }
128
49
  }
129
50
  }
130
51
 
131
- .step-bars {
132
- height: 4px;
133
- background: getColor('disabled');
134
- border-radius: var(--radius-small);
135
- display: none;
52
+ .step-count {
53
+ margin-bottom: $spacing-2 !important;
136
54
  }
137
55
 
138
56
  .step-label {
139
- display: flex;
140
- align-items: center;
141
- color: getColor('font');
142
- font-style: normal;
143
- font-weight: 400;
144
- font-size: 16px;
145
- line-height: 24px;
146
- padding-top: $spacing-2;
147
- gap: $spacing-1;
148
- .icon {
149
- font-size: 20px;
150
- height: auto;
151
- }
152
-
153
- @include touch {
154
- position: absolute;
155
- top: 10px;
156
- left: 0;
157
- }
57
+ transition: opacity 0.3s ease-in-out;
58
+ animation: fadeInLabel 0.4s ease-out;
158
59
  }
159
60
 
160
- @include desktop {
161
- .step-count {
162
- display: none;
163
- }
164
- }
165
-
166
- @include mobile {
167
- .step-count {
168
- position: absolute;
169
- top: 23px;
170
- right: 8px;
171
- font-size: 14px;
172
- line-height: 18px;
173
- font-weight: 600;
61
+ @keyframes fadeInLabel {
62
+ 0% {
63
+ opacity: 0;
174
64
  }
175
-
176
- .stepper-item:not(.is-current) {
177
- display: flex;
178
-
179
- .step-label {
180
- display: none;
181
- }
65
+ 100% {
66
+ opacity: 1;
182
67
  }
183
68
  }
184
69
 
185
- @include tablet-only {
70
+ @include mobile{
186
71
  .step-count {
187
- position: absolute;
188
- top: 24px;
189
- right: 8px;
190
- font-size: 14px;
191
- line-height: 18px;
192
- font-weight: 600;
72
+ font-size: 12px !important;
73
+ line-height: 18px !important;
74
+ }
75
+ .step-label {
76
+ font-size: 14px !important;
77
+ line-height: 18px !important;
193
78
  }
194
79
 
195
- .stepper-item:not(.is-current) {
196
- display: flex;
197
-
198
- .step-label {
199
- display: none;
200
- }
80
+ .stepper-wrapper .icon {
81
+ font-size: 16px !important;
201
82
  }
202
83
  }
203
84
 
204
-
205
85
  @keyframes progress {
206
86
  0%, 100% {
207
87
  background-image: linear-gradient(to right, transparent 0, transparent 50%, getColor('neutral') 50%, getColor('neutral') 100%);