@trilogy-ds/styles 4.14.4 → 4.15.0-beta-1

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.
@@ -26,7 +26,7 @@
26
26
 
27
27
  td,
28
28
  th {
29
- border: var(--border);
29
+ border: 1px solid #{getColor('stroke-fade')};
30
30
  border-width: 0;
31
31
  padding: 20px;
32
32
  vertical-align: top;
@@ -71,7 +71,7 @@
71
71
  }
72
72
 
73
73
  td {
74
- border-bottom: var(--border);
74
+ border-bottom: 1px solid #{getColor('stroke-fade')};
75
75
 
76
76
  > p {
77
77
  margin: 0;
@@ -153,15 +153,15 @@
153
153
  }
154
154
 
155
155
  &.has-border-all {
156
- border: var(--border);
156
+ border: 1px solid #{getColor('stroke-fade')};
157
157
 
158
158
  th {
159
- border-right: var(--border);
159
+ border-right: 1px solid #{getColor('stroke-fade')};
160
160
  }
161
161
 
162
162
  td {
163
163
  &:not(:last-child) {
164
- border-right: var(--border);
164
+ border-right: 1px solid #{getColor('stroke-fade')};
165
165
  }
166
166
  }
167
167
  }
@@ -169,13 +169,13 @@
169
169
  &.has-border-inner {
170
170
  th {
171
171
  &:not(:last-child) {
172
- border-right: var(--border);
172
+ border-right: 1px solid #{getColor('stroke-fade')};
173
173
  }
174
174
  }
175
175
 
176
176
  td {
177
177
  &:not(:last-child) {
178
- border-right: var(--border);
178
+ border-right: 1px solid #{getColor('stroke-fade')};
179
179
  }
180
180
  }
181
181
  }
@@ -215,7 +215,7 @@
215
215
 
216
216
  tr:not(:first-child) {
217
217
  td {
218
- border-top: var(--border);
218
+ border-top: 1px solid #{getColor('stroke-fade')};
219
219
  }
220
220
  }
221
221
 
@@ -0,0 +1,71 @@
1
+ $CIRCLE_SIZE: 172px;
2
+ $CURSOR_SIZE: 30px;
3
+
4
+ .timepicker-circular {
5
+
6
+ .circle_container {
7
+ width: $CIRCLE_SIZE;
8
+ height: $CIRCLE_SIZE;
9
+ position: relative;
10
+
11
+ &-cursor {
12
+ position: absolute;
13
+ width: $CURSOR_SIZE;
14
+ height: $CURSOR_SIZE;
15
+ border-radius: 50%;
16
+ background-color: getColor('neutral-fade');
17
+ border: 2px solid getColor('main');
18
+ z-index: 20;
19
+ }
20
+
21
+ &-inputs {
22
+ position: absolute;
23
+ display: flex;
24
+ flex-direction:row;
25
+ align-items: center;
26
+ justify-content: center;
27
+ z-index: 30;
28
+ left: 50%;
29
+ top: 50%;
30
+ transform: translate(-50%, -50%);
31
+ cursor:default;
32
+ pointer-events:none;
33
+ gap: $spacing-1;
34
+
35
+ &-wrapper {
36
+ display: flex;
37
+ align-items: center;
38
+ flex-direction: column;
39
+ width: 40px;
40
+ gap: $spacing-1;
41
+ pointer-events: auto
42
+ }
43
+
44
+ &-wrapper-input {
45
+ @include input;
46
+ width: 36px;
47
+ height: 36px;
48
+ text-align: center;
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: center;
52
+ cursor: default;
53
+ pointer-events: auto
54
+ }
55
+
56
+ &-separator {
57
+ height: 36px;
58
+ margin-bottom: 10px
59
+ }
60
+ }
61
+ }
62
+
63
+ .non_draggable_zone {
64
+ position: absolute;
65
+ width: 120px;
66
+ height: 120px;
67
+ border-radius: 50%;
68
+ z-index: 25;
69
+ cursor: default;
70
+ }
71
+ }
@@ -0,0 +1,79 @@
1
+ $CIRCLE_SIZE: 172px;
2
+ $CURSOR_SIZE: 30px;
3
+
4
+ .timepicker {
5
+
6
+ &-menu {
7
+ position: absolute;
8
+ left: 0;
9
+ right: 0;
10
+ background-color: getColor('background');
11
+ border-radius: 8px;
12
+ padding: 16px;
13
+ box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
14
+ z-index: 1000;
15
+ max-height: 300px;
16
+ max-width: 450px;
17
+ overflow: hidden;
18
+ display: flex;
19
+ flex-direction: column;
20
+ gap: 8px;
21
+
22
+ &-title {
23
+ flex:1
24
+
25
+ }
26
+
27
+ .flex-box {
28
+ margin-bottom: 0px !important;
29
+ }
30
+
31
+ &-divider {
32
+ position: absolute;
33
+ left: 50%;
34
+ top: 50%;
35
+ transform: translate(-50%, -50%);
36
+ height: 90%;
37
+ background-color: getColor('neutral');
38
+ width: 1px;
39
+ }
40
+ }
41
+
42
+ &-selector {
43
+ overflow-y: auto;
44
+ overflow-x: hidden,;
45
+ padding: 8px 0px;
46
+ scrollbar-width: none;
47
+ -ms-overflow-style: none;
48
+ flex: 1;
49
+ gap: 8px;
50
+ display: flex;
51
+ flex-direction: column;
52
+
53
+ &-item {
54
+ padding: 12px;
55
+ border-radius: 8px;
56
+ text-align: center;
57
+ cursor: pointer;
58
+ user-select: none;
59
+ height: 36px;
60
+ display: flex;
61
+ align-items: center;
62
+ justify-content: center;
63
+
64
+ &.is-active {
65
+ background-color: getColor('main');
66
+ color: getColor('background');
67
+ }
68
+
69
+ &:hover:not(.is-active) {
70
+ @include hoverRules();
71
+ }
72
+ }
73
+ }
74
+
75
+ div::-webkit-scrollbar {
76
+ display: none;
77
+ }
78
+
79
+ }
@@ -44,6 +44,61 @@
44
44
  display: flex;
45
45
  gap: 16px;
46
46
  flex-wrap: wrap;
47
+
48
+ &.is-grid {
49
+ display: grid;
50
+
51
+ & > .radio-tile {
52
+ width: 100%;
53
+ }
54
+ }
55
+ @for $i from 1 through 12 {
56
+ &.is-grid-cols-#{$i} {
57
+ grid-template-columns: repeat(#{$i}, 1fr);
58
+ }
59
+ }
60
+ @include mobile {
61
+ @for $i from 1 through 12 {
62
+ &.is-grid-cols-mobile-#{$i} {
63
+ grid-template-columns: repeat(#{$i}, 1fr);
64
+ }
65
+ }
66
+ }
67
+ @include tablet {
68
+ @for $i from 1 through 12 {
69
+ &.is-grid-cols-tablet-#{$i} {
70
+ grid-template-columns: repeat(#{$i}, 1fr);
71
+ }
72
+ }
73
+ }
74
+ @include touch {
75
+ @for $i from 1 through 12 {
76
+ &.is-grid-cols-touch-#{$i} {
77
+ grid-template-columns: repeat(#{$i}, 1fr);
78
+ }
79
+ }
80
+ }
81
+ @include desktop {
82
+ @for $i from 1 through 12 {
83
+ &.is-grid-cols-desktop-#{$i} {
84
+ grid-template-columns: repeat(#{$i}, 1fr);
85
+ }
86
+ }
87
+ }
88
+ @include widescreen {
89
+ @for $i from 1 through 12 {
90
+ &.is-grid-cols-widescreen-#{$i} {
91
+ grid-template-columns: repeat(#{$i}, 1fr);
92
+ }
93
+ }
94
+ }
95
+ @include fullhd {
96
+ @for $i from 1 through 12 {
97
+ &.is-grid-cols-fullhd-#{$i} {
98
+ grid-template-columns: repeat(#{$i}, 1fr);
99
+ }
100
+ }
101
+ }
47
102
  }
48
103
 
49
104
  //BOTH
@@ -155,20 +210,59 @@
155
210
  }
156
211
  }
157
212
 
213
+ .#{$type}-tiles:not(.is-grid) {
214
+ .#{$type}-tile:not(.is-horizontal) {
215
+ max-width: 160px;
216
+ }
217
+ }
218
+
158
219
  //TILE ONLY
159
220
  .#{$type}-tile {
160
221
  position: relative;
161
- max-width: 160px;
162
- display: inline-block;
222
+ display: flex;
223
+ flex-direction: column;
224
+ position: relative;
225
+ padding: 40px 16px 16px;
226
+ border: var(--border);
227
+ border-radius: var(--radius);
228
+ box-sizing: border-box;
229
+ background-color: getColor('background');
163
230
  text-align: center;
231
+ align-items: center;
232
+ font-size: 14px;
164
233
 
165
- input:disabled,
166
- input:disabled:checked {
167
- & ~ label.#{$type}-label {
168
- @include disabledRules;
234
+ &[aria-disabled="true"] {
235
+ @include disabledRules;
236
+ filter: none;
237
+ label.#{$type}-label {
238
+ cursor: not-allowed !important;
169
239
  }
170
240
  }
171
- &:has(input:focus-visible) label.#{$type}-label{
241
+
242
+ &[aria-checked="true"] {
243
+ border-color: getColor('main');
244
+ border-width: 2px;
245
+ padding: 15px;
246
+ padding-top: 39px;
247
+ label.radio-label:before {
248
+ top: 15px;
249
+ left: 15px;
250
+ }
251
+ .#{$type}-sticker {
252
+ top: -1px;
253
+ right: 15px;
254
+ }
255
+ }
256
+
257
+ &:not([aria-disabled="true"]) {
258
+ cursor: pointer;
259
+ }
260
+
261
+ &:not([aria-disabled="true"]):not([aria-checked="true"]) {
262
+ @include label-states;
263
+ }
264
+
265
+ &:has(input:focus-visible) {
172
266
  outline: 1px solid;
173
267
  }
174
268
 
@@ -180,67 +274,22 @@
180
274
  margin-right: 0;
181
275
  }
182
276
 
277
+ .#{$type}-content {
278
+ display: flex;
279
+ flex-direction: column;
280
+ }
281
+
183
282
  label.#{$type}-label {
184
283
  display: block;
185
- position: relative;
186
- padding: 40px 16px 16px;
187
- border: var(--border);
188
- border-radius: var(--radius);
189
- box-sizing: border-box;
190
- background-color: getColor('background');
191
- height: 100%;
192
-
284
+ font-weight: bold;
285
+ width: 100%;
286
+ display: block;
287
+ font-size: 16px;
288
+ order: - 1;
193
289
  &:before {
194
290
  top: 16px;
195
291
  left: 16px;
196
292
  }
197
-
198
- span.#{$type}-title {
199
- font-weight: bold;
200
- width: 100%;
201
- display: block;
202
- font-size: 16px;
203
- }
204
- }
205
-
206
- input {
207
- &:not(:disabled):not(:checked) ~ label.radio-label {
208
- @include label-states;
209
- }
210
-
211
- &:not(:disabled) ~ label.checkbox-label {
212
- @include label-states;
213
- }
214
-
215
- &:checked:not(:disabled) ~ label.#{$type}-label {
216
- border-color: getColor('main');
217
- border-width: 2px;
218
- padding: 15px;
219
- padding-top: 39px;
220
-
221
- &:before {
222
- top: 15px;
223
- left: 15px;
224
- }
225
-
226
- span.#{$type}-title {
227
- color: getColor('main');
228
- }
229
- }
230
-
231
- &:disabled {
232
- & ~ label.#{$type}-label {
233
- &:before {
234
- border-color: getColor('disabled') !important;
235
- }
236
- }
237
- }
238
-
239
- &:disabled:checked ~ label.#{$type}-label {
240
- .checkbox-title {
241
- color: getColor('disabled');
242
- }
243
- }
244
293
  }
245
294
 
246
295
  .#{$type}-sticker {
@@ -251,44 +300,34 @@
251
300
  }
252
301
 
253
302
  &.is-horizontal {
254
- display: flex;
255
- justify-content: space-between;
303
+ flex-direction: row;
256
304
  align-items: center;
257
305
  max-width: unset;
258
306
  width: 100%;
259
307
  position: relative;
308
+ text-align: left;
309
+ padding: $spacing-4 $spacing-4 $spacing-4 $spacing-8;
310
+ align-items: center;
260
311
 
261
312
  &.is-narrow {
262
313
  width: fit-content;
263
314
  }
264
315
 
265
- input {
266
- &:checked:not(:disabled) ~ label.#{$type}-label {
267
- padding: ($spacing-4 - 1px) ($spacing-4 - 1px) ($spacing-4 - 1px) ($spacing-8 - 1px);
268
- }
269
-
270
- }
271
-
272
316
  label.#{$type}-label {
273
- width: 100%;
274
- display: flex;
275
- align-items: center;
276
- justify-content: flex-start;
277
- text-align: left;
278
- padding: $spacing-4 $spacing-4 $spacing-4 $spacing-8;
279
-
280
-
281
317
  &:before,
282
318
  &:after {
283
319
  top: 50% !important;
284
320
  transform: translateY(-50%);
285
321
  }
286
- > .icon {
287
- margin-right: $spacing-4;
288
- }
322
+ }
289
323
 
324
+ & > .icon {
325
+ margin-right: $spacing-4;
290
326
  }
291
327
 
328
+ &[aria-checked="true"] {
329
+ padding: ($spacing-4 - 1px) ($spacing-4 - 1px) ($spacing-4 - 1px) ($spacing-8 - 1px);
330
+ }
292
331
  }
293
332
  }
294
333
  }
@@ -12,6 +12,7 @@ $suffix: '';
12
12
  $colors: (
13
13
  'background': [#fff, 'white', 'main'],
14
14
  'stroke':[ #727272, 'stroke', 'white' ],
15
+ 'stroke-fade':[ #cadbe8, 'stroke-fade', 'white' ],
15
16
  'transparent': ['transparent', 'transparent', 'transparent'],
16
17
  'main':[ #3d5d7e, 'main', 'white'],
17
18
  'main-fade':[ #eff2f8, 'main-fade', 'white'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "4.14.4",
3
+ "version": "4.15.0-beta-1",
4
4
  "author": "Bouygues Telecom",
5
5
  "repository": {
6
6
  "type": "git",