@trilogy-ds/styles 0.0.1-beta.5 → 0.0.1-beta.50

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 (87) 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 +20 -37
  8. package/framework/src/base/_loading.scss +8 -1
  9. package/framework/src/base/_reset.scss +8 -3
  10. package/framework/src/components/_accordion.scss +40 -86
  11. package/framework/src/components/_all.scss +0 -6
  12. package/framework/src/components/_breadcrumb.scss +39 -34
  13. package/framework/src/components/_card.scss +7 -78
  14. package/framework/src/components/_countdown.scss +49 -47
  15. package/framework/src/components/_divider.scss +2 -2
  16. package/framework/src/components/_fab.scss +12 -26
  17. package/framework/src/components/_level.scss +1 -1
  18. package/framework/src/components/_media.scss +2 -2
  19. package/framework/src/components/_modal.scss +167 -166
  20. package/framework/src/components/_otp.scss +9 -28
  21. package/framework/src/components/_pagination.scss +104 -133
  22. package/framework/src/components/_plus-symbol.scss +1 -1
  23. package/framework/src/components/_popover.scss +255 -255
  24. package/framework/src/components/_price.scss +196 -166
  25. package/framework/src/components/_product-tour.scss +2 -4
  26. package/framework/src/components/_range.scss +73 -72
  27. package/framework/src/components/_segmented-control.scss +37 -51
  28. package/framework/src/components/_stepper.scss +18 -142
  29. package/framework/src/components/_tabs.scss +32 -59
  30. package/framework/src/components/_timeline.scss +52 -45
  31. package/framework/src/elements/_alert.scss +5 -8
  32. package/framework/src/elements/_all.scss +1 -3
  33. package/framework/src/elements/_autocomplete.scss +32 -0
  34. package/framework/src/elements/_badge.scss +54 -59
  35. package/framework/src/elements/_box.scss +8 -115
  36. package/framework/src/elements/_button.scss +15 -133
  37. package/framework/src/elements/_checkbox.scss +21 -27
  38. package/framework/src/elements/_chips.scss +74 -83
  39. package/framework/src/elements/_dot.scss +1 -1
  40. package/framework/src/elements/_entry.scss +76 -88
  41. package/framework/src/elements/_form.scss +17 -15
  42. package/framework/src/elements/_icon.scss +3 -3
  43. package/framework/src/elements/_input-gauge.scss +32 -33
  44. package/framework/src/elements/_input-icons.scss +33 -31
  45. package/framework/src/elements/_link.scss +38 -65
  46. package/framework/src/elements/_list.scss +38 -46
  47. package/framework/src/elements/_loader.scss +1 -1
  48. package/framework/src/elements/_other.scss +2 -2
  49. package/framework/src/elements/_paragraph.scss +4 -26
  50. package/framework/src/elements/_progress.scss +12 -21
  51. package/framework/src/elements/_radio.scss +2 -2
  52. package/framework/src/elements/_select.scss +84 -301
  53. package/framework/src/elements/_sticker.scss +12 -27
  54. package/framework/src/elements/_switch.scss +85 -88
  55. package/framework/src/elements/_table.scss +173 -226
  56. package/framework/src/elements/_tag.scss +104 -105
  57. package/framework/src/elements/_textarea.scss +95 -105
  58. package/framework/src/elements/_title.scss +89 -87
  59. package/framework/src/elements/_toaster.scss +3 -4
  60. package/framework/src/grid/_columns.scss +5 -5
  61. package/framework/src/layout/_all.scss +0 -1
  62. package/framework/src/layout/_hero.scss +109 -207
  63. package/framework/src/layout/_section.scss +7 -14
  64. package/framework/src/theming/_all.scss +3 -0
  65. package/framework/src/theming/buttons_partial.scss +30 -0
  66. package/framework/src/theming/common_partials.scss +9 -0
  67. package/framework/src/theming/links_partial.scss +20 -0
  68. package/framework/src/utilities/_all.scss +3 -0
  69. package/framework/src/utilities/_background.scss +15 -0
  70. package/framework/src/utilities/_controls.scss +37 -48
  71. package/framework/src/utilities/_derived-variables.scss +3 -14
  72. package/framework/src/utilities/_initial-variables.scss +22 -26
  73. package/framework/src/utilities/_mixins.scss +481 -593
  74. package/framework/src/utilities/_pre.scss +1 -0
  75. package/package.json +3 -2
  76. package/framework/src/components/_disclaimer.scss +0 -84
  77. package/framework/src/components/_dropdown.scss +0 -128
  78. package/framework/src/components/_menu.scss +0 -213
  79. package/framework/src/components/_search-modal.scss +0 -197
  80. package/framework/src/components/_slices.scss +0 -316
  81. package/framework/src/components/_slider.scss +0 -92
  82. package/framework/src/components/_switch.scss +0 -209
  83. package/framework/src/elements/_checkradio.scss +0 -173
  84. package/framework/src/elements/_notification.scss +0 -151
  85. package/framework/src/elements/_options.scss +0 -146
  86. package/framework/src/elements/_timeline.scss +0 -283
  87. package/framework/src/layout/_toolbar.scss +0 -100
@@ -1,100 +1,91 @@
1
- $chip-radius: 30px !default;
2
-
3
1
  .chips-list {
4
- align-items: center;
5
- display: inline-flex;
6
- justify-content: flex-start;
7
- margin-bottom: 16px;
8
- flex-wrap: wrap;
9
-
10
- // multi-chips : ajout d'une marge bottom, supprimable par facette
11
- &:not(.is-gapless) {
12
- &:not(:last-child) {
13
- margin-right: 8px;
14
- }
2
+ align-items: center;
3
+ display: inline-flex;
4
+ justify-content: flex-start;
5
+ margin-bottom: 16px;
6
+ flex-wrap: wrap;
15
7
 
16
- .chips {
17
- margin-bottom: 10px;
18
- }
8
+ // multi-chips : ajout d'une marge bottom, supprimable par facette
9
+ &:not(.is-gapless) {
10
+ &:not(:last-child) {
11
+ margin-right: 8px;
19
12
  }
20
13
 
21
- // multi-chips : ajout d'une marge à droite de chaque chip
22
- .chips:not(:last-child) {
23
- margin-right: 8px;
14
+ .chips {
15
+ margin-bottom: 10px;
24
16
  }
17
+ }
25
18
 
26
- // centrage des chips
27
- &.is-centered {
28
- justify-content: center;
29
- }
19
+ // multi-chips : ajout d'une marge à droite de chaque chip
20
+ .chips:not(:last-child) {
21
+ margin-right: 8px;
22
+ }
30
23
 
31
- &.is-multiple {
32
- .chips.is-active:before {
33
- content: "";
34
- mask-image: url('./assets/icons/all/check.svg');
35
- background-color: getColor('background');
36
- margin-right: 4px;
37
- margin-left: -8px;
38
- width: 20px;
39
- height: 20px;
40
- mask-size: 20px;
41
- }
24
+ // centrage des chips
25
+ &.is-centered {
26
+ justify-content: center;
27
+ }
28
+
29
+ &.is-multiple {
30
+ .chips.is-active:before {
31
+ content: "";
32
+ mask-image: url('./assets/icons/all/check.svg');
33
+ background-color: currentColor;
34
+ margin-right: 4px;
35
+ margin-left: -8px;
36
+ width: 20px;
37
+ height: 20px;
38
+ mask-size: 20px;
42
39
  }
40
+ }
43
41
 
44
- .chips {
45
- align-items: center;
46
- background-color: getColor('grey-lighter');
47
- border-radius: $chip-radius;
48
- color: getColor('font');
49
- display: inline-flex;
50
- font-weight: 400;
51
- font-size: $size-normal;
52
- height: 32px;
53
- justify-content: center;
54
- line-height: 2;
55
- padding: 6px $spacing-4;
56
- white-space: nowrap;
57
- cursor: pointer;
58
- border: 1px solid getColor('grey-light');
42
+ .chips {
43
+ align-items: center;
44
+ background-color: white;
45
+ border-radius: 9999px;
46
+ color: getColor('font');
47
+ display: inline-flex;
48
+ font-size: $size-normal;
49
+ height: 32px;
50
+ justify-content: center;
51
+ line-height: 2;
52
+ padding: 6px $spacing-4;
53
+ white-space: nowrap;
54
+ cursor: pointer;
55
+ border: var(--border);
59
56
 
60
- &:not(.is-disabled) {
61
- &:hover {
62
- background-color: getColor('grey-light');
63
- border: 2px solid currentColor;
64
- color: getColor('alternate');
65
- padding: 5px 15px;
66
- }
57
+ &:not(.is-disabled) {
67
58
 
68
- &:focus,
69
- &:focus-visible,
70
- &.is-active {
71
- background-color: getColor('alternate');
72
- color: white;
73
- font-weight: 600;
74
- border: 2px solid getColor('alternate');
75
- padding: 5px 15px;
76
- }
77
- }
59
+ &.is-active {
60
+ background-color: getColor('main');
61
+ color: white;
62
+ border: var(--border-active);
63
+ padding: 5px 15px;
78
64
 
79
- &.is-disabled {
80
- background-color: getColor('grey-disabled');
81
- color: getColor('grey-darker');
82
- cursor: no-drop;
83
- border: 1px solid getColor('grey-disabled');
65
+ #{$hoverSelector} {
66
+ background-color: getColor('main');
67
+ color: white;
84
68
  }
69
+ }
85
70
 
86
- &.is-inverted {
87
- background-color: white;
88
- color: getColor('alternate');
71
+ #{$hoverSelector} {
72
+ background-color: var(--color-bg-hovered);
89
73
 
90
- &:active,
91
- &:hover,
92
- &:focus,
93
- &:focus-visible,
94
- &.is-active {
95
- background-color: getColor('alternate') !important;
96
- color: getColor('background') !important;
97
- }
98
- }
74
+ }
75
+ }
76
+
77
+ &.is-inverted {
78
+ background-color: white;
79
+ color: getColor('alternate');
80
+
81
+ &:active,
82
+ &:hover,
83
+ &:focus,
84
+ &:focus-visible,
85
+ &.is-active {
86
+ background-color: getColor('alternate') !important;
87
+ color: getColor('background') !important;
88
+ }
99
89
  }
90
+ }
100
91
  }
@@ -2,5 +2,5 @@
2
2
  display: inline-block;
3
3
  width: 10px;
4
4
  height: 10px;
5
- border-radius: 100%;
5
+ border-radius: 9999px;
6
6
  }
@@ -1,109 +1,97 @@
1
1
  .input,
2
2
  .textarea {
3
- @include input;
4
-
5
- padding-left: $spacing-4;
6
- padding-right: $spacing-4;
7
- font-family: $body-family;
8
- font-size: $size-medium;
9
- max-width: 100%;
10
- width: 100%;
11
-
12
- &:focus-visible,
13
- :focus {
14
- outline: 1px auto getColor('alternate');
3
+ @include input;
4
+
5
+ padding-left: $spacing-4;
6
+ padding-right: $spacing-4;
7
+ font-size: $size-medium;
8
+ max-width: 100%;
9
+ width: 100%;
10
+
11
+ // Colors
12
+ @each $name in $colors-brand-funcionnal {
13
+ $color: getColor($name);
14
+ $color-invert: invertColor($name);
15
+ $brandName: getColorBrandName($name);
16
+
17
+ &.is-#{$brandName} {
18
+ border: 1px solid $color;
15
19
  }
20
+ }
16
21
 
17
- // Colors
18
- @each $name in $colors-brand-funcionnal {
19
- $color: getColor($name);
20
- $color-invert: invertColor($name);
21
- $brandName: getColorBrandName($name);
22
-
23
- &.is-#{$brandName} {
24
- border: 2px solid $color;
25
- &:focus-visible,
26
- &:hover,
27
- &.is-hovered,
28
- &:focus,
29
- &.is-focused {
30
- outline: 1px auto $color !important;
31
- }
32
- }
33
- }
22
+ &:active,
23
+ &:focus,
24
+ &:focus-visible:not(.icon) {
25
+ padding-left: 15px !important;
26
+ }
34
27
 
35
- // Sizes
36
- &.is-small {
37
- @include control-small;
38
- }
28
+ // Sizes
29
+ &.is-small {
30
+ @include control-small;
31
+ }
39
32
 
40
- &.is-large {
41
- @include control-large;
42
- }
33
+ &.is-large {
34
+ @include control-large;
35
+ }
43
36
 
44
- &.is-fullwidth {
45
- display: block;
46
- width: 100%;
47
- }
37
+ &.is-fullwidth {
38
+ display: block;
39
+ width: 100%;
40
+ }
48
41
 
49
- &.is-inline {
50
- display: inline;
51
- }
42
+ &.is-inline {
43
+ display: inline;
44
+ }
52
45
 
53
- .icon-status {
54
- color: aqua !important;
55
- }
46
+ .icon-status {
47
+ color: aqua !important;
48
+ }
56
49
 
57
- & label {
58
- margin-top: 10px;
59
- }
50
+ & label {
51
+ margin-top: 10px;
52
+ }
60
53
  }
61
54
 
62
55
  .input {
63
- &::-ms-clear {
64
- display: none;
65
- }
66
-
67
- &.is-small {
68
- height: 24px;
69
- }
70
-
71
- &.is-rounded {
72
- border-radius: $radius-rounded;
73
- padding-left: 1em;
74
- padding-right: 1em;
75
- }
76
-
77
- &.is-static {
78
- background-color: transparent;
79
- border-color: transparent;
80
- padding-left: 0;
81
- padding-right: 0;
82
- }
56
+ &::-ms-clear {
57
+ display: none;
58
+ }
59
+
60
+ &.is-small {
61
+ height: 24px;
62
+ }
63
+
64
+ &.is-rounded {
65
+ padding-left: 1em;
66
+ padding-right: 1em;
67
+ }
68
+
69
+ &.is-static {
70
+ background-color: transparent;
71
+ border-color: transparent;
72
+ padding-left: 0;
73
+ padding-right: 0;
74
+ }
83
75
  }
84
76
 
85
77
  .textarea {
86
- display: block;
87
- max-width: 100%;
88
- min-width: 100%;
89
- resize: vertical;
90
- padding-top: 15px;
91
-
78
+ display: block;
79
+ max-width: 100%;
80
+ min-width: 100%;
81
+ resize: vertical;
82
+ padding-top: 15px;
92
83
 
93
- &:not([rows]) {
94
- max-height: 600px;
95
- min-height: 120px;
96
- }
97
84
 
98
- &[rows] {
99
- height: initial;
100
- }
85
+ &:not([rows]) {
86
+ max-height: 600px;
87
+ min-height: 120px;
88
+ }
101
89
 
102
- &.has-fixed-size {
103
- resize: none;
104
- }
105
- }
90
+ &[rows] {
91
+ height: initial;
92
+ }
106
93
 
107
- .textarea[disabled]:hover {
108
- outline: 1px auto getColor('grey-disabled') !important;
94
+ &.has-fixed-size {
95
+ resize: none;
96
+ }
109
97
  }
@@ -92,15 +92,12 @@ $label-weight: $weight-bold;
92
92
  .input,
93
93
  .textarea,
94
94
  .select select {
95
- &:hover,
96
- &.is-hovered {
95
+ &:hover {
97
96
  z-index: zindex('tiny');
98
97
  }
99
98
 
100
99
  &:focus,
101
- &.is-focused,
102
- &:active,
103
- &.is-active {
100
+ &:active {
104
101
  z-index: zindex('small');
105
102
 
106
103
  &:hover {
@@ -195,7 +192,7 @@ $label-weight: $weight-bold;
195
192
  .select {
196
193
  &:focus {
197
194
  & ~ .icon {
198
- color: getColor('grey');
195
+ color: getColor('font');
199
196
  }
200
197
  }
201
198
 
@@ -208,7 +205,7 @@ $label-weight: $weight-bold;
208
205
  }
209
206
 
210
207
  .icon {
211
- color: getColor('grey-light');
208
+ color: getColor('font');
212
209
  position: absolute;
213
210
  top: 0;
214
211
  height: 100%;
@@ -220,10 +217,9 @@ $label-weight: $weight-bold;
220
217
 
221
218
  .input {
222
219
  @each $name, $pair in $colors-feedback {
223
- $bg-color: nth($pair, 1);
224
220
  &.is-#{$name} {
225
221
  ~ .icon {
226
- color: getColor($bg-color);
222
+ color: getBGColor($name);
227
223
  }
228
224
  }
229
225
  }
@@ -235,10 +231,9 @@ $label-weight: $weight-bold;
235
231
 
236
232
  .textarea {
237
233
  @each $name, $pair in $colors-feedback {
238
- $bg-color: nth($pair, 1);
239
234
  &.is-#{$name} {
240
235
  ~ .icon {
241
- color: getColor($bg-color)
236
+ color: getBGColor($name)
242
237
  }
243
238
  }
244
239
  }
@@ -259,6 +254,7 @@ $label-weight: $weight-bold;
259
254
  left: 0;
260
255
  border-top-left-radius: $radius;
261
256
  border-bottom-left-radius: $radius;
257
+ padding: 0 24px;
262
258
  }
263
259
 
264
260
  .textarea {
@@ -301,6 +297,7 @@ $label-weight: $weight-bold;
301
297
  right: 0;
302
298
  border-top-right-radius: $radius;
303
299
  border-bottom-right-radius: $radius;
300
+ padding: 0 24px;
304
301
  }
305
302
  }
306
303
 
@@ -331,7 +328,7 @@ $label-weight: $weight-bold;
331
328
  left: 16px;
332
329
  border-left: transparent 1px solid;
333
330
  font-size: $text-12;
334
- color: getColor('grey');
331
+ color: getColor('neutral');
335
332
  transform: translateY(0);
336
333
  transition: all 0.2s ease-out;
337
334
  z-index: zindex('small');
@@ -392,13 +389,14 @@ $label-weight: $weight-bold;
392
389
  &.has-password-discover {
393
390
  .input {
394
391
  ~ .icon:not(:last-child) {
395
- color: getColor('grey');
392
+ color: getColor('neutral');
396
393
  background-color: transparent;
397
394
  right: 45px;
398
395
  cursor: pointer;
396
+
399
397
  &:hover,
400
398
  &:focus {
401
- color: getColor('grey-darker');
399
+ color: getColor('neutral-dark');
402
400
  }
403
401
  }
404
402
  }
@@ -444,6 +442,10 @@ $label-weight: $weight-bold;
444
442
  font-size: $size-large;
445
443
  }
446
444
  }
445
+
446
+ &:has(input[disabled]) {
447
+ @include disabledRulesWithoutBG;
448
+ }
447
449
  }
448
450
 
449
451
  .field-label {
@@ -558,7 +560,7 @@ $label-weight: $weight-bold;
558
560
  }
559
561
 
560
562
  .label {
561
- color: getColor('grey-dark');
563
+ color: getColor('neutral-dark');
562
564
  display: block;
563
565
  font-size: $size-normal;
564
566
  font-weight: $label-weight;
@@ -85,13 +85,13 @@ $size: (
85
85
  }
86
86
 
87
87
  &.is-circled {
88
- border-radius: 100%;
88
+ border-radius: 9999px;
89
89
  text-align: center;
90
90
  }
91
91
 
92
92
  &.is-stretched {
93
93
  transform: skewX(-#{$icon-stretching-level});
94
- border-top-right-radius: $radius-large;
94
+ border-top-right-radius: 9px;
95
95
  background-color: getColor('font');
96
96
 
97
97
  [class^="tri-"],
@@ -240,7 +240,7 @@ $size: (
240
240
  right: 0;
241
241
  width: $icon-dimensions-default;
242
242
  height: $icon-dimensions-default;
243
- border-radius: 100%;
243
+ border-radius: 9999px;
244
244
  background-color: getColor('main');
245
245
  }
246
246
 
@@ -1,37 +1,36 @@
1
1
 
2
- .field .security-gauge-container {
3
- width: 100%;
4
- .security-gauge {
5
- height: 4px;
6
- background: getColor('grey-disabled');
7
- border-radius: 4px;
8
- margin: 8px 0;
9
- .gauge {
10
- height: 100%;
11
- border-radius: 4px;
12
- }
13
- }
2
+ .field .security-gauge-container {
3
+ width: 100%;
14
4
 
15
- .security-gauge-verifies {
16
- display: flex;
17
- justify-content: space-between;
18
- align-items: center;
19
- .security {
20
- display: flex;
21
- align-items: center;
22
- margin-bottom: 4px;
23
- .icon {
24
- position: relative;
25
- color: getColor('grey');
26
- width: 16px;
27
- margin-right: 8px;
28
- font-size: 16px;
29
- margin-bottom: -1px;
5
+ .security-gauge {
6
+ height: 4px;
7
+ background: getColor('disabled');
8
+ border-radius: var(--radius-small);
9
+ margin: 8px 0;
30
10
 
31
- .is-success {
32
- background-color: getColor('success')
33
- }
34
- }
35
- }
36
- }
11
+ .gauge {
12
+ height: 100%;
13
+ border-radius: var(--radius-small);
37
14
  }
15
+ }
16
+
17
+ .security-gauge-verifies {
18
+ display: flex;
19
+ justify-content: space-between;
20
+ align-items: center;
21
+
22
+ .security {
23
+ display: flex;
24
+ align-items: center;
25
+ margin-bottom: 4px;
26
+
27
+ .icon {
28
+ position: relative;
29
+ width: 16px;
30
+ margin-right: 8px;
31
+ font-size: 16px;
32
+ margin-bottom: -1px;
33
+ }
34
+ }
35
+ }
36
+ }
@@ -1,41 +1,43 @@
1
1
  .field {
2
2
 
3
- .has-icons-left {
4
- input {
5
- padding-left: 45px;
6
- }
7
- label {
8
- left: 45px;
9
- }
10
- .icon-left
11
- {
12
- position: absolute;
13
- height: 100%;
14
- width: 45px;
15
- left: 0;
3
+ .has-icons-left {
4
+ input {
5
+ padding-left: 45px;
6
+
7
+ &:active,
8
+ &:focus,
9
+ &:focus-visible:not(.has-icons-left):not(disabled) {
10
+ padding-left: 44px !important;
11
+ }
16
12
 
17
- i {
18
- font-size: 20px;
19
- }
13
+ label {
14
+ left: 45px;
15
+ }
16
+ .icon-left {
17
+ position: absolute;
18
+ height: 100%;
19
+ width: 45px;
20
+ left: 0;
21
+ i {
22
+ font-size: 20px;
20
23
  }
24
+ }
21
25
 
22
26
 
23
27
  }
28
+ }
29
+ .has-icons-right {
30
+ .icon-right {
31
+ position: absolute;
32
+ height: 100%;
33
+ width: 45px;
34
+ z-index: 10;
35
+ right: 0;
36
+ left: auto;
24
37
 
25
- .has-icons-right {
26
- .icon-right
27
- {
28
- position: absolute;
29
- height: 100%;
30
- width: 45px;
31
- z-index: 10;
32
- right: 0;
33
- left: auto;
34
- i {
35
- font-size: 20px;
36
- }
37
- }
38
+ i {
39
+ font-size: 20px;
40
+ }
38
41
  }
39
-
40
-
42
+ }
41
43
  }