@trilogy-ds/styles 0.0.2-beta-color → 0.0.2-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/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/components/_accordion.scss +1 -9
- package/framework/src/components/_autocomplete.scss +5 -0
- package/framework/src/components/_autolayout.scss +6 -0
- package/framework/src/components/_box.scss +1 -1
- package/framework/src/components/_button.scss +7 -0
- package/framework/src/components/_card.scss +3 -3
- package/framework/src/components/_checkbox.scss +6 -4
- package/framework/src/components/_divider.scss +1 -0
- package/framework/src/components/_flex-box.scss +36 -25
- package/framework/src/components/_icon.scss +9 -8
- package/framework/src/components/_index.scss +3 -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/_timepicker-circular.scss +88 -0
- package/framework/src/components/_timepicker.scss +79 -0
- package/framework/src/utilities/mixins/_mixins.scss +96 -18
- package/framework/src/utilities/variables/_color.scss +1 -0
- package/package.json +1 -1
|
@@ -14,25 +14,29 @@ $sticker-height: 35px;
|
|
|
14
14
|
max-height: 36px;
|
|
15
15
|
|
|
16
16
|
.icon {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
font-size: 20px;
|
|
18
|
+
width: auto;
|
|
19
|
+
height: auto;
|
|
20
|
+
margin-right: $spacing-2;
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
&.is-small {
|
|
22
24
|
.icon {
|
|
23
|
-
margin-right:
|
|
25
|
+
margin-right: $spacing-1;
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
&:not(.is-hat) {
|
|
28
30
|
width: fit-content;
|
|
29
|
-
|
|
30
31
|
@include mobile {
|
|
31
32
|
font-size: 12px;
|
|
32
33
|
padding: $spacing-1 $spacing-2;
|
|
33
34
|
height: auto;
|
|
34
35
|
line-height: 15px;
|
|
35
|
-
|
|
36
|
+
.icon {
|
|
37
|
+
font-size: 16px;
|
|
38
|
+
margin-right: $spacing-1;
|
|
39
|
+
}
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
42
|
|
|
@@ -59,7 +63,11 @@ $sticker-height: 35px;
|
|
|
59
63
|
padding: $spacing-1 $spacing-2;
|
|
60
64
|
height: auto;
|
|
61
65
|
line-height: 15px;
|
|
62
|
-
|
|
66
|
+
.icon {
|
|
67
|
+
font-size: 16px;
|
|
68
|
+
height: 15px;
|
|
69
|
+
margin-right: $spacing-1;
|
|
70
|
+
}
|
|
63
71
|
}
|
|
64
72
|
|
|
65
73
|
// deprecated
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
td,
|
|
28
28
|
th {
|
|
29
|
-
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:
|
|
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:
|
|
156
|
+
border: 1px solid #{getColor('stroke-fade')};
|
|
157
157
|
|
|
158
158
|
th {
|
|
159
|
-
border-right:
|
|
159
|
+
border-right: 1px solid #{getColor('stroke-fade')};
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
td {
|
|
163
163
|
&:not(:last-child) {
|
|
164
|
-
border-right:
|
|
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:
|
|
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:
|
|
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:
|
|
218
|
+
border-top: 1px solid #{getColor('stroke-fade')};
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
$CIRCLE_SIZE: 172px;
|
|
2
|
+
$CURSOR_SIZE: 30px;
|
|
3
|
+
|
|
4
|
+
.timepicker-circular {
|
|
5
|
+
|
|
6
|
+
&_dot-hour {
|
|
7
|
+
background-color: getColor('neutral');
|
|
8
|
+
&.is-filled {
|
|
9
|
+
background-color: getColor('main');
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&_progress {
|
|
14
|
+
stroke: getColor('main');
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&_progress-container {
|
|
18
|
+
stroke: getColor('main-fade');
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.circle_container {
|
|
22
|
+
width: $CIRCLE_SIZE;
|
|
23
|
+
height: $CIRCLE_SIZE;
|
|
24
|
+
position: relative;
|
|
25
|
+
|
|
26
|
+
&-cursor {
|
|
27
|
+
position: absolute;
|
|
28
|
+
width: $CURSOR_SIZE;
|
|
29
|
+
height: $CURSOR_SIZE;
|
|
30
|
+
border-radius: 50%;
|
|
31
|
+
background-color: getColor('neutral-fade');
|
|
32
|
+
border: 2px solid getColor('main');
|
|
33
|
+
z-index: 20;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
&-inputs {
|
|
39
|
+
position: absolute;
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction:row;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
z-index: 30;
|
|
45
|
+
left: 50%;
|
|
46
|
+
top: 50%;
|
|
47
|
+
transform: translate(-50%, -50%);
|
|
48
|
+
cursor:default;
|
|
49
|
+
pointer-events:none;
|
|
50
|
+
gap: $spacing-1;
|
|
51
|
+
|
|
52
|
+
&-wrapper {
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
width: 40px;
|
|
57
|
+
gap: $spacing-1;
|
|
58
|
+
pointer-events: auto
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-wrapper-input {
|
|
62
|
+
@include input;
|
|
63
|
+
width: 36px;
|
|
64
|
+
height: 36px;
|
|
65
|
+
text-align: center;
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
cursor: default;
|
|
70
|
+
pointer-events: auto
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&-separator {
|
|
74
|
+
height: 36px;
|
|
75
|
+
margin-bottom: 10px
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.non_draggable_zone {
|
|
81
|
+
position: absolute;
|
|
82
|
+
width: 120px;
|
|
83
|
+
height: 120px;
|
|
84
|
+
border-radius: 50%;
|
|
85
|
+
z-index: 25;
|
|
86
|
+
cursor: default;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -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,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;
|
|
@@ -195,24 +260,32 @@
|
|
|
195
260
|
left: 16px;
|
|
196
261
|
}
|
|
197
262
|
|
|
198
|
-
span.#{$type}-title
|
|
263
|
+
span.#{$type}-title,
|
|
264
|
+
label.#{$type}-title {
|
|
199
265
|
font-weight: bold;
|
|
200
266
|
width: 100%;
|
|
201
267
|
display: block;
|
|
202
268
|
font-size: 16px;
|
|
203
269
|
}
|
|
270
|
+
|
|
271
|
+
label.#{$type}-title {
|
|
272
|
+
cursor: pointer;
|
|
273
|
+
}
|
|
204
274
|
}
|
|
205
275
|
|
|
206
276
|
input {
|
|
207
|
-
&:not(:disabled):not(:checked) ~ label.radio-label
|
|
277
|
+
&:not(:disabled):not(:checked) ~ label.radio-label,
|
|
278
|
+
&:not(:disabled):not(:checked) ~ .radio-container {
|
|
208
279
|
@include label-states;
|
|
209
280
|
}
|
|
210
281
|
|
|
211
|
-
&:not(:disabled) ~ label.checkbox-label
|
|
282
|
+
&:not(:disabled) ~ label.checkbox-label,
|
|
283
|
+
&:not(:disabled) ~ .checkbox-container {
|
|
212
284
|
@include label-states;
|
|
213
285
|
}
|
|
214
286
|
|
|
215
|
-
&:checked:not(:disabled) ~ label.#{$type}-label
|
|
287
|
+
&:checked:not(:disabled) ~ label.#{$type}-label,
|
|
288
|
+
&:checked:not(:disabled) ~ .#{$type}-container {
|
|
216
289
|
border-color: getColor('main');
|
|
217
290
|
border-width: 2px;
|
|
218
291
|
padding: 15px;
|
|
@@ -223,20 +296,23 @@
|
|
|
223
296
|
left: 15px;
|
|
224
297
|
}
|
|
225
298
|
|
|
226
|
-
span.#{$type}-title
|
|
299
|
+
span.#{$type}-title,
|
|
300
|
+
label.#{$type}-title {
|
|
227
301
|
color: getColor('main');
|
|
228
302
|
}
|
|
229
303
|
}
|
|
230
304
|
|
|
231
305
|
&:disabled {
|
|
232
|
-
& ~ label.#{$type}-label
|
|
306
|
+
& ~ label.#{$type}-label,
|
|
307
|
+
& ~ .#{$type}-container {
|
|
233
308
|
&:before {
|
|
234
309
|
border-color: getColor('disabled') !important;
|
|
235
310
|
}
|
|
236
311
|
}
|
|
237
312
|
}
|
|
238
313
|
|
|
239
|
-
&:disabled:checked ~ label.#{$type}-label
|
|
314
|
+
&:disabled:checked ~ label.#{$type}-label,
|
|
315
|
+
&:disabled:checked ~ .#{$type}-container {
|
|
240
316
|
.checkbox-title {
|
|
241
317
|
color: getColor('disabled');
|
|
242
318
|
}
|
|
@@ -263,13 +339,15 @@
|
|
|
263
339
|
}
|
|
264
340
|
|
|
265
341
|
input {
|
|
266
|
-
&:checked:not(:disabled) ~ label.#{$type}-label
|
|
342
|
+
&:checked:not(:disabled) ~ label.#{$type}-label,
|
|
343
|
+
&:checked:not(:disabled) ~ .#{$type}-container {
|
|
267
344
|
padding: ($spacing-4 - 1px) ($spacing-4 - 1px) ($spacing-4 - 1px) ($spacing-8 - 1px);
|
|
268
345
|
}
|
|
269
346
|
|
|
270
347
|
}
|
|
271
348
|
|
|
272
|
-
label.#{$type}-label
|
|
349
|
+
label.#{$type}-label,
|
|
350
|
+
.#{$type}-container {
|
|
273
351
|
width: 100%;
|
|
274
352
|
display: flex;
|
|
275
353
|
align-items: center;
|
|
@@ -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'],
|