@trilogy-ds/styles 0.0.1-beta.9 → 0.0.4-beta-v4

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 (94) hide show
  1. package/dist/default/trilogy-mangled.css +1 -1
  2. package/dist/default/trilogy-partials.css +1 -1
  3. package/dist/default/trilogy.css +1 -1
  4. package/framework/src/base/_color.scss +9 -39
  5. package/framework/src/base/_generic.scss +4 -1
  6. package/framework/src/base/_helpers.scss +13 -38
  7. package/framework/src/base/_loading.scss +8 -1
  8. package/framework/src/base/_reset.scss +8 -3
  9. package/framework/src/components/_accordion.scss +53 -88
  10. package/framework/src/components/_all.scss +1 -7
  11. package/framework/src/components/_autolayout.scss +302 -0
  12. package/framework/src/components/_breadcrumb.scss +39 -34
  13. package/framework/src/components/_card.scss +8 -79
  14. package/framework/src/components/_countdown.scss +49 -47
  15. package/framework/src/components/_divider.scss +10 -15
  16. package/framework/src/components/_fab.scss +25 -38
  17. package/framework/src/components/_modal.scss +161 -158
  18. package/framework/src/components/_otp.scss +10 -29
  19. package/framework/src/components/_pagination.scss +59 -161
  20. package/framework/src/components/_plus-symbol.scss +1 -1
  21. package/framework/src/components/_popover.scss +260 -260
  22. package/framework/src/components/_price.scss +119 -170
  23. package/framework/src/components/_product-tour.scss +2 -4
  24. package/framework/src/components/_progress-radial.scss +24 -19
  25. package/framework/src/components/_range.scss +73 -72
  26. package/framework/src/components/_segmented-control.scss +51 -53
  27. package/framework/src/components/_stepper.scss +42 -222
  28. package/framework/src/components/_tabs.scss +46 -81
  29. package/framework/src/components/_timeline.scss +27 -112
  30. package/framework/src/elements/_alert.scss +13 -10
  31. package/framework/src/elements/_all.scss +1 -4
  32. package/framework/src/elements/_autocomplete.scss +32 -0
  33. package/framework/src/elements/_badge.scss +67 -61
  34. package/framework/src/elements/_box.scss +64 -161
  35. package/framework/src/elements/_button.scss +15 -141
  36. package/framework/src/elements/_checkbox.scss +29 -26
  37. package/framework/src/elements/_chips.scss +69 -85
  38. package/framework/src/elements/_container.scss +7 -39
  39. package/framework/src/elements/_entry.scss +76 -88
  40. package/framework/src/elements/_form.scss +26 -23
  41. package/framework/src/elements/_icon.scss +4 -4
  42. package/framework/src/elements/_image.scss +50 -40
  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 +45 -44
  47. package/framework/src/elements/_loader.scss +2 -2
  48. package/framework/src/elements/_other.scss +0 -37
  49. package/framework/src/elements/_paragraph.scss +35 -69
  50. package/framework/src/elements/_progress.scss +33 -22
  51. package/framework/src/elements/_radio.scss +45 -31
  52. package/framework/src/elements/_select.scss +85 -304
  53. package/framework/src/elements/_sticker.scss +12 -27
  54. package/framework/src/elements/_switch.scss +101 -99
  55. package/framework/src/elements/_table.scss +175 -228
  56. package/framework/src/elements/_tag.scss +104 -105
  57. package/framework/src/elements/_textarea.scss +113 -105
  58. package/framework/src/elements/_title.scss +89 -87
  59. package/framework/src/elements/_toaster.scss +4 -5
  60. package/framework/src/grid/_columns.scss +257 -764
  61. package/framework/src/grid/_rows.scss +45 -38
  62. package/framework/src/layout/_all.scss +0 -1
  63. package/framework/src/layout/_hero.scss +89 -215
  64. package/framework/src/layout/_section.scss +5 -29
  65. package/framework/src/theming/_all.scss +3 -0
  66. package/framework/src/theming/buttons_partial.scss +32 -0
  67. package/framework/src/theming/common_partials.scss +10 -0
  68. package/framework/src/theming/links_partial.scss +20 -0
  69. package/framework/src/utilities/_a11y.scss +13 -0
  70. package/framework/src/utilities/_all.scss +4 -0
  71. package/framework/src/utilities/_background.scss +19 -0
  72. package/framework/src/utilities/_colors.scss +40 -0
  73. package/framework/src/utilities/_controls.scss +38 -49
  74. package/framework/src/utilities/_derived-variables.scss +4 -15
  75. package/framework/src/utilities/_initial-variables.scss +4 -36
  76. package/framework/src/utilities/_mixins.scss +483 -592
  77. package/framework/src/utilities/_pre.scss +1 -0
  78. package/package.json +3 -3
  79. package/framework/src/components/_autolayout2.scss +0 -38
  80. package/framework/src/components/_disclaimer.scss +0 -84
  81. package/framework/src/components/_dropdown.scss +0 -128
  82. package/framework/src/components/_level.scss +0 -120
  83. package/framework/src/components/_media.scss +0 -64
  84. package/framework/src/components/_menu.scss +0 -213
  85. package/framework/src/components/_search-modal.scss +0 -197
  86. package/framework/src/components/_slices.scss +0 -316
  87. package/framework/src/components/_slider.scss +0 -92
  88. package/framework/src/components/_switch.scss +0 -209
  89. package/framework/src/elements/_checkradio.scss +0 -173
  90. package/framework/src/elements/_dot.scss +0 -6
  91. package/framework/src/elements/_notification.scss +0 -151
  92. package/framework/src/elements/_options.scss +0 -146
  93. package/framework/src/elements/_timeline.scss +0 -283
  94. package/framework/src/layout/_toolbar.scss +0 -100
@@ -1,60 +1,47 @@
1
1
  .fab {
2
- background-color: getColor('alternate');
3
- border: 1px getColor('alternate');
2
+ background-color: getColor('font');
4
3
  border-radius: 16px;
5
4
  cursor: pointer;
6
5
  height: 56px;
7
- color: white;
8
6
  padding: $spacing-4;
9
7
  display: inline-flex;
10
8
  align-items: center;
11
9
  box-sizing: border-box;
12
- transition: 0.4s;
13
-
14
- box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
15
-
16
- font-style: normal;
10
+ transition: max-width 500ms ease-out;
11
+ color: white;
12
+ border: 0;
13
+ box-shadow: 0px 3px 6px 0px #00000033;
14
+ font-size: 16px;
17
15
  font-weight: 600;
18
- font-size: 0;
19
16
  line-height: 20px;
20
-
21
17
  z-index: 9;
22
-
23
- &:hover, &.is-extended {
24
- background-color: getVariantColor('alternate',1);
25
- border-color:getVariantColor('alternate',2);
26
- transition: 0.5s;
27
- font-size: initial;
28
-
29
- .icon,
30
- .icon .is-small,
31
- .icon .is-medium,
32
- .icon .is-large {
33
- margin-right: 16px;
34
- }
35
- }
36
-
37
- &:focus, &:focus-visible, &:focus-within {
38
- background-color:getVariantColor('alternate', 4);
39
- border-color: getVariantColor('alternate', 4);
40
- outline: 1px auto getVariantColor('alternate', 4);
18
+ overflow: hidden;
19
+ max-width: 54px;
20
+ white-space: nowrap;
21
+
22
+ #{$hoverSelector}, &.is-extended, &:focus, &:focus-visible, &:focus-within {
23
+ background: linear-gradient(
24
+ to top,
25
+ rgba(0, 0, 0, 0.25),
26
+ rgba(0, 0, 0, 0.25)
27
+ ) getColor('font');
28
+ max-width: 300px;
41
29
  }
42
30
 
43
31
  &:active {
44
- background-color: getVariantColor('alternate', 5);
45
- border-color: getVariantColor('alternate', 5);
46
- }
47
-
48
- .disabled {
49
- background-color: getColor('bg-disabled');
50
- color: getColor('grey-disabled');
32
+ background: linear-gradient(
33
+ to top,
34
+ rgba(0, 0, 0, 0.25),
35
+ rgba(0, 0, 0, 0.25)
36
+ ) getColor('font');
51
37
  }
52
38
 
53
39
  .icon {
40
+ flex: none;
54
41
  font-size: 24px !important;
55
42
  margin-left: -6px;
56
- margin-right: -6px;
43
+ margin-right: 8px;
57
44
  color: white;
58
- }
59
45
 
46
+ }
60
47
  }
@@ -2,207 +2,210 @@ $modal-content-width: 640px !default;
2
2
  $modal-content-margin-mobile: 20px !default;
3
3
  $modal-close-dimensions: 40px !default;
4
4
  $modal-dimensions: (
5
- 'xsmall': 40vw,
6
- 'small': 50vw,
7
- 'medium': 60vw,
8
- 'large': 70vw,
9
- 'xlarge': 80vw
5
+ 'xsmall': 40vw,
6
+ 'small': 50vw,
7
+ 'medium': 60vw,
8
+ 'large': 70vw,
9
+ 'xlarge': 80vw
10
10
  );
11
11
 
12
12
  body:has(.modal.is-active) {
13
- height: 100%;
14
- overflow: hidden
13
+ height: 100%;
14
+ overflow: hidden
15
15
  }
16
16
 
17
17
  .modal {
18
+ @include overlay;
19
+
20
+ position: fixed;
21
+ z-index: zindex('modal');
22
+ overflow: hidden;
23
+ display: flex;
24
+ flex-direction: column;
25
+ align-items: center;
26
+ justify-content: flex-end;
27
+ visibility: hidden;
28
+ opacity: 0;
29
+ transition: opacity 250ms ease-in-out,
30
+ visibility 0ms linear 250ms;
31
+
32
+ // overlay
33
+ &::after {
18
34
  @include overlay;
19
35
 
20
- position: fixed;
21
- z-index: zindex('modal');
22
- overflow: hidden;
23
- display: flex;
24
- flex-direction: column;
25
- align-items: center;
26
- justify-content: flex-end;
27
- visibility: hidden;
28
- opacity: 0;
29
- transition:
30
- opacity 250ms ease-in-out,
31
- visibility 0ms linear 250ms;
32
-
33
- // overlay
34
- &::after {
35
- @include overlay;
36
+ content: '';
37
+ background-color: rgba(#000, 0.86);
38
+ }
39
+
40
+ &.is-active {
41
+ opacity: 1;
42
+ visibility: inherit;
43
+ transition: opacity 250ms ease-in-out,
44
+ visibility 0ms linear;
36
45
 
37
- content: '';
38
- background-color: rgba(#000, 0.86);
46
+ .modal-content {
47
+ transform: translateY(0);
39
48
  }
49
+ }
40
50
 
41
- &.is-active {
42
- opacity: 1;
43
- visibility: inherit;
44
- transition:
45
- opacity 250ms ease-in-out,
46
- visibility 0ms linear;
51
+ // gestion des tailles
52
+ @include tablet {
53
+ justify-content: center;
54
+ @each $dimension in $dimensions-extended {
55
+ &.is-#{$dimension} {
47
56
  .modal-content {
48
- transform: translateY(0);
57
+ width: map-get($modal-dimensions, $dimension);
49
58
  }
59
+ }
50
60
  }
61
+ }
62
+
63
+ // spécificité pour le bouton en position: relative par défaut
64
+ .button {
65
+ position: static;
66
+ }
67
+
68
+ .modal-content {
69
+ background-color: getColor('background');
70
+ border-radius: var(--radius) var(--radius) 0 0;
71
+ color: getColor('font');
72
+ overflow: auto;
73
+ position: relative;
74
+ margin: 0 $modal-content-margin-mobile;
75
+ max-height: calc(100vh - 40px);
76
+ width: 100%;
77
+ z-index: zindex('tiny');
78
+ transition: transform ease-in-out 250ms;
79
+ transform: translateY(100%);
51
80
 
52
- // gestion des tailles
53
81
  @include tablet {
54
- justify-content: center;
55
- @each $dimension in $dimensions-extended {
56
- &.is-#{$dimension} {
57
- .modal-content {
58
- width: map-get($modal-dimensions, $dimension);
59
- }
60
- }
61
- }
82
+ max-height: calc(100vh - 120px);
83
+ width: $modal-content-width;
84
+ border-radius: $radius;
62
85
  }
63
86
 
64
- // spécificité pour le bouton en position: relative par défaut
65
- .button {
66
- position: static;
87
+ // Annulation des propriétés du composant box, se trouvant dans une modal
88
+ > .box {
89
+ background-color: transparent;
90
+ border-radius: 0;
91
+ box-shadow: none;
92
+ padding: 0;
93
+ max-height: inherit;
94
+
95
+ .box-content {
96
+ background-color: transparent;
97
+ border-radius: 0;
98
+ padding: 0;
99
+ padding-bottom: 30px;
100
+ margin: 0;
101
+ text-align: inherit;
102
+ }
67
103
  }
68
104
 
69
- // ancien overlay : n'a plus d'utilité mais conservée pour rétrocompatibilité
70
- .modal-background {
71
- display: none;
105
+ // If Close Icon Modal & Title Modal are sibling elements, override margin
106
+ .modal-close ~ .modal-title {
107
+ margin-top: -32px;
72
108
  }
73
109
 
74
- .modal-content {
75
- background-color: getColor('background');
76
- border-radius: $radius $radius 0 0;
77
- color: getColor('font');
78
- overflow: auto;
79
- position: relative;
80
- padding: 0 30px 30px;
81
- margin: 0 $modal-content-margin-mobile;
82
- max-height: calc(100vh - 40px);
110
+ .modal-header {
111
+ padding: $spacing-5;
112
+ color: getColor('font');
113
+ font-family: $family-sans-serif;
114
+ font-size: $size-3;
115
+ font-weight: $weight-semibold;
116
+ line-height: 1.1;
117
+ background-color: getColor('background');
118
+ z-index: zindex('small');
119
+ position: sticky;
120
+ top: 0;
121
+ width: 100%;
122
+ word-wrap: break-word;
123
+ display: flex;
124
+ flex-direction: row-reverse;
125
+ justify-content: space-between;
126
+
127
+ &:has(.icon) {
83
128
  text-align: center;
84
- width: 100%;
85
- z-index: zindex('tiny');
86
- transition: transform ease-in-out 250ms;
87
- transform: translateY(100%);
88
-
89
- &.is-fullwidth {
90
- width: 100% !important;
91
- }
92
-
93
- @include tablet {
94
- max-height: calc(100vh - 120px);
95
- width: $modal-content-width;
96
- border-radius: $radius;
97
- }
98
-
99
- // Annulation des propriétés du composant box, se trouvant dans une modal
100
- > .box {
101
- background-color: transparent;
102
- border-radius: 0;
103
- box-shadow: none;
104
- padding: 0;
105
- max-height: inherit;
106
-
107
- .box-content {
108
- background-color: transparent;
109
- border-radius: 0;
110
- padding: 0;
111
- padding-bottom: 30px;
112
- margin: 0;
113
- text-align: inherit;
114
- }
115
- }
116
-
117
- .modal-footer {
118
- position: sticky;
119
- background: getColor('background');
120
- bottom: -30px;
121
- margin: 30px -30px -30px;
122
- padding: 20px 30px;
123
- }
129
+ }
124
130
 
125
- // If Close Icon Modal & Title Modal are sibling elements, override margin
126
- .modal-close ~ .modal-title {
127
- margin-top: -32px;
128
- }
129
- }
131
+ @include desktop {
132
+ font-size: $size-3-desktop;
133
+ }
130
134
 
131
- .modal-close {
135
+ .modal-close {
132
136
  @include delete;
133
137
 
134
138
  background-color: getColor('background');
135
- position: sticky;
136
- top: 20px;
137
- left: 100%;
138
139
  display: block;
139
140
  height: $modal-close-dimensions;
140
141
  width: $modal-close-dimensions;
141
142
  z-index: zindex('medium');
142
143
 
143
- &:hover {
144
- background-color: getColor('grey-light');
144
+ #{$hoverSelector} {
145
+ background-color: getColor('neutral-fade');
145
146
  }
146
147
 
147
148
  &::after,
148
149
  &::before {
149
- background-color: getColor('font');
150
+ background-color: getColor('font');
150
151
  }
152
+ }
151
153
  }
152
154
 
153
- .modal-title {
154
- color: getColor('font');
155
- font-family: $family-sans-serif;
156
- font-size: $size-3;
157
- font-weight: $weight-semibold;
158
- line-height: 1.1;
159
- background-color: getColor('background');
160
- z-index: zindex('small');
161
- position: sticky;
162
- top: 0;
163
- padding: 20px 0;
164
- width: 100%;
165
- word-wrap: break-word;
166
-
167
- @include desktop {
168
- font-size: $size-3-desktop;
169
- }
155
+ .modal-body {
156
+ padding: $spacing-5;
157
+ padding-top: 0;
158
+ padding-bottom: 0;
170
159
  }
171
160
 
172
- // version "panel" de la modal
173
- &.is-panel {
174
- &::after {
175
- position: fixed;
176
- }
161
+ .modal-footer {
162
+ padding: $spacing-5;
163
+ position: sticky;
164
+ width: 100%;
165
+ background: getColor('background');
166
+ bottom: 0;
167
+
168
+ @include tablet {
169
+ display: flex;
170
+ justify-content: flex-end;
171
+ }
172
+ }
173
+ }
177
174
 
178
- .modal-content {
179
- border-radius: 0;
180
- position: fixed;
181
- right: 0;
182
- top: 0;
183
- min-height: 100%;
184
- height: 100%;
185
- max-height: none;
186
- margin: 0;
187
- text-align: left;
188
- display: flex;
189
- flex-direction: column;
190
- align-items: flex-start;
191
- transform: translateX(100%);
192
-
193
- @include tablet {
194
- max-width: 375px;
195
- }
196
-
197
- .modal-footer {
198
- margin-top: auto;
199
- }
200
- }
175
+ // version "panel" de la modal
176
+ &.is-panel {
177
+ &::after {
178
+ position: fixed;
179
+ }
201
180
 
202
- &.is-active {
203
- .modal-content {
204
- transform: translateX(0);
205
- }
206
- }
181
+ .modal-content {
182
+ border-radius: 0;
183
+ position: fixed;
184
+ right: 0;
185
+ top: 0;
186
+ min-height: 100%;
187
+ height: 100%;
188
+ max-height: none;
189
+ margin: 0;
190
+ text-align: left;
191
+ display: flex;
192
+ flex-direction: column;
193
+ align-items: flex-start;
194
+ transform: translateX(100%);
195
+
196
+ @include tablet {
197
+ max-width: 375px;
198
+ }
199
+
200
+ .modal-footer {
201
+ margin-top: auto;
202
+ }
203
+ }
204
+
205
+ &.is-active {
206
+ .modal-content {
207
+ transform: translateX(0);
208
+ }
207
209
  }
210
+ }
208
211
  }
@@ -3,15 +3,17 @@
3
3
  flex-wrap: nowrap;
4
4
 
5
5
  .otp {
6
+ @include hover();
6
7
  outline: none;
7
8
  border: 1px solid currentColor;
8
- border-radius: 4px;
9
+ border-radius: var(--radius-small);
9
10
  background: transparent;
10
11
  width: 33px;
11
12
  height: 40px;
12
13
  margin: 4px 4px 0 4px;
13
14
  text-align: center;
14
- color: getColor('grey');
15
+ color: getColor('neutral');
16
+
15
17
  &:first-child {
16
18
  margin: 4px 4px 0 0;
17
19
  }
@@ -24,13 +26,7 @@
24
26
 
25
27
  &.is-danger {
26
28
  .otp {
27
- border: 2px solid getColor('error');
28
- }
29
- }
30
-
31
- &.is-tertiary {
32
- .otp {
33
- border: 2px solid getColor('font');
29
+ border: 1px solid getColor('error');
34
30
  }
35
31
  }
36
32
 
@@ -42,7 +38,7 @@
42
38
 
43
39
  &.is-focus {
44
40
  .otp {
45
- border: 2px solid getColor('alternate');;
41
+ border: 1px solid getColor('font');;
46
42
  color: getColor('font')
47
43
  }
48
44
  }
@@ -50,43 +46,28 @@
50
46
 
51
47
  &.is-error {
52
48
  .otp {
53
- border: 2px solid getColor('error');
49
+ border: 1px solid getColor('error');
54
50
  color: getColor('font')
55
51
  }
56
52
  }
57
53
 
58
- &.is-tertiary {
59
- .otp {
60
- border: 2px solid getColor('font');
61
- }
62
- }
63
-
64
- &.is-disabled {
65
- .otp {
66
- border: none !important;
67
- background: getColor('grey-disabled');
68
- pointer-events: none;
69
- color: getColor('grey');
70
- }
71
- }
72
-
73
54
  }
74
55
 
75
56
  .otp-list:focus-within {
76
57
  .otp {
77
- border: 2px solid getColor('alternate');;
58
+ border: 1px solid getColor('font');;
78
59
  color: getColor('font');
79
60
  }
80
61
  }
81
62
 
82
63
  .otp-list.is-error:focus-within {
83
64
  .otp {
84
- border: 2px solid getColor('error');
65
+ border: 1px solid getColor('error');
85
66
  color: getColor('font');
86
67
  }
87
68
  }
88
69
 
89
- .otp-error-message {
70
+ .help {
90
71
  font-size: $text-12;
91
72
  margin-top: 4px;
92
73
  }