@trilogy-ds/styles 0.0.1-beta-3 → 0.0.1-beta.10

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 +10 -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 +522 -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
@@ -1,146 +0,0 @@
1
- .options {
2
- display: flex;
3
- flex-wrap: wrap;
4
- align-items: center;
5
-
6
- @include desktop {
7
- flex-wrap: nowrap;
8
- }
9
-
10
- .field {
11
- margin: 15px 20px 15px 0;
12
- min-width: 70px;
13
-
14
- &:last-child {
15
- margin: 15px 0 15px 0;
16
- }
17
-
18
- input[type=radio] {
19
- @include checkradio;
20
-
21
- + label {
22
- border: 1px solid currentColor;
23
- border-radius: $radius-small;
24
- color: getColor('font');
25
- font-weight: $weight-medium;
26
- padding: 6px 15px;
27
-
28
- &::before {
29
- border-radius: 100%;
30
- border-width: 2px;
31
- border-color: currentColor;
32
- min-width: 12px;
33
- min-height: 12px;
34
- }
35
- }
36
-
37
- &:checked + label {
38
- color: getColor('alternate');
39
- border-color: currentColor;
40
- border-width: 2px;
41
-
42
- &::before {
43
- content: "";
44
- mask-image: url('./assets/icons/all/check.svg');
45
- background-color: getColor('alternate');
46
- border-width: 0;
47
- width: 20px;
48
- height: 20px;
49
- margin: 0 6px 0 -4px;
50
- mask-size: 20px;
51
- }
52
- }
53
-
54
- &[disabled] + label {
55
- cursor: not-allowed;
56
- color: getColor('grey');
57
- border-color: currentColor;
58
-
59
- &::before {
60
- border-color: currentColor;
61
- }
62
- }
63
- }
64
-
65
- &.has-icon {
66
- input[type=radio] {
67
- + label {
68
- padding-right: 45px;
69
-
70
- .icon {
71
- position: absolute;
72
- right: 15px;
73
- top: 50%;
74
- transform: translateY(-50%);
75
- height: 20px;
76
- width: 20px;
77
- }
78
- }
79
-
80
- &:checked + label {
81
- .icon {
82
- color: getColor('alternate');
83
- }
84
- }
85
-
86
- &[disabled] + label {
87
- .icon {
88
- color: getColor('grey');
89
- }
90
- }
91
- }
92
- }
93
-
94
- &.is-multiline {
95
- min-width: 120px;
96
-
97
- input[type=radio] {
98
- + label {
99
- padding-top: 55px;
100
- justify-content: center;
101
- flex-direction: column;
102
-
103
- &::before {
104
- position: absolute;
105
- top: 15px;
106
- left: 15px;
107
- }
108
-
109
- &.is-descriptive > span:not(.icon) {
110
- font-size: $text-12;
111
- font-weight: $weight-medium;
112
- }
113
-
114
- .icon {
115
- position: absolute;
116
- top: 0;
117
- font-size:30px;
118
- width:100%;
119
- }
120
- }
121
-
122
- &:checked + label {
123
- color: getColor('alternate');
124
-
125
- &::before {
126
- margin-top: -5px;
127
- }
128
-
129
- }
130
-
131
- &[disabled] + label {
132
- color: getColor('grey');
133
- }
134
- }
135
- }
136
- }
137
-
138
- &.is-inverted {
139
- input[type=radio]:checked {
140
- + label {
141
- border-color: getColor('font');
142
- color: getColor('font');
143
- }
144
- }
145
- }
146
- }
@@ -1,283 +0,0 @@
1
- @use 'sass:math';
2
-
3
- $timeline-marker-icon-size: 2.85em !default;
4
- $timeline-marker-size: 0.8em !default;
5
- $timeline-marker-border-size: 0.1em !default;
6
- $timeline-line-width: 0.1em !default;
7
- $timeline-line-style: solid !default;
8
- $timeline-content-padding: 1em 0 0 16px !default;
9
- $timeline-rtl-content-padding: 1em 2em 0 0 !default;
10
- $timeline-icon-size: $size-small !default;
11
- $timeline-header-width: 4em !default;
12
- $timeline-item-padding-bottom: 8px !default;
13
- $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
14
-
15
- .timeline {
16
- display: flex;
17
- flex-direction: column;
18
-
19
-
20
- .timeline-header {
21
- width: $timeline-header-width;
22
- min-width: $timeline-header-width;
23
- max-width: $timeline-header-width * 2;
24
- word-wrap: normal;
25
- text-align: center;
26
- display: flex;
27
- justify-content: center;
28
- margin-left: 0;
29
- }
30
-
31
- .timeline-item,
32
- .undone {
33
- display: flex;
34
- display: -ms-flexbox;
35
- display: -webkit-flex;
36
- position: relative;
37
- margin-left: 0;
38
- padding-bottom: $spacing-2;
39
-
40
- .icon {
41
- background-color: getColor('font');
42
- }
43
-
44
- &::before {
45
- content: '';
46
- background-color: getColor('grey-disabled');
47
- display: block;
48
- width: $timeline-line-width;
49
- position: absolute;
50
- top: 43.89px;
51
- left: 3rem;
52
- bottom: 8px;
53
- height: auto;
54
- }
55
-
56
- &.active{
57
- .timeline-marker.is-icon {
58
- background-color: getColor('alternate');
59
-
60
- .icon {
61
- color: getColor('background') !important;
62
- }
63
- }
64
-
65
- .timeline-content {
66
- p.main-content {
67
- font-weight: 800;
68
- }
69
- }
70
-
71
- &::before {
72
- content: '';
73
- background-color: getColor('alternate');
74
- display: block;
75
- width: $timeline-line-width;
76
- position: absolute;
77
- top: 43.89px;
78
- left: 3rem;
79
- bottom: 8px;
80
- height: auto;
81
- }
82
- }
83
-
84
- &.done {
85
- .timeline-marker.is-icon {
86
- background-color: getColor('font');
87
-
88
- .icon {
89
- color: getColor('background') !important;
90
- }
91
- }
92
-
93
- &::before {
94
- content: '';
95
- background-color: getColor('font');
96
- display: block;
97
- width: $timeline-line-width;
98
- position: absolute;
99
- top: 43.89px;
100
- left: 3rem;
101
- bottom: 8px;
102
- height: auto;
103
- }
104
- }
105
-
106
- .timeline-marker {
107
- position: absolute;
108
- background: getColor('grey-light');
109
- border-radius: 100%;
110
- content: '';
111
- display: block;
112
- height: $timeline-marker-size;
113
- left: -($timeline-marker-size * 0.5 - $timeline-marker-border-size *
114
- 0.5);
115
- top: 0;
116
- width: $timeline-marker-size;
117
- margin-left: 30px;
118
-
119
- &.is-image {
120
- @each $dimension in $timeline-image-dimensions {
121
- &.is-#{$dimension}x#{$dimension} {
122
- height: $dimension * 1px;
123
- width: $dimension * 1px;
124
- left: $dimension * 0.5 * -1px;
125
- }
126
- }
127
-
128
- background: getColor('grey-light');
129
- border-radius: 100%;
130
- display: block;
131
- overflow: hidden;
132
- }
133
-
134
- &.is-icon {
135
- display: flex;
136
- align-items: center;
137
- justify-content: center;
138
- height: $timeline-marker-icon-size;
139
- width: $timeline-marker-icon-size;
140
- left: -($timeline-marker-icon-size * 0.5 -
141
- $timeline-marker-border-size * 0.5);
142
- line-height: size(0.75rem);
143
- padding: math.div($timeline-icon-size, 3);
144
- background: getColor('grey-lighter');
145
- border-radius: 100%;
146
-
147
- > i {
148
- color: getColor('font');
149
- font-size: $timeline-icon-size !important;
150
- }
151
- }
152
-
153
- &.is-outlined {
154
- .image {
155
- background: getColor('background');
156
- }
157
-
158
- &.is-icon {
159
- background: getColor('background');
160
-
161
- > i {
162
- color: getColor('grey-light');
163
- }
164
- }
165
- }
166
-
167
-
168
- }
169
-
170
- .timeline-content {
171
- margin-left: 3.7em;
172
- padding: $spacing-3 0 $spacing-4 $spacing-4;
173
-
174
- .heading {
175
- font-size: $text-12;
176
- color: getColor('grey');
177
- font-family: $family-sans-serif;
178
- text-transform: none;
179
- letter-spacing: 0;
180
- line-height: 15px;
181
- font-weight: 500;
182
- color: #707070;
183
- }
184
-
185
- p {
186
- margin-bottom: 4px;
187
- }
188
- }
189
-
190
- @each $name, $pair in $colors-brand-funcionnal {
191
- $color: getColor($name);
192
- $brandName: getColorBrandName($name);
193
-
194
- &.is-#{$brandName} {
195
- &::before {
196
- background-color: $color;
197
- }
198
- }
199
- }
200
- }
201
-
202
- &.is-centered {
203
- .timeline-header {
204
- display: flex;
205
- width: 100%;
206
- align-self: center;
207
- }
208
-
209
- .timeline-item {
210
- width: 50%;
211
- align-self: flex-end;
212
-
213
- &:nth-of-type(2n) {
214
- align-self: flex-start;
215
- margin-left: 0;
216
- margin-right: $timeline-header-width * 0.5;
217
-
218
- &::before {
219
- right: -$timeline-line-width;
220
- left: auto;
221
- }
222
-
223
- .timeline-marker {
224
- left: auto;
225
- right: -(
226
- $timeline-marker-size * 0.5 -
227
- $timeline-marker-border-size * 0.5
228
- ) - $timeline-line-width;
229
-
230
- &.is-image {
231
- @each $dimension in $timeline-image-dimensions {
232
- &.is-#{$dimension}x#{$dimension} {
233
- left: auto;
234
- right: $dimension * 0.5 * -1px;
235
- }
236
- }
237
- }
238
-
239
- &.is-icon {
240
- left: auto;
241
- right: -(
242
- $timeline-marker-icon-size * 0.5 -
243
- $timeline-marker-border-size * 0.5
244
- ) - $timeline-line-width;
245
- }
246
- }
247
-
248
- .timeline-content {
249
- padding: $timeline-rtl-content-padding;
250
- text-align: right;
251
- display: flex;
252
- flex-direction: column;
253
- align-items: flex-end;
254
- flex-basis: 100%;
255
- }
256
- }
257
-
258
- &:nth-of-type(2n + 1) {
259
- &::before {
260
- content: '';
261
- background-color: getColor('grey-disabled');
262
- display: block;
263
- width: $timeline-line-width;
264
- height: 100%;
265
- position: absolute;
266
- top: 0;
267
- }
268
- }
269
-
270
- @each $name, $pair in $colors-brand-funcionnal {
271
- $color: getColor($name);
272
- $color-invert: invertColor($name);
273
- $brandName: getColorBrandName($name);
274
-
275
- &.is-#{$brandName} {
276
- &::before {
277
- background-color: $color;
278
- }
279
- }
280
- }
281
- }
282
- }
283
- }