@odx/ui 4.5.0 → 4.5.2
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 +12 -0
- package/core-theme.css +34 -3
- package/package.json +1 -1
- package/scss/cdk/connected-overlay.scss +4 -4
- package/scss/components/calendar.component.scss +5 -0
- package/scss/components/checkbox.component.scss +12 -0
- package/scss/components/modal.component.scss +15 -0
- package/scss/components/switch.component.scss +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @odx/ui
|
|
2
2
|
|
|
3
|
+
## 4.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- bead5c6: Leave animations for modals and dropdowns
|
|
8
|
+
|
|
9
|
+
## 4.5.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 50fad0b: Required marker for switch and for checkbox components
|
|
14
|
+
|
|
3
15
|
## 4.5.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/core-theme.css
CHANGED
|
@@ -2139,9 +2139,6 @@ html body .odx-fs-italic {
|
|
|
2139
2139
|
transform: translate(var(--odx-cdk-connected-overlay-position-x, 0), var(--odx-cdk-connected-overlay-position-y, 0));
|
|
2140
2140
|
transition-behavior: allow-discrete;
|
|
2141
2141
|
}
|
|
2142
|
-
.odx-cdk-connected-overlay.is-hidden {
|
|
2143
|
-
display: none;
|
|
2144
|
-
}
|
|
2145
2142
|
.odx-cdk-connected-overlay__content {
|
|
2146
2143
|
left: 0 !important;
|
|
2147
2144
|
max-height: var(--odx-cdk-connected-overlay-max-height-modified, var(--odx-cdk-connected-overlay-max-height, unset));
|
|
@@ -2157,6 +2154,9 @@ html body .odx-fs-italic {
|
|
|
2157
2154
|
.odx-cdk-connected-overlay:popover-open {
|
|
2158
2155
|
opacity: 1;
|
|
2159
2156
|
}
|
|
2157
|
+
.odx-cdk-connected-overlay.is-hidden:popover-open {
|
|
2158
|
+
opacity: 0;
|
|
2159
|
+
}
|
|
2160
2160
|
@starting-style {
|
|
2161
2161
|
.odx-cdk-connected-overlay:popover-open {
|
|
2162
2162
|
opacity: 0;
|
|
@@ -3331,10 +3331,14 @@ html body .odx-fs-italic {
|
|
|
3331
3331
|
}
|
|
3332
3332
|
|
|
3333
3333
|
.odx-calendar {
|
|
3334
|
+
--max-calendar-height: 300px;
|
|
3334
3335
|
display: inline-block;
|
|
3335
3336
|
flex-direction: column;
|
|
3336
3337
|
max-height: inherit;
|
|
3337
3338
|
}
|
|
3339
|
+
.odx-calendar:has(.odx-calendar-years) {
|
|
3340
|
+
max-height: var(--max-calendar-height);
|
|
3341
|
+
}
|
|
3338
3342
|
.odx-calendar-header {
|
|
3339
3343
|
transition-delay: 0ms;
|
|
3340
3344
|
transition-duration: var(--odx-v-transition-duration);
|
|
@@ -3698,6 +3702,15 @@ html body .odx-fs-italic {
|
|
|
3698
3702
|
margin: 0;
|
|
3699
3703
|
padding: 0;
|
|
3700
3704
|
}
|
|
3705
|
+
.odx-checkbox__required {
|
|
3706
|
+
font-size: calc(var(--odx-typography-base-size) * 1);
|
|
3707
|
+
color: var(--odx-c-error-text);
|
|
3708
|
+
margin-left: 2px;
|
|
3709
|
+
vertical-align: top;
|
|
3710
|
+
}
|
|
3711
|
+
.odx-checkbox.is-disabled .odx-checkbox__required {
|
|
3712
|
+
color: var(--odx-control-color-disabled);
|
|
3713
|
+
}
|
|
3701
3714
|
|
|
3702
3715
|
.odx-chip {
|
|
3703
3716
|
font-weight: var(--odx-typography-font-weight-medium);
|
|
@@ -5301,6 +5314,15 @@ html body .odx-fs-italic {
|
|
|
5301
5314
|
.odx-modal[open]::backdrop, .odx-modal[open]:modal {
|
|
5302
5315
|
opacity: 1;
|
|
5303
5316
|
}
|
|
5317
|
+
.odx-modal.is-hidden[open]::backdrop, .odx-modal.is-hidden[open]:modal {
|
|
5318
|
+
opacity: 0;
|
|
5319
|
+
}
|
|
5320
|
+
.odx-modal.is-hidden[open]:modal:not(.odx-modal--sidesheet) {
|
|
5321
|
+
transform: translateY(calc(var(--odx-vertical-rythm-base-size) * 0.3334));
|
|
5322
|
+
}
|
|
5323
|
+
.odx-modal.is-hidden[open]:modal.odx-modal--sidesheet {
|
|
5324
|
+
transform: translateX(calc(var(--odx-vertical-rythm-base-size) * 2));
|
|
5325
|
+
}
|
|
5304
5326
|
.odx-modal[open]:modal {
|
|
5305
5327
|
transform: translateY(0);
|
|
5306
5328
|
transform: translateX(0);
|
|
@@ -6563,6 +6585,15 @@ html body .odx-fs-italic {
|
|
|
6563
6585
|
margin: 0;
|
|
6564
6586
|
padding: 0;
|
|
6565
6587
|
}
|
|
6588
|
+
.odx-switch__required {
|
|
6589
|
+
font-size: calc(var(--odx-typography-base-size) * 1);
|
|
6590
|
+
color: var(--odx-c-error-text);
|
|
6591
|
+
margin-left: 2px;
|
|
6592
|
+
vertical-align: top;
|
|
6593
|
+
}
|
|
6594
|
+
.odx-switch.is-disabled .odx-switch__required {
|
|
6595
|
+
color: var(--odx-control-color-disabled);
|
|
6596
|
+
}
|
|
6566
6597
|
|
|
6567
6598
|
.odx-tab-bar-item {
|
|
6568
6599
|
margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
package/package.json
CHANGED
|
@@ -18,10 +18,6 @@
|
|
|
18
18
|
transform: translate(var(--odx-cdk-connected-overlay-position-x, 0), var(--odx-cdk-connected-overlay-position-y, 0));
|
|
19
19
|
transition-behavior: allow-discrete;
|
|
20
20
|
|
|
21
|
-
&.is-hidden {
|
|
22
|
-
display: none;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
21
|
&__content {
|
|
26
22
|
left: 0 !important;
|
|
27
23
|
max-height: var(--odx-cdk-connected-overlay-max-height-modified, var(--odx-cdk-connected-overlay-max-height, unset));
|
|
@@ -40,6 +36,10 @@
|
|
|
40
36
|
opacity: 1;
|
|
41
37
|
}
|
|
42
38
|
|
|
39
|
+
&.is-hidden:popover-open {
|
|
40
|
+
opacity: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
43
|
@starting-style {
|
|
44
44
|
&:popover-open {
|
|
45
45
|
opacity: 0;
|
|
@@ -6,11 +6,16 @@
|
|
|
6
6
|
|
|
7
7
|
.odx-calendar {
|
|
8
8
|
$root: &;
|
|
9
|
+
--max-calendar-height: 300px;
|
|
9
10
|
|
|
10
11
|
display: inline-block;
|
|
11
12
|
flex-direction: column;
|
|
12
13
|
max-height: inherit;
|
|
13
14
|
|
|
15
|
+
&:has(#{$root}-years) {
|
|
16
|
+
max-height: var(--max-calendar-height);
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
&-header {
|
|
15
20
|
@include motion.transition(background-color outline-color color border-radius);
|
|
16
21
|
@include utils.vertical-center-content();
|
|
@@ -121,4 +121,16 @@
|
|
|
121
121
|
padding: 0;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
+
|
|
125
|
+
&__required {
|
|
126
|
+
@include typography.font-size(0);
|
|
127
|
+
|
|
128
|
+
color: var(--odx-c-error-text);
|
|
129
|
+
margin-left: 2px;
|
|
130
|
+
vertical-align: top;
|
|
131
|
+
|
|
132
|
+
#{$root}.is-disabled & {
|
|
133
|
+
color: var(--odx-control-color-disabled);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
124
136
|
}
|
|
@@ -48,6 +48,21 @@ $modal-padding: math.div(12, 24);
|
|
|
48
48
|
opacity: 1;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
&.is-hidden {
|
|
52
|
+
&[open]::backdrop,
|
|
53
|
+
&[open]:modal {
|
|
54
|
+
opacity: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&[open]:modal:not(#{$root}--sidesheet) {
|
|
58
|
+
transform: translateY(#{dimensions.get-size(math.div(8, 24))});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&[open]:modal#{$root}--sidesheet {
|
|
62
|
+
transform: translateX(#{dimensions.get-size(math.div(8, 4))});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
51
66
|
&[open]:modal {
|
|
52
67
|
transform: translateY(0);
|
|
53
68
|
transform: translateX(0);
|
|
@@ -160,4 +160,16 @@
|
|
|
160
160
|
padding: 0;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
+
|
|
164
|
+
&__required {
|
|
165
|
+
@include typography.font-size(0);
|
|
166
|
+
|
|
167
|
+
color: var(--odx-c-error-text);
|
|
168
|
+
margin-left: 2px;
|
|
169
|
+
vertical-align: top;
|
|
170
|
+
|
|
171
|
+
#{$root}.is-disabled & {
|
|
172
|
+
color: var(--odx-control-color-disabled);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
163
175
|
}
|