@odx/ui 4.6.2 → 4.6.4
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 +19 -10
- package/package.json +1 -1
- package/scss/components/area-header.component.scss +2 -0
- package/scss/components/select.component.scss +6 -1
- package/scss/components/toggle-button-group.component.scss +1 -1
- package/scss/components/toggle-button.component.scss +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @odx/ui
|
|
2
2
|
|
|
3
|
+
## 4.6.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9431992: feat: Implemented a clearable input option for the select component, allowing users to easily reset the selected value
|
|
8
|
+
|
|
9
|
+
## 4.6.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- a4ad27f: chore: added styles for icon in togglebutton group button
|
|
14
|
+
|
|
3
15
|
## 4.6.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/core-theme.css
CHANGED
|
@@ -2785,6 +2785,7 @@ html body .odx-fs-italic {
|
|
|
2785
2785
|
}
|
|
2786
2786
|
.odx-area-header__title {
|
|
2787
2787
|
color: var(--odx-area-header-title-color);
|
|
2788
|
+
font-weight: 600;
|
|
2788
2789
|
}
|
|
2789
2790
|
.odx-area-header__subtitle {
|
|
2790
2791
|
overflow: clip;
|
|
@@ -2841,6 +2842,10 @@ html body .odx-fs-italic {
|
|
|
2841
2842
|
padding-top: calc(var(--odx-vertical-rythm-base-size) * 1);
|
|
2842
2843
|
}
|
|
2843
2844
|
}
|
|
2845
|
+
.odx-area-header--xlarge .odx-area-header__title {
|
|
2846
|
+
font-weight: var(--odx-typography-font-weight-medium);
|
|
2847
|
+
letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
|
|
2848
|
+
}
|
|
2844
2849
|
@media (min-width: 768px) {
|
|
2845
2850
|
.odx-area-header--xlarge .odx-avatar {
|
|
2846
2851
|
margin-top: calc(var(--odx-vertical-rythm-base-size) * -0.5);
|
|
@@ -6142,7 +6147,7 @@ html body .odx-fs-italic {
|
|
|
6142
6147
|
align-items: center;
|
|
6143
6148
|
cursor: pointer;
|
|
6144
6149
|
flex: 1 1 100%;
|
|
6145
|
-
gap: calc(var(--odx-vertical-rythm-base-size) * 0.
|
|
6150
|
+
gap: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
6146
6151
|
height: 100%;
|
|
6147
6152
|
max-width: var(--odx-select-max-width);
|
|
6148
6153
|
width: 100%;
|
|
@@ -6153,12 +6158,16 @@ html body .odx-fs-italic {
|
|
|
6153
6158
|
-moz-user-select: unset;
|
|
6154
6159
|
user-select: unset;
|
|
6155
6160
|
}
|
|
6161
|
+
.odx-select__clear {
|
|
6162
|
+
margin-inline-start: auto;
|
|
6163
|
+
}
|
|
6156
6164
|
.odx-select__placeholder, .odx-select__value {
|
|
6157
6165
|
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
|
|
6158
6166
|
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
|
|
6159
6167
|
overflow: clip;
|
|
6160
6168
|
text-overflow: ellipsis;
|
|
6161
6169
|
white-space: nowrap;
|
|
6170
|
+
display: flex;
|
|
6162
6171
|
flex: 1 1 auto;
|
|
6163
6172
|
gap: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
|
|
6164
6173
|
overflow: hidden;
|
|
@@ -7002,9 +7011,6 @@ html body .odx-fs-italic {
|
|
|
7002
7011
|
}
|
|
7003
7012
|
|
|
7004
7013
|
.odx-toggle-button {
|
|
7005
|
-
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.25);
|
|
7006
|
-
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.25);
|
|
7007
|
-
line-height: calc(var(--odx-vertical-rythm-base-size) * 1);
|
|
7008
7014
|
transition-delay: 0ms;
|
|
7009
7015
|
transition-duration: var(--odx-v-transition-duration);
|
|
7010
7016
|
transition-property: color;
|
|
@@ -7035,13 +7041,18 @@ html body .odx-fs-italic {
|
|
|
7035
7041
|
pointer-events: none;
|
|
7036
7042
|
}
|
|
7037
7043
|
.odx-toggle-button__indicator {
|
|
7038
|
-
border-radius: var(--odx-toggle-button-border-radius);
|
|
7039
7044
|
transition-delay: 0ms;
|
|
7040
7045
|
transition-duration: var(--odx-v-transition-duration);
|
|
7041
7046
|
transition-property: background-color, outline-color;
|
|
7042
7047
|
transition-timing-function: var(--odx-v-transition-easing-fn);
|
|
7043
7048
|
padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
7044
7049
|
padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
7050
|
+
display: flex;
|
|
7051
|
+
align-items: center;
|
|
7052
|
+
block-size: calc(var(--odx-vertical-rythm-base-size) * 1.1667);
|
|
7053
|
+
border-radius: var(--odx-toggle-button-border-radius);
|
|
7054
|
+
-moz-column-gap: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
|
|
7055
|
+
column-gap: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
|
|
7045
7056
|
}
|
|
7046
7057
|
.odx-toggle-button.is-readonly .odx-toggle-button__indicator, .odx-toggle-button.is-disabled .odx-toggle-button__indicator, .odx-toggle-button-group.is-active .odx-toggle-button__indicator, .odx-toggle-button-group.has-error .odx-toggle-button__indicator {
|
|
7047
7058
|
background-color: transparent;
|
|
@@ -7071,8 +7082,8 @@ html body .odx-fs-italic {
|
|
|
7071
7082
|
pointer-events: none;
|
|
7072
7083
|
}
|
|
7073
7084
|
.odx-toggle-button__label {
|
|
7074
|
-
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.
|
|
7075
|
-
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.
|
|
7085
|
+
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
|
|
7086
|
+
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
|
|
7076
7087
|
cursor: pointer;
|
|
7077
7088
|
text-align: center;
|
|
7078
7089
|
width: 100%;
|
|
@@ -7111,12 +7122,10 @@ html body .odx-fs-italic {
|
|
|
7111
7122
|
z-index: var(--odx-v-layer-1);
|
|
7112
7123
|
}
|
|
7113
7124
|
.odx-toggle-button-group__indicator {
|
|
7114
|
-
margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.5);
|
|
7115
|
-
margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.5);
|
|
7116
|
-
height: calc(var(--odx-vertical-rythm-base-size) * 1);
|
|
7117
7125
|
outline: var(--odx-v-outline-width) solid transparent;
|
|
7118
7126
|
outline-offset: calc(-1 * var(--odx-v-outline-width));
|
|
7119
7127
|
background-color: var(--odx-c-highlight);
|
|
7128
|
+
block-size: calc(var(--odx-vertical-rythm-base-size) * 1.1667);
|
|
7120
7129
|
border-radius: var(--odx-toggle-button-border-radius);
|
|
7121
7130
|
}
|
|
7122
7131
|
.odx-toggle-button-group.is-disabled .odx-toggle-button-group__indicator {
|
package/package.json
CHANGED
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
@extend .odx-title-6;
|
|
56
56
|
|
|
57
57
|
color: var(--odx-area-header-title-color);
|
|
58
|
+
font-weight: 600;
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
&__subtitle {
|
|
@@ -137,6 +138,7 @@
|
|
|
137
138
|
|
|
138
139
|
.odx-area-header__title {
|
|
139
140
|
@extend .odx-title-2;
|
|
141
|
+
@include typography.font-weight(medium);
|
|
140
142
|
}
|
|
141
143
|
|
|
142
144
|
.odx-area-header__subtitle {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
cursor: pointer;
|
|
19
19
|
flex: 1 1 100%;
|
|
20
|
-
gap: dimensions.get-size(math.div(
|
|
20
|
+
gap: dimensions.get-size(math.div(1, 3));
|
|
21
21
|
height: 100%;
|
|
22
22
|
max-width: var(--odx-select-max-width);
|
|
23
23
|
width: 100%;
|
|
@@ -30,11 +30,16 @@
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
&__clear {
|
|
34
|
+
margin-inline-start: auto;
|
|
35
|
+
}
|
|
36
|
+
|
|
33
37
|
&__placeholder,
|
|
34
38
|
&__value {
|
|
35
39
|
@include dimensions.padding-y(math.div(4, 24));
|
|
36
40
|
@include typography.prevent-text-overflow();
|
|
37
41
|
|
|
42
|
+
display: flex;
|
|
38
43
|
flex: 1 1 auto;
|
|
39
44
|
gap: dimensions.get-size(math.div(4, 24));
|
|
40
45
|
overflow: hidden;
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
z-index: var(--odx-v-layer-1);
|
|
21
21
|
|
|
22
22
|
&__indicator {
|
|
23
|
-
@include dimensions.height(2, 1);
|
|
24
23
|
@include utils.with-outline();
|
|
25
24
|
|
|
26
25
|
background-color: var(--odx-c-highlight);
|
|
26
|
+
block-size: dimensions.get-size(math.div(28, 24));
|
|
27
27
|
border-radius: var(--odx-toggle-button-border-radius);
|
|
28
28
|
|
|
29
29
|
#{$root}.is-disabled & {
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
.odx-toggle-button {
|
|
8
8
|
$root: &;
|
|
9
9
|
|
|
10
|
-
@include dimensions.line-height(1.5, 1);
|
|
11
10
|
@include motion.transition(color);
|
|
12
11
|
@include typography.font-size(0);
|
|
13
12
|
@include typography.font-weight(medium);
|
|
@@ -38,10 +37,13 @@
|
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
&__indicator {
|
|
41
|
-
border-radius: var(--odx-toggle-button-border-radius);
|
|
42
|
-
|
|
43
40
|
@include motion.transition(background-color outline-color);
|
|
44
41
|
@include dimensions.padding-x(math.div(1, 3));
|
|
42
|
+
@include utils.vertical-center-content();
|
|
43
|
+
|
|
44
|
+
block-size: dimensions.get-size(math.div(28, 24));
|
|
45
|
+
border-radius: var(--odx-toggle-button-border-radius);
|
|
46
|
+
column-gap: dimensions.get-size(math.div(1, 6));
|
|
45
47
|
|
|
46
48
|
#{$root}.is-readonly &,
|
|
47
49
|
#{$root}.is-disabled &,
|
|
@@ -58,7 +60,7 @@
|
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
&__label {
|
|
61
|
-
@include dimensions.padding-y(
|
|
63
|
+
@include dimensions.padding-y(math.div(1, 6));
|
|
62
64
|
|
|
63
65
|
cursor: pointer;
|
|
64
66
|
text-align: center;
|