@trilogy-ds/styles 4.15.0-timepicker-circular-native → 4.15.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.
- 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 +0 -8
- package/framework/src/components/_button.scss +3 -0
- package/framework/src/components/_checkbox.scss +2 -2
- package/framework/src/components/_flex-box.scss +36 -25
- package/framework/src/components/_index.scss +3 -0
- package/framework/src/components/_prompt.scss +143 -0
- package/framework/src/components/_radio.scss +3 -7
- package/framework/src/components/_stepper.scss +22 -142
- package/framework/src/components/_timepicker-circular.scss +71 -0
- package/framework/src/components/_timepicker.scss +79 -0
- package/framework/src/utilities/mixins/_mixins.scss +121 -82
- package/package.json +1 -1
|
@@ -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
|
-
|
|
162
|
-
|
|
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
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
234
|
+
&[aria-disabled="true"] {
|
|
235
|
+
@include disabledRules;
|
|
236
|
+
filter: none;
|
|
237
|
+
label.#{$type}-label {
|
|
238
|
+
cursor: not-allowed !important;
|
|
169
239
|
}
|
|
170
240
|
}
|
|
171
|
-
|
|
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
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
}
|