@trilogy-ds/styles 0.0.1-beta-4 → 0.0.1-beta.11

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 (86) hide show
  1. package/README.md +47 -0
  2. package/dist/default/trilogy-mangled.css +1 -1
  3. package/dist/default/trilogy-partials.css +1 -1
  4. package/dist/default/trilogy.css +1 -1
  5. package/framework/src/base/_color.scss +14 -36
  6. package/framework/src/base/_generic.scss +4 -1
  7. package/framework/src/base/_helpers.scss +10 -29
  8. package/framework/src/base/_loading.scss +7 -0
  9. package/framework/src/components/_accordion.scss +15 -36
  10. package/framework/src/components/_all.scss +0 -3
  11. package/framework/src/components/_breadcrumb.scss +39 -34
  12. package/framework/src/components/_card.scss +6 -5
  13. package/framework/src/components/_countdown.scss +49 -47
  14. package/framework/src/components/_disclaimer.scss +6 -5
  15. package/framework/src/components/_divider.scss +2 -2
  16. package/framework/src/components/_dropdown.scss +95 -101
  17. package/framework/src/components/_fab.scss +6 -21
  18. package/framework/src/components/_media.scss +2 -2
  19. package/framework/src/components/_modal.scss +172 -166
  20. package/framework/src/components/_otp.scss +9 -28
  21. package/framework/src/components/_pagination.scss +109 -131
  22. package/framework/src/components/_plus-symbol.scss +1 -1
  23. package/framework/src/components/_popover.scss +1 -4
  24. package/framework/src/components/_price.scss +118 -169
  25. package/framework/src/components/_product-tour.scss +1 -3
  26. package/framework/src/components/_segmented-control.scss +39 -51
  27. package/framework/src/components/_slider.scss +70 -70
  28. package/framework/src/components/_stepper.scss +16 -140
  29. package/framework/src/components/_tabs.scss +32 -55
  30. package/framework/src/components/_timeline.scss +49 -42
  31. package/framework/src/elements/_alert.scss +4 -5
  32. package/framework/src/elements/_all.scss +0 -2
  33. package/framework/src/elements/_badge.scss +54 -59
  34. package/framework/src/elements/_box.scss +5 -23
  35. package/framework/src/elements/_button.scss +29 -129
  36. package/framework/src/elements/_checkbox.scss +21 -27
  37. package/framework/src/elements/_chips.scss +76 -81
  38. package/framework/src/elements/_entry.scss +73 -89
  39. package/framework/src/elements/_form.scss +15 -15
  40. package/framework/src/elements/_input-gauge.scss +36 -32
  41. package/framework/src/elements/_link.scss +47 -62
  42. package/framework/src/elements/_list.scss +0 -36
  43. package/framework/src/elements/_notification.scss +2 -3
  44. package/framework/src/elements/_other.scss +1 -1
  45. package/framework/src/elements/_paragraph.scss +4 -26
  46. package/framework/src/elements/_progress.scss +9 -18
  47. package/framework/src/elements/_radio.scss +1 -1
  48. package/framework/src/elements/_select.scss +209 -245
  49. package/framework/src/elements/_sticker.scss +8 -9
  50. package/framework/src/elements/_switch.scss +85 -88
  51. package/framework/src/elements/_table.scss +11 -72
  52. package/framework/src/elements/_tag.scss +104 -104
  53. package/framework/src/elements/_textarea.scss +92 -106
  54. package/framework/src/elements/_title.scss +86 -84
  55. package/framework/src/elements/_toaster.scss +2 -3
  56. package/framework/src/grid/_columns.scss +5 -5
  57. package/framework/src/layout/_hero.scss +129 -211
  58. package/framework/src/layout/_section.scss +3 -3
  59. package/framework/src/layout/_toolbar.scss +6 -6
  60. package/framework/src/utilities/_controls.scss +37 -39
  61. package/framework/src/utilities/_derived-variables.scss +3 -14
  62. package/framework/src/utilities/_initial-variables.scss +38 -23
  63. package/framework/src/utilities/_mixins.scss +523 -582
  64. package/package.json +4 -3
  65. package/framework/src/components/_menu.scss +0 -213
  66. package/framework/src/components/_search-modal.scss +0 -197
  67. package/framework/src/components/_slices.scss +0 -316
  68. package/framework/src/components/_switch.scss +0 -209
  69. package/framework/src/elements/_checkradio.scss +0 -173
  70. package/framework/src/elements/_options.scss +0 -146
  71. package/framework/src/elements/_timeline.scss +0 -283
  72. /package/dist/default/assets/icons/all/{all/alert.svg → alert.svg} +0 -0
  73. /package/dist/default/assets/icons/all/{all/arrow-down.svg → arrow-down.svg} +0 -0
  74. /package/dist/default/assets/icons/all/{all/arrow-left.svg → arrow-left.svg} +0 -0
  75. /package/dist/default/assets/icons/all/{all/arrow-right.svg → arrow-right.svg} +0 -0
  76. /package/dist/default/assets/icons/all/{all/arrow-up.svg → arrow-up.svg} +0 -0
  77. /package/dist/default/assets/icons/all/{all/bell.svg → bell.svg} +0 -0
  78. /package/dist/default/assets/icons/all/{all/check-circle.svg → check-circle.svg} +0 -0
  79. /package/dist/default/assets/icons/all/{all/check.svg → check.svg} +0 -0
  80. /package/dist/default/assets/icons/all/{all/exclamation-circle.svg → exclamation-circle.svg} +0 -0
  81. /package/dist/default/assets/icons/all/{all/eye-slash.svg → eye-slash.svg} +0 -0
  82. /package/dist/default/assets/icons/all/{all/eye.svg → eye.svg} +0 -0
  83. /package/dist/default/assets/icons/all/{all/infos-circle.svg → infos-circle.svg} +0 -0
  84. /package/dist/default/assets/icons/all/{all/search.svg → search.svg} +0 -0
  85. /package/dist/default/assets/icons/all/{all/times.svg → times.svg} +0 -0
  86. /package/dist/default/assets/icons/all/{all/trash.svg → trash.svg} +0 -0
@@ -59,7 +59,7 @@
59
59
 
60
60
  input:checked:disabled ~ label.radio-label {
61
61
  &:after {
62
- background-color: getColor('grey');
62
+ background-color: getColor('neutral');
63
63
  top: 19px;
64
64
  right: 19px;
65
65
  }
@@ -1,315 +1,279 @@
1
1
  [data-blur-select] {
2
- position: absolute;
3
- z-index: zindex('large');
4
- min-width: 100%;
5
- min-height: 100%;
6
- left:0;
7
- top: 0;
2
+ position: absolute;
3
+ z-index: zindex('large');
4
+ min-width: 100%;
5
+ min-height: 100%;
6
+ left: 0;
7
+ top: 0;
8
8
  }
9
9
 
10
10
 
11
- @mixin arrow-style($isDisabled:false, $direction:"up") {
12
- $color: getColor('font');
13
- @if($isDisabled) { $color: getColor('grey') }
14
-
15
- @include arrow($color,$direction);
16
- right: 16px;
17
- margin-left: 16px;
18
- top: calc(50% - 7px);
11
+ @mixin arrow-style($direction:"up") {
12
+ @include arrow($direction);
13
+ right: 16px;
14
+ margin-left: 16px;
15
+ top: calc(50% - 7px);
19
16
  }
20
17
 
21
18
  .select {
22
- border: 1px solid getColor('grey');
23
- display: inline-block;
19
+ border: 1px solid getBGColor('font');
20
+ display: inline-block;
21
+ max-width: 100%;
22
+ position: relative;
23
+ font-family: $body-family;
24
+ border-radius: $radius-small;
25
+ background-color: getColor('background');
26
+ display: block;
27
+ font-size: 1em;
28
+ max-width: 100%;
29
+ outline: none;
30
+ cursor: pointer;
31
+ height: 56px;
32
+
33
+ select {
34
+ height: 100%;
35
+ border: 1px solid transparent;
36
+ border-radius: 3px;
24
37
  max-width: 100%;
25
- position: relative;
26
- font-family: $body-family;
27
- border-radius: 4px;
28
- background-color: getColor('background');
29
- display: block;
38
+ width: 100%;
30
39
  font-size: 1em;
31
- max-width: 100%;
32
- outline: none;
40
+ font-family: $body-family;
41
+ color: getColor('font');
33
42
  cursor: pointer;
34
- height: 56px;
35
-
36
- select {
37
- height: 100%;
38
- border: 1px solid transparent;
39
- border-radius: 3px;
40
- max-width: 100%;
41
- width: 100%;
42
- font-size: 1em;
43
- font-family: $body-family;
44
- color: getColor('font');
45
- cursor: pointer;
46
- -webkit-appearance: none;
47
- -moz-appearance: none;
48
- appearance: none;
49
- z-index: 10;
50
- background-color: transparent;
51
- opacity: 100;
52
- outline: none;
53
- padding-left: $spacing-4;
54
- &::-ms-expand {
55
- display: none !important;
56
- }
57
- &:focus, &:hover {
58
- outline: 1px auto getColor('alternate');
59
- }
43
+ -webkit-appearance: none;
44
+ -moz-appearance: none;
45
+ appearance: none;
46
+ z-index: 10;
47
+ background-color: transparent;
48
+ opacity: 100;
49
+ outline: none;
50
+ padding-left: $spacing-4;
60
51
 
52
+ &::-ms-expand {
53
+ display: none !important;
61
54
  }
62
55
 
63
- label {
64
- position: absolute;
65
- top: 50%;
66
- transform: translate(0, -50%);
67
- left: 16px !important;
68
- color: getColor('grey') !important
69
- }
56
+ @include hover();
70
57
 
71
- &.select-native {
72
- .icon {
73
- position: absolute;
74
- }
58
+ }
75
59
 
76
- &.has-icon {
77
- select {
78
- padding-left: 50px;
79
- &:not(.no-label) {
80
- padding-bottom: 5px;
81
- }
82
- }
83
- }
84
- }
60
+ label {
61
+ position: absolute;
62
+ top: 50%;
63
+ transform: translate(0, -50%);
64
+ left: 16px !important;
65
+ color: getColor('neutral') !important
66
+ }
85
67
 
86
- .has-dynamic-placeholder {
87
- label {
88
- top: 18px;
89
- color: getColor('grey') !important
90
- }
68
+ &.select-native {
69
+ .icon {
70
+ position: absolute;
91
71
  }
92
72
 
73
+ &.has-icon {
74
+ select {
75
+ padding-left: 50px;
93
76
 
94
- &-value {
95
- position: absolute ;
96
- left: 16px;
97
- top: 50%;
98
- transform: translateY(-20%);
99
-
100
- &.no-label {
101
- transform: translateY(-50%);
102
-
77
+ &:not(.no-label) {
78
+ padding-bottom: 5px;
103
79
  }
80
+ }
104
81
  }
82
+ }
105
83
 
84
+ .has-dynamic-placeholder {
85
+ label {
86
+ top: 18px;
87
+ color: getColor('neutral') !important
88
+ }
89
+ }
106
90
 
107
91
 
108
- &-disabled {
109
- background-color: getColor('grey-disabled');
110
- border: 1px solid getColor('grey-disabled');
111
- cursor:default ;
112
- label {
113
- color: #565656 !important;
114
- }
115
- .icon {
116
- color: #565656;
117
- }
118
- }
92
+ &-value {
93
+ position: absolute;
94
+ left: 16px;
95
+ top: 50%;
96
+ transform: translateY(-20%);
97
+
98
+ &.no-label {
99
+ transform: translateY(-50%);
119
100
 
101
+ }
102
+ }
120
103
 
104
+ .icon {
105
+ height: 100%;
106
+ width: 50px;
107
+ }
121
108
 
122
- .icon {
123
- height: 100%;
124
- width: 50px;
109
+ &.has-icon {
110
+ label {
111
+ left: 50px !important;
125
112
  }
126
113
 
127
- &.has-icon {
128
- label {
129
- left: 50px !important;
130
- }
131
- .select-value {
132
- left: 50px !important;
133
- }
114
+ .select-value {
115
+ left: 50px !important;
134
116
  }
117
+ }
135
118
 
136
119
 
137
- &:not(.is-loading) {
138
- &:not(.select-disabled) {
139
- &::after {
140
- @include arrow-style(false,"down")
141
- }
142
- &:not(.select-native):hover, &:not(.select-native):focus {
143
- outline: 1px auto getColor('alternate');
144
- }
145
- }
146
- &.select-disabled {
147
- &::after {
148
- @include arrow-style(true,"down")
149
- }
150
- }
120
+ &:not(.is-loading) {
121
+ &:not(.select-disabled) {
122
+ &::after {
123
+ @include arrow-style("down")
124
+ }
151
125
 
126
+ &:not(.select-native) {
127
+ @include hover();
128
+ }
152
129
  }
130
+ }
153
131
 
154
- &.select-show-options:not(.is-loading) {
155
- outline: 1px auto getColor('alternate');
156
- &::after {
157
- @include arrow-style()
158
- }
159
- &:hover {
160
- &::after {
161
- border-color: getColor('font');
162
- }
163
- }
164
- }
132
+ &.select-show-options:not(.is-loading) {
133
+ outline: 1px auto getColor('main');
165
134
 
166
- // Colors
167
- @each $name in $colors-brand {
168
- $brandName: getColorBrandName($name);
169
- $color: getColor($name);
170
-
171
- &.is-#{$brandName} {
172
- &:not(:hover) {
173
- outline: 1px auto $color;
174
- }
175
- &:hover,
176
- &.is-hovered {
177
- outline: 1px auto getVariantColor($name, 1);
178
- }
179
- }
135
+ &::after {
136
+ @include arrow-style()
180
137
  }
181
138
 
182
- // Sizes
183
- &.is-small {
184
- @include control-small;
139
+ #{$hoverSelector} {
140
+ &::after {
141
+ border-color: getColor('font');
142
+ }
185
143
  }
186
-
187
- &.is-large {
188
- @include control-large;
144
+ }
145
+
146
+ // Sizes
147
+ &.is-small {
148
+ @include control-small;
149
+ }
150
+
151
+ &.is-large {
152
+ @include control-large;
153
+ }
154
+
155
+ &.is-loading {
156
+ &::after {
157
+ @include spinner;
158
+ margin-top: 0;
159
+ position: absolute;
160
+ right: 0.625em;
161
+ top: 0.625em;
162
+ transform: none;
189
163
  }
190
164
 
165
+ &.is-small::after {
166
+ font-size: $size-small;
167
+ }
191
168
 
192
- &.is-loading {
193
- &::after {
194
- @include spinner;
195
- margin-top: 0;
196
- position: absolute;
197
- right: 0.625em;
198
- top: 0.625em;
199
- transform: none;
200
- }
201
- &.is-small::after {
202
- font-size: $size-small;
203
- }
204
- &.is-large::after {
205
- font-size: $size-large;
206
- }
169
+ &.is-large::after {
170
+ font-size: $size-large;
207
171
  }
172
+ }
208
173
  }
209
174
 
210
175
  .select-options {
211
- position: absolute;
212
- margin-top: 8px;
176
+ position: absolute;
177
+ margin-top: 8px;
178
+ display: flex;
179
+ flex-direction: column;
180
+ align-items: flex-start;
181
+ background: getColor('background');
182
+ box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
183
+ border-radius: $radius-small;
184
+ overflow: auto;
185
+ width: 100%;
186
+ max-height: 260px;
187
+ z-index: zindex('large');
188
+
189
+
190
+ &-option {
213
191
  display: flex;
214
- flex-direction: column;
215
- align-items: flex-start;
216
- background: getColor('background');
217
- box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
218
- border-radius: 4px;
219
- overflow: auto;
192
+ flex-direction: row;
193
+ align-items: center;
194
+ justify-content: space-between;
195
+ padding: 14px $spacing-4;
220
196
  width: 100%;
221
- max-height: 260px;
222
- z-index: zindex('large') ;
223
-
224
-
225
- &-option {
226
- display: flex;
227
- flex-direction: row;
228
- align-items: center;
229
- justify-content: space-between;
230
- padding: 14px $spacing-4;
231
- width: 100%;
232
- .has-icon {
233
- display: flex;
234
- align-items: center;
235
- .icon {
236
- margin-right: 16px;
237
- width: 20px;
238
- height: 20px;
239
- }
240
- }
241
- &-activated {
242
- color: getColor('alternate');
243
- font-weight: $weight-bold;
244
- &::after {
245
- content: "";
246
- mask-image: url('./assets/icons/all/check.svg');
247
- background-color: getColor('alternate');
248
- min-width: 15px;
249
- min-height: 15px;
250
- display:inline-block;
251
- margin-left: 16px;
252
- mask-size: 20px;
253
- }
254
- }
255
- &-disabled {
256
- background-color: getColor('grey-disabled');
257
- color: #565656
258
- }
197
+
198
+ .has-icon {
199
+ display: flex;
200
+ align-items: center;
201
+
202
+ .icon {
203
+ margin-right: 16px;
204
+ width: 20px;
205
+ height: 20px;
206
+ }
259
207
  }
260
208
 
261
- .option-container, &-option {
262
- outline:none;
263
- &:focus {
264
- background-color: #E4EAED;
265
- }
209
+ &-activated {
210
+ color: getColor('main');
211
+ font-weight: $weight-bold;
212
+
213
+ &::after {
214
+ content: "";
215
+ mask-image: url('./assets/icons/all/check.svg');
216
+ background-color: getColor('main');
217
+ min-width: 15px;
218
+ min-height: 15px;
219
+ display: inline-block;
220
+ margin-left: 16px;
221
+ mask-size: 20px;
222
+ }
223
+ }
266
224
 
267
- &:not([data-is-disabled='true']){
268
- cursor: pointer;
269
- }
225
+ }
226
+
227
+ .option-container, &-option {
228
+ outline: none;
229
+
230
+ &:focus {
231
+ background-color: #E4EAED;
270
232
  }
233
+
234
+ &:not([data-is-disabled='true']) {
235
+ cursor: pointer;
236
+ }
237
+ }
271
238
  }
272
239
 
273
240
  [data-is-open-options="false"] {
274
- display: none;
241
+ display: none;
275
242
  }
276
243
 
277
244
  [data-is-open-options="true"] {
278
- display:block
245
+ display: block
279
246
  }
280
247
 
281
248
  //AutoComplete
282
249
  .is-autocomplete {
250
+ .autocomplete-menu {
251
+ display: none;
252
+ }
253
+
254
+ &.is-active {
283
255
  .autocomplete-menu {
284
- display: none;
256
+ display: block;
257
+ border: 1px solid rgba(0, 38, 60, .4);
258
+ border-radius: $radius-small;
259
+ max-height: 220px;
260
+ overflow-y: auto;
261
+ background-color: getColor('background');
262
+ z-index: 10000;
285
263
  }
286
264
 
287
- &.is-active {
288
- .autocomplete-menu {
289
- display: block;
290
- border: 1px solid rgba(0,38,60,.4);
291
- padding: 5px 10px;
292
- border-radius: 4px;
293
- max-height: 220px;
294
- overflow-y: auto;
295
- background-color: getColor('background');
296
- z-index: 10000;
297
- }
265
+ .autocomplete-item {
266
+ cursor: pointer;
267
+ padding: 16px;
298
268
 
299
- .autocomplete-item {
300
- cursor: pointer;
301
- padding: 3.75px calc(15px - 10px);
302
-
303
- &.is-active, &[data-autocomplete-item-hover] {
304
- background-color: rgba(16,157,185,.08);
305
- border-top: 1px solid getColor('alternate');
306
- border-bottom: 1px solid getColor('alternate');
307
- margin-left: -10px;
308
- margin-right: -10px;
309
- padding: 2.75px 15px;
310
- }
311
- }
269
+ @include hover();
270
+
271
+ &.is-active, &[data-autocomplete-item-hover] {
272
+ @include hoverRules();
273
+ font-weight: bold;
274
+ }
312
275
  }
276
+ }
313
277
  }
314
278
 
315
279
 
@@ -16,7 +16,7 @@ $sticker-radius: $radius-large;
16
16
  &:not(.is-hat) {
17
17
  width: fit-content;
18
18
 
19
- @include mobile{
19
+ @include mobile {
20
20
  border-radius: 16px;
21
21
  font-size: 12px;
22
22
  padding: $spacing-1 $spacing-2;
@@ -30,9 +30,13 @@ $sticker-radius: $radius-large;
30
30
  }
31
31
  }
32
32
 
33
+ &.is-accent {
34
+ background-color: getColor('alternate');
35
+ color: getColor('background') !important;
36
+ }
33
37
 
34
- &.is-primary {
35
- background-color: getColor('main');
38
+ &.is-info {
39
+ background-color: getColor('info');
36
40
  color: getColor('background') !important;
37
41
  }
38
42
 
@@ -40,17 +44,12 @@ $sticker-radius: $radius-large;
40
44
  border-radius: 0 16px 0 0;
41
45
  }
42
46
 
43
- &.is-outlined,
44
47
  &.is-inverted {
45
48
  background-color: white !important;
46
49
  border-style: solid;
47
50
  border-width: 2px;
48
51
  border-color: currentColor;
49
- color: getColor('font') !important;
50
-
51
- &.is-primary {
52
- color: getColor('main') !important;
53
- }
52
+ color: currentColor;
54
53
  }
55
54
 
56
55
  &.is-small {