@trilogy-ds/styles 0.0.3-calendar → 0.0.3-fix-timepicker
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.
- package/dist/default/assets/icons/all/arrow-high.svg +1 -0
- package/dist/default/assets/icons/all/calendar.svg +1 -0
- package/dist/default/assets/icons/all/clock.svg +1 -0
- package/dist/default/assets/icons/all/file-attached.svg +1 -0
- package/dist/default/assets/icons/all/micro.svg +1 -0
- package/dist/default/assets/icons/all/paperclip.svg +1 -0
- package/dist/default/trilogy-mangled.css +1 -1
- package/dist/default/trilogy-partials.css +1 -1
- package/dist/default/trilogy.css +1 -1
- package/framework/src/base/_all.scss +0 -1
- package/framework/src/components/_accordion.scss +1 -9
- package/framework/src/components/_autocomplete.scss +5 -0
- package/framework/src/components/_autolayout.scss +12 -6
- package/framework/src/components/_box.scss +1 -1
- package/framework/src/components/_button.scss +7 -0
- package/framework/src/components/_calendar.scss +11 -10
- package/framework/src/components/_card.scss +3 -3
- package/framework/src/components/_checkbox.scss +6 -4
- package/framework/src/components/_container.scss +0 -7
- package/framework/src/components/_date-picker.scss +58 -0
- package/framework/src/components/_divider.scss +28 -4
- package/framework/src/components/_dropdown.scss +195 -0
- package/framework/src/components/_flex-box.scss +590 -42
- package/framework/src/components/_icon.scss +9 -8
- package/framework/src/components/_index.scss +5 -0
- package/framework/src/components/_link.scss +4 -0
- package/framework/src/components/_prompt.scss +156 -0
- package/framework/src/components/_radio.scss +8 -5
- package/framework/src/components/_stepper.scss +46 -9
- package/framework/src/components/_sticker.scss +14 -6
- package/framework/src/components/_table.scss +8 -8
- package/framework/src/components/_tabs.scss +14 -1
- package/framework/src/components/_timepicker-circular.scss +88 -0
- package/framework/src/components/_timepicker.scss +79 -0
- package/framework/src/components/alert/_alert.scss +2 -2
- package/framework/src/components/input/_input-icons.scss +2 -2
- package/framework/src/components/progress/_progress.scss +0 -2
- package/framework/src/theming/buttons_partial.scss +2 -2
- package/framework/src/trilogy.scss +1 -0
- package/framework/src/utilities/mixins/_mixins.scss +97 -18
- package/framework/src/utilities/mixins/_responsiveness.scss +99 -9
- package/framework/src/utilities/variables/_color.scss +1 -0
- package/framework/src/utilities/variables/_responsiveness.scss +4 -4
- package/package.json +6 -1
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
.has-icons-right {
|
|
30
|
-
.icon-right, button[data-show-pwd]{
|
|
30
|
+
.icon-right, button[data-show-pwd], button[data-show-calendar] {
|
|
31
31
|
position: absolute;
|
|
32
32
|
height: 100%;
|
|
33
33
|
width: 45px;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
button[data-show-pwd]{
|
|
44
|
+
button[data-show-pwd], button[data-show-calendar] {
|
|
45
45
|
background-color: transparent;
|
|
46
46
|
border:none;
|
|
47
47
|
border-top-right-radius: $radius-small ;
|
|
@@ -9,8 +9,8 @@ Colors for buttons
|
|
|
9
9
|
$button-colors: (
|
|
10
10
|
'accent':['conversion', 'accent', 'background'],
|
|
11
11
|
'primary': ['primary', 'main', 'background'],
|
|
12
|
-
'secondary': ['secondary', 'main-fade', '
|
|
13
|
-
'ghost': ['ghost', 'transparent', '
|
|
12
|
+
'secondary': ['secondary', 'main-fade', 'font'],
|
|
13
|
+
'ghost': ['ghost', 'transparent', 'font']
|
|
14
14
|
) !default;
|
|
15
15
|
|
|
16
16
|
%buttons-states {
|
|
@@ -44,6 +44,60 @@
|
|
|
44
44
|
display: flex;
|
|
45
45
|
gap: 16px;
|
|
46
46
|
flex-wrap: wrap;
|
|
47
|
+
&.is-grid {
|
|
48
|
+
display: grid;
|
|
49
|
+
& > .#{$type}-tile {
|
|
50
|
+
width: 100%;
|
|
51
|
+
max-width: none;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
@for $i from 1 through 12 {
|
|
55
|
+
&.is-grid-cols-#{$i} {
|
|
56
|
+
grid-template-columns: repeat(#{$i}, 1fr);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
@include mobile {
|
|
60
|
+
@for $i from 1 through 12 {
|
|
61
|
+
&.is-grid-cols-mobile-#{$i} {
|
|
62
|
+
grid-template-columns: repeat(#{$i}, 1fr);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
@include tablet {
|
|
67
|
+
@for $i from 1 through 12 {
|
|
68
|
+
&.is-grid-cols-tablet-#{$i} {
|
|
69
|
+
grid-template-columns: repeat(#{$i}, 1fr);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
@include touch {
|
|
74
|
+
@for $i from 1 through 12 {
|
|
75
|
+
&.is-grid-cols-touch-#{$i} {
|
|
76
|
+
grid-template-columns: repeat(#{$i}, 1fr);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
@include desktop {
|
|
81
|
+
@for $i from 1 through 12 {
|
|
82
|
+
&.is-grid-cols-desktop-#{$i} {
|
|
83
|
+
grid-template-columns: repeat(#{$i}, 1fr);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
@include widescreen {
|
|
88
|
+
@for $i from 1 through 12 {
|
|
89
|
+
&.is-grid-cols-widescreen-#{$i} {
|
|
90
|
+
grid-template-columns: repeat(#{$i}, 1fr);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
@include fullhd {
|
|
95
|
+
@for $i from 1 through 12 {
|
|
96
|
+
&.is-grid-cols-fullhd-#{$i} {
|
|
97
|
+
grid-template-columns: repeat(#{$i}, 1fr);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
47
101
|
}
|
|
48
102
|
|
|
49
103
|
//BOTH
|
|
@@ -51,7 +105,8 @@
|
|
|
51
105
|
.#{$type}-tile {
|
|
52
106
|
position: relative;
|
|
53
107
|
|
|
54
|
-
label.#{$type}-label
|
|
108
|
+
label.#{$type}-label,
|
|
109
|
+
.#{$type}-container {
|
|
55
110
|
cursor: pointer;
|
|
56
111
|
font-size: 14px;
|
|
57
112
|
|
|
@@ -73,7 +128,8 @@
|
|
|
73
128
|
position: absolute;
|
|
74
129
|
outline: none;
|
|
75
130
|
|
|
76
|
-
&:checked ~ label.#{$type}-label
|
|
131
|
+
&:checked ~ label.#{$type}-label,
|
|
132
|
+
&:checked ~ .#{$type}-container {
|
|
77
133
|
border-color: getColor('main');
|
|
78
134
|
|
|
79
135
|
&:before {
|
|
@@ -84,18 +140,22 @@
|
|
|
84
140
|
background-color: getColor('main');
|
|
85
141
|
}
|
|
86
142
|
}
|
|
87
|
-
|
|
143
|
+
|
|
144
|
+
&:focus-visible ~ label.#{$type}-label:before,
|
|
145
|
+
&:focus-visible ~ .#{$type}-container:before {
|
|
88
146
|
outline: 1px solid;
|
|
89
147
|
}
|
|
90
148
|
|
|
91
149
|
&:disabled,
|
|
92
150
|
&:disabled:checked {
|
|
93
|
-
& ~ label.checkbox-label
|
|
151
|
+
& ~ label.checkbox-label,
|
|
152
|
+
& ~ .checkbox-container {
|
|
94
153
|
&:after {
|
|
95
154
|
background-color: getColor('disabled-fade');
|
|
96
155
|
}
|
|
97
156
|
}
|
|
98
|
-
& ~ label.radio-label
|
|
157
|
+
& ~ label.radio-label,
|
|
158
|
+
& ~ .radio-container {
|
|
99
159
|
&:after {
|
|
100
160
|
background-color: getColor('disabled');
|
|
101
161
|
}
|
|
@@ -103,7 +163,8 @@
|
|
|
103
163
|
}
|
|
104
164
|
|
|
105
165
|
&:disabled {
|
|
106
|
-
& ~ label.#{$type}-label
|
|
166
|
+
& ~ label.#{$type}-label,
|
|
167
|
+
& ~ .#{$type}-container {
|
|
107
168
|
&:after {
|
|
108
169
|
background-color: transparent;
|
|
109
170
|
}
|
|
@@ -164,11 +225,14 @@
|
|
|
164
225
|
|
|
165
226
|
input:disabled,
|
|
166
227
|
input:disabled:checked {
|
|
167
|
-
& ~ label.#{$type}-label
|
|
228
|
+
& ~ label.#{$type}-label,
|
|
229
|
+
& ~ .#{$type}-container {
|
|
168
230
|
@include disabledRules;
|
|
169
231
|
}
|
|
170
232
|
}
|
|
171
|
-
|
|
233
|
+
|
|
234
|
+
&:has(input:focus-visible) label.#{$type}-label,
|
|
235
|
+
&:has(input:focus-visible) .#{$type}-container{
|
|
172
236
|
outline: 1px solid;
|
|
173
237
|
}
|
|
174
238
|
|
|
@@ -180,7 +244,8 @@
|
|
|
180
244
|
margin-right: 0;
|
|
181
245
|
}
|
|
182
246
|
|
|
183
|
-
label.#{$type}-label
|
|
247
|
+
label.#{$type}-label,
|
|
248
|
+
.#{$type}-container {
|
|
184
249
|
display: block;
|
|
185
250
|
position: relative;
|
|
186
251
|
padding: 40px 16px 16px;
|
|
@@ -188,30 +253,39 @@
|
|
|
188
253
|
border-radius: var(--radius);
|
|
189
254
|
box-sizing: border-box;
|
|
190
255
|
background-color: getColor('background');
|
|
256
|
+
height: 100%;
|
|
191
257
|
|
|
192
258
|
&:before {
|
|
193
259
|
top: 16px;
|
|
194
260
|
left: 16px;
|
|
195
261
|
}
|
|
196
262
|
|
|
197
|
-
span.#{$type}-title
|
|
263
|
+
span.#{$type}-title,
|
|
264
|
+
label.#{$type}-title {
|
|
198
265
|
font-weight: bold;
|
|
199
266
|
width: 100%;
|
|
200
267
|
display: block;
|
|
201
268
|
font-size: 16px;
|
|
202
269
|
}
|
|
270
|
+
|
|
271
|
+
label.#{$type}-title {
|
|
272
|
+
cursor: pointer;
|
|
273
|
+
}
|
|
203
274
|
}
|
|
204
275
|
|
|
205
276
|
input {
|
|
206
|
-
&:not(:disabled):not(:checked) ~ label.radio-label
|
|
277
|
+
&:not(:disabled):not(:checked) ~ label.radio-label,
|
|
278
|
+
&:not(:disabled):not(:checked) ~ .radio-container {
|
|
207
279
|
@include label-states;
|
|
208
280
|
}
|
|
209
281
|
|
|
210
|
-
&:not(:disabled) ~ label.checkbox-label
|
|
282
|
+
&:not(:disabled) ~ label.checkbox-label,
|
|
283
|
+
&:not(:disabled) ~ .checkbox-container {
|
|
211
284
|
@include label-states;
|
|
212
285
|
}
|
|
213
286
|
|
|
214
|
-
&:checked:not(:disabled) ~ label.#{$type}-label
|
|
287
|
+
&:checked:not(:disabled) ~ label.#{$type}-label,
|
|
288
|
+
&:checked:not(:disabled) ~ .#{$type}-container {
|
|
215
289
|
border-color: getColor('main');
|
|
216
290
|
border-width: 2px;
|
|
217
291
|
padding: 15px;
|
|
@@ -222,20 +296,23 @@
|
|
|
222
296
|
left: 15px;
|
|
223
297
|
}
|
|
224
298
|
|
|
225
|
-
span.#{$type}-title
|
|
299
|
+
span.#{$type}-title,
|
|
300
|
+
label.#{$type}-title {
|
|
226
301
|
color: getColor('main');
|
|
227
302
|
}
|
|
228
303
|
}
|
|
229
304
|
|
|
230
305
|
&:disabled {
|
|
231
|
-
& ~ label.#{$type}-label
|
|
306
|
+
& ~ label.#{$type}-label,
|
|
307
|
+
& ~ .#{$type}-container {
|
|
232
308
|
&:before {
|
|
233
309
|
border-color: getColor('disabled') !important;
|
|
234
310
|
}
|
|
235
311
|
}
|
|
236
312
|
}
|
|
237
313
|
|
|
238
|
-
&:disabled:checked ~ label.#{$type}-label
|
|
314
|
+
&:disabled:checked ~ label.#{$type}-label,
|
|
315
|
+
&:disabled:checked ~ .#{$type}-container {
|
|
239
316
|
.checkbox-title {
|
|
240
317
|
color: getColor('disabled');
|
|
241
318
|
}
|
|
@@ -262,13 +339,15 @@
|
|
|
262
339
|
}
|
|
263
340
|
|
|
264
341
|
input {
|
|
265
|
-
&:checked:not(:disabled) ~ label.#{$type}-label
|
|
342
|
+
&:checked:not(:disabled) ~ label.#{$type}-label,
|
|
343
|
+
&:checked:not(:disabled) ~ .#{$type}-container {
|
|
266
344
|
padding: ($spacing-4 - 1px) ($spacing-4 - 1px) ($spacing-4 - 1px) ($spacing-8 - 1px);
|
|
267
345
|
}
|
|
268
346
|
|
|
269
347
|
}
|
|
270
348
|
|
|
271
|
-
label.#{$type}-label
|
|
349
|
+
label.#{$type}-label,
|
|
350
|
+
.#{$type}-container {
|
|
272
351
|
width: 100%;
|
|
273
352
|
display: flex;
|
|
274
353
|
align-items: center;
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
@mixin until($device) {
|
|
9
|
-
@media screen and (max-width: $device - 1px) {
|
|
9
|
+
@media screen and (max-width: #{$device - 1px}) {
|
|
10
10
|
@content;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
@mixin mobile {
|
|
15
|
-
@media screen and (max-width: $tablet - 1px) {
|
|
15
|
+
@media screen and (max-width: #{$tablet - 1px}) {
|
|
16
16
|
@content;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
@mixin tablet-only {
|
|
27
|
-
@media screen and (min-width: $tablet) and (max-width: $desktop - 1px) {
|
|
27
|
+
@media screen and (min-width: #{$tablet}) and (max-width: #{$desktop - 1px}) {
|
|
28
28
|
@content;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
@mixin touch {
|
|
33
|
-
@media screen and (max-width: $desktop - 1px) {
|
|
33
|
+
@media screen and (max-width: #{$desktop - 1px}) {
|
|
34
34
|
@content;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
@mixin desktop-only {
|
|
45
|
-
@media screen and (min-width: $desktop) and (max-width: $widescreen - 1px) {
|
|
45
|
+
@media screen and (min-width: #{$desktop}) and (max-width: #{$widescreen - 1px}) {
|
|
46
46
|
@content;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
@mixin until-widescreen {
|
|
51
|
-
@media screen and (max-width: $widescreen - 1px) {
|
|
51
|
+
@media screen and (max-width: #{$widescreen - 1px}) {
|
|
52
52
|
@content;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
@mixin widescreen-only {
|
|
63
|
-
@media screen and (min-width: $widescreen) and (max-width: $fullhd - 1px) {
|
|
63
|
+
@media screen and (min-width: #{$widescreen}) and (max-width: #{$fullhd - 1px}) {
|
|
64
64
|
@content;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
@mixin until-fullhd {
|
|
69
|
-
@media screen and (max-width: $fullhd - 1px) {
|
|
69
|
+
@media screen and (max-width: #{$fullhd - 1px}) {
|
|
70
70
|
@content;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -78,7 +78,97 @@
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
@mixin all-desktop-only {
|
|
81
|
-
@media screen and (min-width: $desktop) and (max-width: $fullhd - 1px) {
|
|
81
|
+
@media screen and (min-width: #{$desktop}) and (max-width: #{$fullhd - 1px}) {
|
|
82
82
|
@content;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
+
|
|
86
|
+
// Responsive for container queries
|
|
87
|
+
.query-container {
|
|
88
|
+
container-type: inline-size;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@mixin container-from($device) {
|
|
92
|
+
@container (min-width: #{$device}) {
|
|
93
|
+
@content;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@mixin container-until($device) {
|
|
98
|
+
@container (max-width: #{$device - 1px}) {
|
|
99
|
+
@content;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@mixin container-mobile {
|
|
104
|
+
@container (max-width: #{$tablet - 1px}) {
|
|
105
|
+
@content;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@mixin container-tablet {
|
|
110
|
+
@container (min-width: #{$tablet}) {
|
|
111
|
+
@content;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@mixin container-tablet-only {
|
|
116
|
+
@container (min-width: #{$tablet}) and (max-width: #{$desktop - 1px}) {
|
|
117
|
+
@content;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@mixin container-touch {
|
|
122
|
+
@container (max-width: #{$desktop - 1px}) {
|
|
123
|
+
@content;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@mixin container-desktop {
|
|
128
|
+
@container (min-width: #{$desktop}) {
|
|
129
|
+
@content;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@mixin container-desktop-only {
|
|
134
|
+
@container (min-width: #{$desktop}) and (max-width: #{$widescreen - 1px}) {
|
|
135
|
+
@content;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@mixin container-until-widescreen {
|
|
140
|
+
@container (max-width: #{$widescreen - 1px}) {
|
|
141
|
+
@content;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@mixin container-widescreen {
|
|
146
|
+
@container (min-width: #{$widescreen}) {
|
|
147
|
+
@content;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@mixin container-widescreen-only {
|
|
152
|
+
@container (min-width: #{$widescreen}) and (max-width: #{$fullhd - 1px}) {
|
|
153
|
+
@content;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@mixin container-until-fullhd {
|
|
158
|
+
@container (max-width: #{$fullhd - 1px}) {
|
|
159
|
+
@content;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@mixin container-fullhd {
|
|
164
|
+
@container (min-width: #{$fullhd}) {
|
|
165
|
+
@content;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@mixin container-all-desktop-only {
|
|
170
|
+
@container (min-width: #{$desktop}) and (max-width: #{$fullhd - 1px}) {
|
|
171
|
+
@content;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
@@ -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'],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// The container horizontal gap, which acts as the offset for breakpoints
|
|
2
|
-
$gap:
|
|
2
|
+
$gap: 24px !default;
|
|
3
3
|
|
|
4
4
|
$tablet: 768px !default;
|
|
5
|
-
$desktop:
|
|
6
|
-
$widescreen:
|
|
7
|
-
$fullhd:
|
|
5
|
+
$desktop: 976px + 2 * $gap !default;
|
|
6
|
+
$widescreen: 1192px + 2 * $gap !default;
|
|
7
|
+
$fullhd: 1340px + 2 * $gap !default;
|
package/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trilogy-ds/styles",
|
|
3
|
-
"version": "0.0.3-
|
|
3
|
+
"version": "0.0.3-fix-timepicker",
|
|
4
4
|
"author": "Bouygues Telecom",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/BouyguesTelecom/trilogy",
|
|
8
|
+
"directory": "packages/styles"
|
|
9
|
+
},
|
|
5
10
|
"license": "UNLICENSED",
|
|
6
11
|
"files": [
|
|
7
12
|
"framework/src",
|