@trilogy-ds/styles 0.0.2-beta-color → 0.0.2-fix-timepicker

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.
Files changed (30) hide show
  1. package/dist/default/assets/icons/all/arrow-high.svg +1 -0
  2. package/dist/default/assets/icons/all/clock.svg +1 -0
  3. package/dist/default/assets/icons/all/file-attached.svg +1 -0
  4. package/dist/default/assets/icons/all/micro.svg +1 -0
  5. package/dist/default/assets/icons/all/paperclip.svg +1 -0
  6. package/dist/default/trilogy-mangled.css +1 -1
  7. package/dist/default/trilogy-partials.css +1 -1
  8. package/dist/default/trilogy.css +1 -1
  9. package/framework/src/components/_accordion.scss +1 -9
  10. package/framework/src/components/_autocomplete.scss +5 -0
  11. package/framework/src/components/_autolayout.scss +6 -0
  12. package/framework/src/components/_box.scss +1 -1
  13. package/framework/src/components/_button.scss +7 -0
  14. package/framework/src/components/_card.scss +3 -3
  15. package/framework/src/components/_checkbox.scss +6 -4
  16. package/framework/src/components/_divider.scss +1 -0
  17. package/framework/src/components/_flex-box.scss +36 -25
  18. package/framework/src/components/_icon.scss +9 -8
  19. package/framework/src/components/_index.scss +3 -0
  20. package/framework/src/components/_link.scss +4 -0
  21. package/framework/src/components/_prompt.scss +156 -0
  22. package/framework/src/components/_radio.scss +8 -5
  23. package/framework/src/components/_stepper.scss +46 -9
  24. package/framework/src/components/_sticker.scss +14 -6
  25. package/framework/src/components/_table.scss +8 -8
  26. package/framework/src/components/_timepicker-circular.scss +88 -0
  27. package/framework/src/components/_timepicker.scss +79 -0
  28. package/framework/src/utilities/mixins/_mixins.scss +96 -18
  29. package/framework/src/utilities/variables/_color.scss +1 -0
  30. package/package.json +1 -1
@@ -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
  }
@@ -3,6 +3,10 @@
3
3
  .is-autocomplete-container {
4
4
  position: relative;
5
5
 
6
+ .field{
7
+ margin: 0!important;
8
+ }
9
+
6
10
  .is-autocomplete {
7
11
  .autocomplete-menu {
8
12
  display: none;
@@ -18,6 +22,7 @@
18
22
  overflow-y: auto;
19
23
  background-color: getColor('background');
20
24
  z-index: 10000;
25
+ margin-top: $spacing-2;
21
26
  }
22
27
 
23
28
  .autocomplete-item {
@@ -161,6 +161,9 @@ body:not(.is-tight) {
161
161
  .title.is-level-6 + .subtitle:not(.flex-box > .title.is-level-6 + .subtitle):not(:last-child) {
162
162
  margin-bottom: 12px;
163
163
  }
164
+ .is-autocomplete-container:not(.flex-box > .is-autocomplete-container):not(:last-child) {
165
+ margin-bottom: 24px;
166
+ }
164
167
  }
165
168
 
166
169
  @include mobile() {
@@ -327,6 +330,9 @@ body:not(.is-tight) {
327
330
  .title.is-level-6 + .subtitle:not(.flex-box > .title.is-level-6 + .subtitle):not(:last-child) {
328
331
  margin-bottom: 8px;
329
332
  }
333
+ .is-autocomplete-container:not(.flex-box > .is-autocomplete-container):not(:last-child) {
334
+ margin-bottom: 16px;
335
+ }
330
336
 
331
337
  }
332
338
  }
@@ -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,13 @@ $button-border-width: 2px !default;
68
68
  [aria-disabled=true] {
69
69
  pointer-events: none;
70
70
  }
71
+ &:has(.icon) {
72
+ gap: $spacing-2;
73
+ }
74
+
75
+ .icon {
76
+ width: auto;
77
+ }
71
78
 
72
79
  &.is-loading {
73
80
  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
  }
@@ -31,7 +31,8 @@
31
31
 
32
32
  .checkbox,
33
33
  .checkbox-tile {
34
- input:checked ~ label.checkbox-label {
34
+ input:checked ~ label.checkbox-label,
35
+ input:checked ~ .checkbox-container {
35
36
  &:before {
36
37
  background-color: getColor('main');
37
38
  }
@@ -44,7 +45,8 @@
44
45
  }
45
46
  }
46
47
 
47
- label.checkbox-label {
48
+ label.checkbox-label,
49
+ .checkbox-container {
48
50
  &:before,
49
51
  &:after {
50
52
  border-radius: var(--radius-small);
@@ -53,7 +55,8 @@
53
55
  }
54
56
 
55
57
  .checkbox-tile {
56
- input:checked ~ label.checkbox-label {
58
+ input:checked ~ label.checkbox-label,
59
+ input:checked ~ .checkbox-container {
57
60
  &:after {
58
61
  top: 15px;
59
62
  left: 15px;
@@ -68,4 +71,3 @@
68
71
  }
69
72
  }
70
73
  }
71
-
@@ -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
  }
@@ -830,11 +833,7 @@
830
833
  }
831
834
 
832
835
  &.is-gapless {
833
- gap: 0;
834
-
835
- > .flex-item {
836
- --ColumnGap: 1px;
837
- }
836
+ --ColumnGap: 0px;
838
837
  }
839
838
 
840
839
  $itemWidth: calc((100% / (var(--ColumnFraction))) - ((((var(--ColumnFraction)) - 1) / (var(--ColumnFraction))) * var(--ColumnGap)));
@@ -856,8 +855,10 @@
856
855
  );
857
856
 
858
857
  // SIZE
859
- .flex-item {
858
+ > .flex-item {
860
859
  flex-grow: 1;
860
+ flex-shrink: 1;
861
+ flex-basis: 0;
861
862
  &.is-narrow {
862
863
  flex: none;
863
864
  width: auto;
@@ -877,17 +878,27 @@
877
878
  }
878
879
  }
879
880
  }
881
+ &.is-mobile{
882
+ @each $key, $value in $itemSize {
883
+ > .flex-item.is-#{$key} {
884
+ flex: none;
885
+ --ColumnFraction: #{$value};
886
+ }
887
+ }
888
+ }
880
889
 
881
- @each $key, $value in $itemSize {
882
- .flex-item.is-#{$key} {
883
- flex: none;
884
- --ColumnFraction: #{$value};
890
+ @include tablet {
891
+ @each $key, $value in $itemSize {
892
+ > .flex-item.is-#{$key} {
893
+ flex: none;
894
+ --ColumnFraction: #{$value};
895
+ }
885
896
  }
886
897
  }
887
898
 
888
899
  @include mobile {
889
900
  @each $key, $value in $itemSize {
890
- .flex-item.is-#{$key}-mobile {
901
+ > .flex-item.is-#{$key}-mobile {
891
902
  flex: none;
892
903
  --ColumnFraction: #{$value};
893
904
  }
@@ -895,7 +906,7 @@
895
906
  }
896
907
  @include tablet {
897
908
  @each $key, $value in $itemSize {
898
- .flex-item.is-#{$key}-tablet {
909
+ > .flex-item.is-#{$key}-tablet {
899
910
  flex: none;
900
911
  --ColumnFraction: #{$value};
901
912
  }
@@ -903,7 +914,7 @@
903
914
  }
904
915
  @include touch {
905
916
  @each $key, $value in $itemSize {
906
- .flex-item.is-#{$key}-touch {
917
+ > .flex-item.is-#{$key}-touch {
907
918
  flex: none;
908
919
  --ColumnFraction: #{$value};
909
920
  }
@@ -911,7 +922,7 @@
911
922
  }
912
923
  @include desktop {
913
924
  @each $key, $value in $itemSize {
914
- .flex-item.is-#{$key}-desktop {
925
+ > .flex-item.is-#{$key}-desktop {
915
926
  flex: none;
916
927
  --ColumnFraction: #{$value};
917
928
  }
@@ -919,7 +930,7 @@
919
930
  }
920
931
  @include widescreen {
921
932
  @each $key, $value in $itemSize {
922
- .flex-item.is-#{$key}-widescreen {
933
+ > .flex-item.is-#{$key}-widescreen {
923
934
  flex: none;
924
935
  --ColumnFraction: #{$value};
925
936
  }
@@ -927,7 +938,7 @@
927
938
  }
928
939
  @include fullhd {
929
940
  @each $key, $value in $itemSize {
930
- .flex-item.is-#{$key}-fullhd {
941
+ > .flex-item.is-#{$key}-fullhd {
931
942
  flex: none;
932
943
  --ColumnFraction: #{$value};
933
944
  }
@@ -936,7 +947,7 @@
936
947
 
937
948
  @include container-mobile {
938
949
  @each $key, $value in $itemSize {
939
- .flex-item.is-#{$key}-mobile {
950
+ > .flex-item.is-#{$key}-mobile {
940
951
  flex: none;
941
952
  --ColumnFraction: #{$value};
942
953
  }
@@ -946,7 +957,7 @@
946
957
 
947
958
  @include container-tablet {
948
959
  @each $key, $value in $itemSize {
949
- .flex-item.is-#{$key}-tablet {
960
+ > .flex-item.is-#{$key}-tablet {
950
961
  flex: none;
951
962
  --ColumnFraction: #{$value};
952
963
  }
@@ -956,7 +967,7 @@
956
967
 
957
968
  @include container-touch {
958
969
  @each $key, $value in $itemSize {
959
- .flex-item.is-#{$key}-touch {
970
+ > .flex-item.is-#{$key}-touch {
960
971
  flex: none;
961
972
  --ColumnFraction: #{$value};
962
973
  }
@@ -966,7 +977,7 @@
966
977
 
967
978
  @include container-desktop {
968
979
  @each $key, $value in $itemSize {
969
- .flex-item.is-#{$key}-desktop {
980
+ > .flex-item.is-#{$key}-desktop {
970
981
  flex: none;
971
982
  --ColumnFraction: #{$value};
972
983
  }
@@ -976,7 +987,7 @@
976
987
 
977
988
  @include container-widescreen {
978
989
  @each $key, $value in $itemSize {
979
- .flex-item.is-#{$key}-widescreen {
990
+ > .flex-item.is-#{$key}-widescreen {
980
991
  flex: none;
981
992
  --ColumnFraction: #{$value};
982
993
  }
@@ -985,7 +996,7 @@
985
996
 
986
997
  @include container-fullhd {
987
998
  @each $key, $value in $itemSize {
988
- .flex-item.is-#{$key}-fullhd {
999
+ > .flex-item.is-#{$key}-fullhd {
989
1000
  flex: none;
990
1001
  --ColumnFraction: #{$value};
991
1002
  }
@@ -7,20 +7,20 @@ $icon-padding-default: 8px;
7
7
  $icon-dimensions-default: 15px;
8
8
 
9
9
  $size: (
10
- 'default': (
11
- container: 20px, icon:15px
10
+ 'smaller': (
11
+ container: 20px, icon:16px, radius: var(--radius-small)
12
12
  ),
13
13
  'small': (
14
- container: 32px, icon: 20px
14
+ container: 32px, icon: 20px, radius: var(--radius-small)
15
15
  ),
16
16
  'medium': (
17
- container: 48px, icon: 32px
17
+ container: 48px, icon: 32px, radius: var(--radius-medium)
18
18
  ),
19
19
  'large': (
20
- container: 66px, icon: 44px
20
+ container: 66px, icon: 44px, radius: var(--radius-medium)
21
21
  ),
22
22
  'huge': (
23
- container: 99px, icon: 66px
23
+ container: 99px, icon: 66px, radius: var(--radius-large)
24
24
  )
25
25
  );
26
26
 
@@ -31,7 +31,7 @@ $size: (
31
31
  font-size: inherit;
32
32
  width: 1.5em;
33
33
  height: 1.5em;
34
-
34
+ border-radius: var(--radius-small);
35
35
  [class^="tri-"],
36
36
  [class*=" tri-"] {
37
37
  &::before {
@@ -53,6 +53,7 @@ $size: (
53
53
  @each $name, $sizeConfig in $size {
54
54
  &.is-#{$name} {
55
55
  font-size: map.get($sizeConfig, 'icon');
56
+ border-radius: map.get($sizeConfig, 'radius');
56
57
  [class^="tri-picto-"],
57
58
  [class*=" tri-picto-"] {
58
59
  min-height: 1.5em !important;
@@ -91,7 +92,7 @@ $size: (
91
92
 
92
93
  &.is-stretched {
93
94
  transform: skewX(-#{$icon-stretching-level});
94
- border-top-right-radius: 9px;
95
+ border-radius: 0 9px 0 0;
95
96
  background-color: getColor('font');
96
97
 
97
98
  [class^="tri-"],
@@ -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'
@@ -2,6 +2,10 @@
2
2
  [disabled] {
3
3
  @include disabledRulesWithoutBG;
4
4
  }
5
+
6
+ &.is-small {
7
+ font-size: $size-6;
8
+ }
5
9
  }
6
10
 
7
11
  .link:not([disabled]) {
@@ -0,0 +1,156 @@
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=true] {
9
+ background-color: getColor('disabled-fade') !important;
10
+ border: 1px solid getColor('disabled');
11
+ }
12
+ * {
13
+ margin-bottom: 0px !important;
14
+ }
15
+ &:focus-within {
16
+ box-shadow: 0 0 0 2px currentColor;
17
+ }
18
+ &.is-disabled {
19
+ box-shadow: 0 0 0 1px getColor('disabled') !important;
20
+ }
21
+ &-textarea {
22
+ textarea {
23
+ outline: none !important;
24
+ border: 0px !important;
25
+ background-color: initial !important;
26
+ min-height: 20px !important;
27
+ max-height: 180px !important;
28
+ transition: height 0.1s ease;
29
+ padding: 16px !important;
30
+ height: auto;
31
+ resize: none;
32
+ }
33
+ }
34
+ &-files {
35
+ padding: 16px 16px 0px 16px !important;
36
+ margin:0 !important;
37
+ &-img {
38
+ border-radius: 8px;
39
+ }
40
+ &-file {
41
+ width: $height-prompt-item;
42
+ height: $height-prompt-item;
43
+ position: relative;
44
+ }
45
+ &-file-name {
46
+ white-space: nowrap;
47
+ overflow: hidden;
48
+ text-overflow: ellipsis;
49
+ }
50
+ &-doc {
51
+ width: fit-content;
52
+ max-width: 264px;
53
+ &-preview {
54
+ width: 40px;
55
+ height: 40px;
56
+ display: flex;
57
+ align-items: center;
58
+ justify-content: center;
59
+ box-shadow: none;
60
+ .box-content {
61
+ margin: 0px !important;
62
+ }
63
+ }
64
+
65
+ &-preview-content {
66
+ max-width: calc(100% - 56px);
67
+ }
68
+ &-card-content {
69
+ padding:8px !important
70
+ }
71
+ }
72
+ &-delete {
73
+ background-color: getColor('main-fade');
74
+ border-radius: 100px;
75
+ height: 20px;
76
+ width: 20px;
77
+ }
78
+ &-delete-img {
79
+ position: absolute;
80
+ top: 2px;
81
+ right: 2px;
82
+ }
83
+ }
84
+ &-toolbar {
85
+ display: flex;
86
+ gap: 16px;
87
+ padding: 0px 16px 16px 16px;
88
+ align-items: center;
89
+ justify-content: flex-end;
90
+ &-tools {
91
+ display: flex;
92
+ gap: 16px;
93
+ align-items: end;
94
+ margin-right: auto;
95
+ }
96
+ &-tool {
97
+ height: 36px;
98
+ select {
99
+ height: 36px;
100
+ border-width: 0px !important;
101
+ max-width: 180px;
102
+ &:focus {
103
+ padding-left: 16px !important;
104
+ }
105
+ @include mobile {
106
+ max-width: 110px;
107
+ }
108
+ }
109
+ .field .control::after {
110
+ right: 0px !important;
111
+ }
112
+ &.active {
113
+ background-color: getColor('main') !important;
114
+ .icon i {
115
+ background-color: getColor('background');
116
+ }
117
+ }
118
+ &[disabled], &.is-disabled {
119
+ background-color: getColor('disabled-fade') !important;
120
+ cursor: not-allowed;
121
+ }
122
+ }
123
+ &-tool.icon_only {
124
+ width: 36px !important;
125
+ }
126
+ &-microphone {
127
+ border-radius: 100px;
128
+ }
129
+ &-tool-submit.streaming {
130
+ padding: 0;
131
+ }
132
+ &-tool-submit:not(.active):not(:disabled) {
133
+ background-color: getColor('disabled-fade') !important;
134
+ &:hover {
135
+ filter: brightness(1) !important;
136
+ cursor: default !important;
137
+ }
138
+ i {
139
+ background-color: getColor('disabled') !important;
140
+ }
141
+ }
142
+ &-tool-submit:disabled {
143
+ background-color: getColor('disabled') !important;
144
+ i {
145
+ background-color: getColor('disabled-fade') !important;
146
+ }
147
+ }
148
+ }
149
+
150
+ &-stop_streaming {
151
+ background-color: getColor('background');
152
+ height: 16px;
153
+ width: 16px;
154
+ border-radius: 3px;
155
+ }
156
+ }
@@ -31,7 +31,8 @@
31
31
 
32
32
  .radio,
33
33
  .radio-tile {
34
- input:checked ~ label.radio-label {
34
+ input:checked ~ label.radio-label,
35
+ input:checked ~ .radio-container {
35
36
  cursor: default;
36
37
 
37
38
  &:after {
@@ -41,7 +42,8 @@
41
42
  }
42
43
  }
43
44
 
44
- label.radio-label {
45
+ label.radio-label,
46
+ .radio-container {
45
47
  &:before,
46
48
  &:after {
47
49
  border-radius: 9999px;
@@ -61,18 +63,19 @@
61
63
  @include hoverRules()
62
64
  }
63
65
  }
64
-
65
66
  }
66
67
 
67
68
  .radio-tile {
68
- input:checked ~ label.radio-label {
69
+ input:checked ~ label.radio-label,
70
+ input:checked ~ .radio-container {
69
71
  &:after {
70
72
  top: 18px;
71
73
  left: 18px;
72
74
  }
73
75
  }
74
76
 
75
- input:checked:disabled ~ label.radio-label {
77
+ input:checked:disabled ~ label.radio-label,
78
+ input:checked:disabled ~ .radio-container {
76
79
  &:after {
77
80
  background-color: getColor('neutral');
78
81
  top: 19px;
@@ -143,20 +143,36 @@
143
143
  font-weight: 400;
144
144
  font-size: 16px;
145
145
  line-height: 24px;
146
- padding-top: $spacing-2;
147
146
  gap: $spacing-1;
148
147
  .icon {
149
148
  font-size: 20px;
150
149
  height: auto;
151
150
  }
151
+ }
152
152
 
153
- @include touch {
154
- position: absolute;
155
- top: 10px;
156
- left: 0;
157
- }
153
+ .stepper-wrapper > .stepper-item > .step-label {
154
+ padding-top: $spacing-2;
155
+ @include touch {
156
+ position: absolute;
157
+ top: 10px;
158
+ left: 0;
159
+ }
158
160
  }
159
161
 
162
+ .stepper-container > .stepper-content > .step-label {
163
+ transition: opacity 0.3s ease-in-out;
164
+ animation: fadeInLabel 0.4s ease-out;
165
+ }
166
+
167
+ .stepper-content {
168
+ margin-bottom: $spacing-3 !important;
169
+ }
170
+
171
+ .stepper-steps {
172
+ margin-bottom: $spacing-2 !important;
173
+ }
174
+
175
+
160
176
  @include desktop {
161
177
  .step-count {
162
178
  display: none;
@@ -180,6 +196,20 @@
180
196
  display: none;
181
197
  }
182
198
  }
199
+
200
+ .stepper-container > .stepper-steps {
201
+ font-size: 12px !important;
202
+ line-height: 18px !important;
203
+ }
204
+
205
+ .stepper-container > .stepper-content > .step-label {
206
+ font-size: 14px !important;
207
+ line-height: 18px !important;
208
+ }
209
+
210
+ .stepper-container > .stepper-content > .icon {
211
+ font-size: 16px !important;
212
+ }
183
213
  }
184
214
 
185
215
  @include tablet-only {
@@ -194,9 +224,9 @@
194
224
 
195
225
  .stepper-item:not(.is-current) {
196
226
  display: flex;
197
-
227
+
198
228
  .step-label {
199
- display: none;
229
+ display: none;
200
230
  }
201
231
  }
202
232
  }
@@ -214,4 +244,11 @@
214
244
  }
215
245
  }
216
246
 
217
-
247
+ @keyframes fadeInLabel {
248
+ 0% {
249
+ opacity: 0;
250
+ }
251
+ 100% {
252
+ opacity: 1;
253
+ }
254
+ }