@trilogy-ds/styles 0.0.3-beta-v4 → 0.0.3-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 (113) hide show
  1. package/dist/default/assets/icons/all/arrow-high.svg +1 -0
  2. package/dist/default/assets/icons/all/calendar.svg +1 -0
  3. package/dist/default/assets/icons/all/clock.svg +1 -0
  4. package/dist/default/assets/icons/all/file-attached.svg +1 -0
  5. package/dist/default/assets/icons/all/micro.svg +1 -0
  6. package/dist/default/assets/icons/all/paperclip.svg +1 -0
  7. package/dist/default/trilogy-mangled.css +1 -1
  8. package/dist/default/trilogy-partials.css +1 -1
  9. package/dist/default/trilogy.css +1 -1
  10. package/framework/src/_all.scss +2 -2
  11. package/framework/src/base/_all.scss +0 -1
  12. package/framework/src/base/_color.scss +0 -21
  13. package/framework/src/base/_elements.scss +1 -1
  14. package/framework/src/base/_generic.scss +5 -0
  15. package/framework/src/base/_helpers.scss +21 -6
  16. package/framework/src/base/_loading.scss +2 -2
  17. package/framework/src/base/_reset.scss +6 -1
  18. package/framework/src/components/_accordion.scss +5 -12
  19. package/framework/src/components/_autocomplete.scss +43 -0
  20. package/framework/src/components/_autolayout.scss +145 -109
  21. package/framework/src/{elements → components}/_badge.scss +1 -1
  22. package/framework/src/{elements → components}/_box.scss +10 -12
  23. package/framework/src/components/_breadcrumb.scss +17 -31
  24. package/framework/src/{elements → components}/_button.scss +23 -3
  25. package/framework/src/components/_calendar.scss +129 -0
  26. package/framework/src/components/_card.scss +26 -9
  27. package/framework/src/components/_checkbox.scss +73 -0
  28. package/framework/src/{elements → components}/_container.scss +0 -7
  29. package/framework/src/components/_countdown.scss +1 -1
  30. package/framework/src/components/_date-picker.scss +58 -0
  31. package/framework/src/components/_divider.scss +44 -4
  32. package/framework/src/components/_dropdown.scss +195 -0
  33. package/framework/src/components/_flex-box.scss +1005 -0
  34. package/framework/src/{elements → components}/_icon.scss +9 -8
  35. package/framework/src/components/_index.scss +53 -0
  36. package/framework/src/{elements → components}/_link.scss +13 -3
  37. package/framework/src/components/_list.scss +66 -0
  38. package/framework/src/components/_modal.scss +32 -11
  39. package/framework/src/components/_otp.scss +2 -2
  40. package/framework/src/components/_pagination.scss +5 -2
  41. package/framework/src/components/_price.scss +28 -2
  42. package/framework/src/components/_prompt.scss +156 -0
  43. package/framework/src/{elements → components}/_radio.scss +12 -8
  44. package/framework/src/components/_segmented-control.scss +9 -5
  45. package/framework/src/components/_select.scss +131 -0
  46. package/framework/src/components/_stepper.scss +47 -10
  47. package/framework/src/{elements → components}/_sticker.scss +24 -4
  48. package/framework/src/{elements → components}/_switch.scss +13 -8
  49. package/framework/src/{elements → components}/_table.scss +9 -10
  50. package/framework/src/components/_tabs.scss +79 -28
  51. package/framework/src/{elements → components}/_tag.scss +1 -17
  52. package/framework/src/{elements/_paragraph.scss → components/_text.scss} +1 -13
  53. package/framework/src/components/_textarea.scss +46 -0
  54. package/framework/src/components/_timeline.scss +1 -1
  55. package/framework/src/components/_timepicker-circular.scss +88 -0
  56. package/framework/src/components/_timepicker.scss +79 -0
  57. package/framework/src/{elements → components}/_title.scss +10 -0
  58. package/framework/src/{elements → components/alert}/_alert.scss +2 -2
  59. package/framework/src/components/alert/_index.scss +2 -0
  60. package/framework/src/{elements → components/alert}/_toaster.scss +0 -3
  61. package/framework/src/{elements → components/input}/_entry.scss +48 -10
  62. package/framework/src/{elements → components/input}/_form.scss +18 -12
  63. package/framework/src/components/input/_index.scss +4 -0
  64. package/framework/src/{elements → components/input}/_input-gauge.scss +8 -0
  65. package/framework/src/{elements → components/input}/_input-icons.scss +14 -2
  66. package/framework/src/components/progress/_index.scss +2 -0
  67. package/framework/src/components/{_progress-radial.scss → progress/_progress-radial.scss} +1 -1
  68. package/framework/src/{elements → components/progress}/_progress.scss +2 -4
  69. package/framework/src/elements/_index.scss +5 -0
  70. package/framework/src/elements/_other.scss +0 -4
  71. package/framework/src/grid/_columns.scss +33 -11
  72. package/framework/src/layout/_hero.scss +4 -0
  73. package/framework/src/layout/_section.scss +5 -0
  74. package/framework/src/theming/buttons_partial.scss +2 -2
  75. package/framework/src/theming/common_partials.scss +1 -1
  76. package/framework/src/trilogy-mangled.scss +3 -3
  77. package/framework/src/trilogy.scss +3 -2
  78. package/framework/src/utilities/_background.scss +3 -1
  79. package/framework/src/utilities/_derived-variables.scss +0 -92
  80. package/framework/src/utilities/_initial-variables.scss +3 -111
  81. package/framework/src/utilities/_pre.scss +3 -1
  82. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  83. package/framework/src/utilities/mixins/_delete.scss +86 -0
  84. package/framework/src/utilities/mixins/_index.scss +11 -0
  85. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  86. package/framework/src/utilities/mixins/_mixins.scss +372 -0
  87. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  88. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  89. package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
  90. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  91. package/framework/src/utilities/mixins/_state.scss +25 -0
  92. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  93. package/framework/src/utilities/mixins/_utils.scss +24 -0
  94. package/framework/src/utilities/variables/_animation.scss +2 -0
  95. package/framework/src/utilities/{_colors.scss → variables/_color.scss} +46 -0
  96. package/framework/src/utilities/variables/_font.scss +97 -0
  97. package/framework/src/utilities/variables/_index.scss +6 -0
  98. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  99. package/framework/src/utilities/variables/_shadow.scss +3 -0
  100. package/framework/src/utilities/variables/_zindex.scss +14 -0
  101. package/package.json +6 -1
  102. package/framework/src/components/_all.scss +0 -24
  103. package/framework/src/elements/_all.scss +0 -32
  104. package/framework/src/elements/_autocomplete.scss +0 -32
  105. package/framework/src/elements/_checkbox.scss +0 -42
  106. package/framework/src/elements/_list.scss +0 -62
  107. package/framework/src/elements/_select.scss +0 -96
  108. package/framework/src/elements/_textarea.scss +0 -133
  109. package/framework/src/utilities/_mixins.scss +0 -635
  110. /package/framework/src/{elements → components}/_chips.scss +0 -0
  111. /package/framework/src/{elements → components}/_image.scss +0 -0
  112. /package/framework/src/{elements → components}/_loader.scss +0 -0
  113. /package/framework/src/{components → elements}/_plus-symbol.scss +0 -0
@@ -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-"],
@@ -0,0 +1,53 @@
1
+ @charset "utf-8";
2
+ @import '../utilities/spacing';
3
+
4
+ @import 'accordion';
5
+ @import 'alert';
6
+ @import 'autocomplete';
7
+ @import 'autolayout';
8
+ @import 'badge';
9
+ @import 'box';
10
+ @import 'breadcrumb';
11
+ @import 'button';
12
+ @import 'calendar';
13
+ @import 'card';
14
+ @import 'checkbox';
15
+ @import 'chips';
16
+ @import 'container';
17
+ @import 'countdown';
18
+ @import 'date-picker';
19
+ @import 'dropdown';
20
+ @import 'divider';
21
+ @import 'fab';
22
+ @import 'flex-box';
23
+ @import 'icon';
24
+ @import 'image';
25
+ @import 'input';
26
+ @import 'link';
27
+ @import 'list';
28
+ @import 'loader';
29
+ @import 'modal';
30
+ @import 'otp';
31
+ @import 'pagination';
32
+ @import 'popover';
33
+ @import 'price';
34
+ @import 'product-tour';
35
+ @import 'progress';
36
+ @import 'radio';
37
+ @import 'range';
38
+ @import 'scroll-view';
39
+ @import 'segmented-control';
40
+ @import 'select';
41
+ @import 'stepper';
42
+ @import 'sticker';
43
+ @import 'switch';
44
+ @import 'table';
45
+ @import 'tabs';
46
+ @import 'tag';
47
+ @import 'text';
48
+ @import 'textarea';
49
+ @import 'timeline';
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]) {
@@ -11,18 +15,23 @@
11
15
  font-weight: $weight-normal;
12
16
  color: getColor($link-colors);
13
17
  box-decoration-break: clone;
14
- text-decoration: underline 2px solid;
18
+ text-decoration: underline;
19
+ text-decoration-thickness : 2px;
15
20
  text-underline-offset: 4px;
16
21
  cursor: pointer;
17
22
 
18
23
  &.has-icon {
19
- display: inline-flex;
24
+ display: inline-block;
20
25
  align-items: center;
21
26
 
22
27
  &::after {
23
28
  width: calc(100% - 48px);
24
29
  bottom: 5.5px;
25
30
  }
31
+
32
+ .icon {
33
+ vertical-align: middle;
34
+ }
26
35
  }
27
36
 
28
37
  &.is-inverted {
@@ -44,7 +53,8 @@
44
53
 
45
54
  .text .link:not([disabled]) {
46
55
  text-underline-offset: 2px;
47
- text-decoration: underline 1px solid;
56
+ text-decoration: underline;
57
+ text-decoration-thickness : 1px;
48
58
  &:hover {
49
59
  font-weight: $weight-normal;
50
60
  filter: brightness(0.8);
@@ -0,0 +1,66 @@
1
+ // Bullet list classiques
2
+ ol.list {
3
+ counter-reset: customCounter;
4
+
5
+ & > li.list-item {
6
+ counter-increment: customCounter;
7
+ &:not(:has(.icon)) {
8
+ &::before{
9
+ content: counter(customCounter) ". ";
10
+ margin-right:$spacing-4;
11
+ font-weight: $weight-bold;
12
+ font-size: $text-14 !important;
13
+ font-family: $family-secondary;
14
+ line-height: 1.5 !important;
15
+
16
+ }
17
+ }
18
+ }
19
+ }
20
+
21
+ ul.list {
22
+ li.list-item {
23
+ &:not(:has(.icon)) {
24
+ &::before{
25
+ content:'.';
26
+ margin-right:$spacing-4;
27
+ font-weight: 900;
28
+ font-size: $text-24;
29
+ line-height: 8px;
30
+ }
31
+ }
32
+ }
33
+ }
34
+
35
+ ul.list,
36
+ ol.list {
37
+ display: grid;
38
+ row-gap: $spacing-3;
39
+
40
+ li.list-item {
41
+ display: flex;
42
+ &:has(.icon) {
43
+ list-style: none;
44
+ display: flex;
45
+ }
46
+ .icon {
47
+ margin-right: $spacing-2;
48
+ justify-content: flex-start;
49
+ align-items: flex-start;
50
+ }
51
+ .list-item-content {
52
+ flex: 1;
53
+ }
54
+ }
55
+
56
+ &.has-divider {
57
+ li {
58
+ border-bottom: var(--border);
59
+ padding-bottom: $spacing-3;
60
+ &:last-child {
61
+ border-bottom: none;
62
+ padding-bottom: 0;
63
+ }
64
+ }
65
+ }
66
+ }
@@ -48,13 +48,12 @@ body:has(.modal.is-active) {
48
48
  }
49
49
  }
50
50
 
51
- // gestion des tailles
52
51
  @include tablet {
53
52
  justify-content: center;
54
- @each $dimension in $dimensions-extended {
55
- &.is-#{$dimension} {
53
+ @each $name, $dimension in $modal-dimensions {
54
+ &.is-#{$name} {
56
55
  .modal-content {
57
- width: map-get($modal-dimensions, $dimension);
56
+ width: $dimension;
58
57
  }
59
58
  }
60
59
  }
@@ -76,7 +75,7 @@ body:has(.modal.is-active) {
76
75
  width: 100%;
77
76
  z-index: zindex('tiny');
78
77
  transition: transform ease-in-out 250ms;
79
- transform: translateY(100%);
78
+ transform: translateY(50%);
80
79
 
81
80
  @include tablet {
82
81
  max-height: calc(100vh - 120px);
@@ -110,20 +109,23 @@ body:has(.modal.is-active) {
110
109
  .modal-header {
111
110
  padding: $spacing-5;
112
111
  color: getColor('font');
113
- font-family: $family-sans-serif;
112
+ font-family: $family-primary;
114
113
  font-size: $size-3;
115
114
  font-weight: $weight-semibold;
116
115
  line-height: 1.1;
117
116
  background-color: getColor('background');
118
- z-index: zindex('small');
117
+ z-index: zindex('medium');
119
118
  position: sticky;
120
119
  top: 0;
121
120
  width: 100%;
122
121
  word-wrap: break-word;
123
122
  display: flex;
124
- flex-direction: row-reverse;
125
123
  justify-content: space-between;
126
124
 
125
+ &:has(.modal-close) {
126
+ flex-direction: row-reverse;
127
+ }
128
+
127
129
  &:has(.icon) {
128
130
  text-align: center;
129
131
  }
@@ -139,7 +141,7 @@ body:has(.modal.is-active) {
139
141
  display: block;
140
142
  height: $modal-close-dimensions;
141
143
  width: $modal-close-dimensions;
142
- z-index: zindex('medium');
144
+ z-index: zindex('large');
143
145
 
144
146
  #{$hoverSelector} {
145
147
  background-color: getColor('neutral-fade');
@@ -149,12 +151,22 @@ body:has(.modal.is-active) {
149
151
  &::before {
150
152
  background-color: getColor('font');
151
153
  }
154
+
155
+ &:focus-visible,
156
+ &:focus:focus-visible {
157
+ outline: 2px solid getColor('font') !important;
158
+ outline-offset: 2px;
159
+ }
160
+ &:focus{
161
+ background-color: transparent !important;
162
+ }
152
163
  }
153
164
  }
154
165
 
155
166
  .modal-body {
156
- padding: $spacing-5;
157
- padding-top: 0;
167
+ padding: 0 $spacing-5 $spacing-5 ;
168
+ }
169
+ &:has(>.modal-footer) > .modal-body {
158
170
  padding-bottom: 0;
159
171
  }
160
172
 
@@ -165,9 +177,18 @@ body:has(.modal.is-active) {
165
177
  background: getColor('background');
166
178
  bottom: 0;
167
179
 
180
+ .buttons {
181
+ display: flex;
182
+ flex-direction: column-reverse;
183
+ }
184
+
168
185
  @include tablet {
169
186
  display: flex;
170
187
  justify-content: flex-end;
188
+
189
+ .buttons {
190
+ flex-direction: row;
191
+ }
171
192
  }
172
193
  }
173
194
  }
@@ -5,14 +5,14 @@
5
5
  .otp {
6
6
  @include hover();
7
7
  outline: none;
8
- border: 1px solid currentColor;
8
+ border: var(--border);
9
9
  border-radius: var(--radius-small);
10
10
  background: transparent;
11
11
  width: 33px;
12
12
  height: 40px;
13
13
  margin: 4px 4px 0 4px;
14
14
  text-align: center;
15
- color: getColor('neutral');
15
+ color: getColor('main');
16
16
 
17
17
  &:first-child {
18
18
  margin: 4px 4px 0 0;
@@ -3,7 +3,7 @@
3
3
  margin: -2.5px;
4
4
  align-items: center;
5
5
  display: flex;
6
- justify-content: space-between;
6
+ justify-content: center;
7
7
  text-align: center;
8
8
 
9
9
  .pagination-previous,
@@ -33,12 +33,15 @@
33
33
  padding-left: 0.75em;
34
34
  padding-right: 0.75em;
35
35
  white-space: nowrap;
36
+
37
+ &[aria-disabled=true]{
38
+ border-color: transparent !important;
39
+ }
36
40
  }
37
41
 
38
42
  .pagination-list {
39
43
  flex: 0 0 auto;
40
44
  flex-wrap: wrap;
41
- flex-grow: 1;
42
45
  align-items: center;
43
46
  display: flex;
44
47
  justify-content: center;
@@ -37,6 +37,7 @@ $price-levels: (
37
37
  flex: none;
38
38
  margin: 0;
39
39
  font-size: calc(var(--font-size) * 0.4);
40
+ font-weight: 400;
40
41
  }
41
42
 
42
43
  .price {
@@ -54,6 +55,30 @@ $price-levels: (
54
55
  font-weight: $weight-semibold;
55
56
  line-height: 0.8;
56
57
  margin-bottom: 0;
58
+ font-size: var(--font-size);
59
+
60
+ &.strike {
61
+ font-size: var(--strike-font-size);
62
+ }
63
+
64
+
65
+ @each $price-level in $price-levels {
66
+ $i: index($price-levels, $price-level);
67
+ $font-size: nth($price-level, 1);
68
+ $strike-font-size: nth($price-level, 2);
69
+
70
+ &.is-level-#{$i} {
71
+ --font-size: #{$font-size};
72
+ --strike-font-size: #{$strike-font-size};
73
+
74
+ @if $i > 4 {
75
+ .price-details {
76
+ padding-left: 2px;
77
+ }
78
+ }
79
+ }
80
+ }
81
+
57
82
 
58
83
  // the details : cents + period
59
84
 
@@ -88,6 +113,7 @@ $price-levels: (
88
113
  margin-top: 0;
89
114
  padding-left: 0.1em;
90
115
  text-align: left;
116
+ font-weight: $weight-normal;
91
117
  }
92
118
  }
93
119
 
@@ -133,7 +159,7 @@ $price-levels: (
133
159
 
134
160
  &.strike {
135
161
  position: relative;
136
- color: getColor('neutral');
162
+ color: getColor('font-placeholder');
137
163
 
138
164
  &::before {
139
165
  position: absolute;
@@ -142,7 +168,7 @@ $price-levels: (
142
168
  top: 50%;
143
169
  right: 0;
144
170
  border-top: 2px solid;
145
- border-color: getColor('neutral');
171
+ border-color: getColor('font-placeholder');
146
172
  border-radius: 5px;
147
173
  transform: rotate(-20deg);
148
174
  }
@@ -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
+ }
@@ -2,7 +2,8 @@
2
2
 
3
3
  .radios {
4
4
  width: 100%;
5
- gap: 16px;
5
+ column-gap: $spacing-5;
6
+ row-gap: $spacing-3;
6
7
  display: flex;
7
8
  flex-wrap: wrap;
8
9
  flex-direction: column;
@@ -30,7 +31,8 @@
30
31
 
31
32
  .radio,
32
33
  .radio-tile {
33
- input:checked ~ label.radio-label {
34
+ input:checked ~ label.radio-label,
35
+ input:checked ~ .radio-container {
34
36
  cursor: default;
35
37
 
36
38
  &:after {
@@ -40,7 +42,8 @@
40
42
  }
41
43
  }
42
44
 
43
- label.radio-label {
45
+ label.radio-label,
46
+ .radio-container {
44
47
  &:before,
45
48
  &:after {
46
49
  border-radius: 9999px;
@@ -60,22 +63,23 @@
60
63
  @include hoverRules()
61
64
  }
62
65
  }
63
-
64
66
  }
65
67
 
66
68
  .radio-tile {
67
- input:checked ~ label.radio-label {
69
+ input:checked ~ label.radio-label,
70
+ input:checked ~ .radio-container {
68
71
  &:after {
69
72
  top: 18px;
70
- right: 18px;
73
+ left: 18px;
71
74
  }
72
75
  }
73
76
 
74
- input:checked:disabled ~ label.radio-label {
77
+ input:checked:disabled ~ label.radio-label,
78
+ input:checked:disabled ~ .radio-container {
75
79
  &:after {
76
80
  background-color: getColor('neutral');
77
81
  top: 19px;
78
- right: 19px;
82
+ left: 19px;
79
83
  }
80
84
  }
81
85
  }
@@ -1,11 +1,13 @@
1
1
  .segmented-control {
2
2
  border-radius: 6px;
3
3
  padding: $spacing-1;
4
- background-color: getColor('neutral-fade');
4
+ background-color: getColor('background');
5
5
  display: flex;
6
6
  margin-left: auto;
7
7
  margin-right: auto;
8
8
  width: fit-content;
9
+ border: 1px solid getColor('neutral');
10
+
9
11
 
10
12
  &.justified-start {
11
13
  margin-left: 0;
@@ -24,21 +26,19 @@
24
26
  }
25
27
 
26
28
  .segmented-control-item {
27
- padding: 0 $spacing-5;
29
+ padding: $spacing-3 $spacing-4;
28
30
  border-radius: var(--radius-small);
29
31
  font-size: 16px;
30
32
  text-align: center;
31
33
  border: 2px solid transparent;
32
- height: 42px;
33
34
  color: getColor('font');
34
- background-color: getColor('neutral-fade');
35
+ background-color: getColor('background');
35
36
 
36
37
  &:not(:last-child) {
37
38
  margin-right: 4px;
38
39
  }
39
40
 
40
41
  @include mobile {
41
- padding: 0 $spacing-4;
42
42
  flex: 1 1 0;
43
43
  width: 0;
44
44
  text-overflow: ellipsis;
@@ -54,5 +54,9 @@
54
54
  background-color: getColor('main');
55
55
  color: invertColor('main');
56
56
  }
57
+
58
+ &:disabled{
59
+ border-color: transparent !important;
60
+ }
57
61
  }
58
62
  }