@odx/ui 3.5.2 → 3.5.3
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/CHANGELOG.md +6 -0
- package/core-theme.css +47 -0
- package/package.json +1 -1
- package/scss/components/timepicker.component.scss +56 -0
- package/scss/core.scss +1 -0
package/CHANGELOG.md
CHANGED
package/core-theme.css
CHANGED
|
@@ -6559,6 +6559,53 @@ html body .odx-fs-italic {
|
|
|
6559
6559
|
background-color: var(--odx-table-cell-background-color-active);
|
|
6560
6560
|
}
|
|
6561
6561
|
|
|
6562
|
+
.odx-timepicker {
|
|
6563
|
+
display: flex;
|
|
6564
|
+
align-items: center;
|
|
6565
|
+
justify-content: space-between;
|
|
6566
|
+
width: 100%;
|
|
6567
|
+
}
|
|
6568
|
+
.odx-timepicker__wrapper {
|
|
6569
|
+
display: inline-flex;
|
|
6570
|
+
max-width: calc(var(--odx-vertical-rythm-base-size) * 4.5834);
|
|
6571
|
+
}
|
|
6572
|
+
.odx-timepicker input[odxTimepickerControl] {
|
|
6573
|
+
-webkit-appearance: textfield;
|
|
6574
|
+
-moz-appearance: textfield;
|
|
6575
|
+
appearance: textfield;
|
|
6576
|
+
font-weight: var(--odx-typography-font-weight-normal);
|
|
6577
|
+
letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
|
|
6578
|
+
width: 100%;
|
|
6579
|
+
}
|
|
6580
|
+
.odx-timepicker input[odxTimepickerControl]::-moz-placeholder {
|
|
6581
|
+
font-weight: var(--odx-typography-font-weight-normal);
|
|
6582
|
+
letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
|
|
6583
|
+
color: var(--odx-input-control-color);
|
|
6584
|
+
opacity: 0.65;
|
|
6585
|
+
}
|
|
6586
|
+
.odx-timepicker input[odxTimepickerControl]::placeholder {
|
|
6587
|
+
font-weight: var(--odx-typography-font-weight-normal);
|
|
6588
|
+
letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
|
|
6589
|
+
color: var(--odx-input-control-color);
|
|
6590
|
+
opacity: 0.65;
|
|
6591
|
+
}
|
|
6592
|
+
.odx-timepicker input[odxTimepickerControl]::-webkit-inner-spin-button {
|
|
6593
|
+
-webkit-appearance: none;
|
|
6594
|
+
appearance: none;
|
|
6595
|
+
}
|
|
6596
|
+
.odx-timepicker__option-list {
|
|
6597
|
+
display: flex;
|
|
6598
|
+
flex-direction: column;
|
|
6599
|
+
max-height: calc(7 * var(--odx-vertical-rythm-base-size) * 1.5 + var(--odx-vertical-rythm-base-size));
|
|
6600
|
+
}
|
|
6601
|
+
.odx-timepicker-option:active {
|
|
6602
|
+
background-color: var(--odx-input-control-active-color);
|
|
6603
|
+
}
|
|
6604
|
+
.odx-timepicker.is-readonly .odx-timepicker__trigger {
|
|
6605
|
+
outline-color: transparent;
|
|
6606
|
+
pointer-events: none;
|
|
6607
|
+
}
|
|
6608
|
+
|
|
6562
6609
|
.odx-toast-container {
|
|
6563
6610
|
--odx-toast-outer-offset: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
6564
6611
|
--odx-toast-border-radius: calc(var(--odx-vertical-rythm-base-size) * 0.25);
|
package/package.json
CHANGED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/utils';
|
|
3
|
+
@use '../layout/helpers';
|
|
4
|
+
@use '../abstract/dimensions';
|
|
5
|
+
@use '../abstract/typography';
|
|
6
|
+
@use '../abstract/motion';
|
|
7
|
+
|
|
8
|
+
.odx-timepicker {
|
|
9
|
+
$root: &;
|
|
10
|
+
|
|
11
|
+
@include utils.vertical-center-content();
|
|
12
|
+
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
width: 100%;
|
|
15
|
+
|
|
16
|
+
&__wrapper {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
max-width: dimensions.get-size(math.div(110, 24));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
input[odxTimepickerControl] {
|
|
22
|
+
appearance: textfield;
|
|
23
|
+
font-weight: var(--odx-typography-font-weight-normal);
|
|
24
|
+
letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
|
|
25
|
+
width: 100%;
|
|
26
|
+
|
|
27
|
+
&::placeholder {
|
|
28
|
+
@include typography.font-weight(normal);
|
|
29
|
+
|
|
30
|
+
color: var(--odx-input-control-color);
|
|
31
|
+
opacity: 0.65;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&::-webkit-inner-spin-button {
|
|
35
|
+
appearance: none;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&__option-list {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
max-height: calc(7 * dimensions.get-size(1.5) + var(--odx-vertical-rythm-base-size));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&-option {
|
|
46
|
+
&:active {
|
|
47
|
+
background-color: var(--odx-input-control-active-color);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.is-readonly {
|
|
52
|
+
#{$root}__trigger {
|
|
53
|
+
@include utils.non-interactive();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
package/scss/core.scss
CHANGED
|
@@ -87,6 +87,7 @@ Layout
|
|
|
87
87
|
@use 'components/tab-bar-item.component';
|
|
88
88
|
@use 'components/tab-bar.component';
|
|
89
89
|
@use 'components/table.component';
|
|
90
|
+
@use 'components/timepicker.component';
|
|
90
91
|
@use 'components/toast.component';
|
|
91
92
|
@use 'components/toast-item.component';
|
|
92
93
|
@use 'components/toggle-button.component';
|