@odx/ui 3.2.0 → 3.2.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 +13 -0
- package/core-theme.css +36 -10
- package/package.json +1 -1
- package/scss/components/button.component.scss +20 -0
- package/scss/components/{rich-list-header.component.scss → rich-list-item-header.component.scss} +2 -1
- package/scss/components/rich-list-item.component.scss +16 -6
- package/scss/core.scss +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @odx/ui
|
|
2
2
|
|
|
3
|
+
## 3.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3eb8c54: Large variant for button component
|
|
8
|
+
- b3993a0: New condensed variant to rich-list component to set vrtical padding to 0 for list items
|
|
9
|
+
|
|
10
|
+
## 3.2.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- d9e27d4: The rich list component was refactored by changing the selector from `rich-list-header` to `rich-list-item-header`. All the logic previously in `rich-list-header` has been moved to `rich-list-item` to enhance its compatibility with a disabled controller
|
|
15
|
+
|
|
3
16
|
## 3.2.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/core-theme.css
CHANGED
|
@@ -2635,6 +2635,24 @@ html body .odx-fs-italic {
|
|
|
2635
2635
|
.odx-button--small > .odx-icon[alignRight] {
|
|
2636
2636
|
margin-left: calc(var(--odx-vertical-rythm-base-size) * 0.125);
|
|
2637
2637
|
}
|
|
2638
|
+
.odx-button--large {
|
|
2639
|
+
margin-top: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
2640
|
+
margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
2641
|
+
height: calc(var(--odx-vertical-rythm-base-size) * 2);
|
|
2642
|
+
padding-right: calc(var(--odx-vertical-rythm-base-size) * 1);
|
|
2643
|
+
padding-left: calc(var(--odx-vertical-rythm-base-size) * 1);
|
|
2644
|
+
font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)));
|
|
2645
|
+
}
|
|
2646
|
+
.odx-button--large > .odx-icon {
|
|
2647
|
+
margin-right: calc(var(--odx-vertical-rythm-base-size) * -0.3333);
|
|
2648
|
+
margin-left: calc(var(--odx-vertical-rythm-base-size) * -0.3333);
|
|
2649
|
+
}
|
|
2650
|
+
.odx-button--large > .odx-icon[alignLeft] {
|
|
2651
|
+
margin-right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
2652
|
+
}
|
|
2653
|
+
.odx-button--large > .odx-icon[alignRight] {
|
|
2654
|
+
margin-left: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
2655
|
+
}
|
|
2638
2656
|
|
|
2639
2657
|
.odx-action-group {
|
|
2640
2658
|
margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.25);
|
|
@@ -5450,16 +5468,17 @@ html body .odx-fs-italic {
|
|
|
5450
5468
|
display: block;
|
|
5451
5469
|
}
|
|
5452
5470
|
|
|
5453
|
-
.odx-rich-list-header {
|
|
5471
|
+
.odx-rich-list-item-header {
|
|
5454
5472
|
align-items: center;
|
|
5455
5473
|
-moz-column-gap: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
|
|
5456
5474
|
column-gap: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
|
|
5457
5475
|
display: flex;
|
|
5476
|
+
flex: 1;
|
|
5458
5477
|
-webkit-user-select: none;
|
|
5459
5478
|
-moz-user-select: none;
|
|
5460
5479
|
user-select: none;
|
|
5461
5480
|
}
|
|
5462
|
-
.odx-rich-list-header__title {
|
|
5481
|
+
.odx-rich-list-item-header__title {
|
|
5463
5482
|
font-size: calc(var(--odx-typography-base-size) * (1*1/var(--odx-typography-negative-font-scaling-factor)));
|
|
5464
5483
|
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
5465
5484
|
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
@@ -5469,25 +5488,32 @@ html body .odx-fs-italic {
|
|
|
5469
5488
|
overflow: hidden;
|
|
5470
5489
|
text-align: center;
|
|
5471
5490
|
}
|
|
5472
|
-
.odx-rich-list-header__icon {
|
|
5491
|
+
.odx-rich-list-item-header__icon {
|
|
5473
5492
|
position: relative;
|
|
5474
5493
|
}
|
|
5475
5494
|
|
|
5476
5495
|
.odx-rich-list-item {
|
|
5477
|
-
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
5478
5496
|
padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
5479
|
-
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
5480
5497
|
padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
5481
5498
|
border-bottom: 1px solid var(--odx-input-control-outline-color);
|
|
5482
5499
|
display: block;
|
|
5483
5500
|
}
|
|
5484
|
-
.odx-rich-list
|
|
5485
|
-
|
|
5501
|
+
.odx-rich-list:not(.odx-rich-list--condensed) > .odx-rich-list-item {
|
|
5502
|
+
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
5503
|
+
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
5504
|
+
}
|
|
5505
|
+
.odx-rich-list-item.is-disabled .odx-rich-list-item-header__title,
|
|
5506
|
+
.odx-rich-list-item.is-disabled .odx-rich-list-item-header .odx-avatar {
|
|
5486
5507
|
color: var(--odx-c-text-disabled);
|
|
5487
5508
|
}
|
|
5488
|
-
.odx-rich-list-item.is-disabled .odx-rich-list-header .odx-avatar {
|
|
5509
|
+
.odx-rich-list-item.is-disabled .odx-rich-list-item-header .odx-avatar {
|
|
5489
5510
|
filter: saturate(0);
|
|
5490
5511
|
}
|
|
5512
|
+
.odx-rich-list-item__header {
|
|
5513
|
+
-moz-column-gap: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
|
|
5514
|
+
column-gap: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
|
|
5515
|
+
display: flex;
|
|
5516
|
+
}
|
|
5491
5517
|
.odx-rich-list-item__slot {
|
|
5492
5518
|
margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
5493
5519
|
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
|
|
@@ -5496,10 +5522,10 @@ html body .odx-fs-italic {
|
|
|
5496
5522
|
padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
|
|
5497
5523
|
overflow: hidden;
|
|
5498
5524
|
}
|
|
5499
|
-
.odx-rich-list-item--empty .odx-rich-list-
|
|
5525
|
+
.odx-rich-list-item--empty .odx-rich-list-item__expand-button {
|
|
5500
5526
|
display: none;
|
|
5501
5527
|
}
|
|
5502
|
-
.odx-rich-list-item--expanded .odx-rich-list-
|
|
5528
|
+
.odx-rich-list-item--expanded .odx-rich-list-item__icon {
|
|
5503
5529
|
transform: scaleY(-1);
|
|
5504
5530
|
}
|
|
5505
5531
|
|
package/package.json
CHANGED
|
@@ -147,4 +147,24 @@
|
|
|
147
147
|
@include dimensions.margin($icon-margin, left);
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
+
|
|
151
|
+
&--large {
|
|
152
|
+
$icon-margin: 0.5;
|
|
153
|
+
|
|
154
|
+
@include dimensions.height(2, 2);
|
|
155
|
+
@include dimensions.padding-x(2 * $icon-margin);
|
|
156
|
+
@include typography.font-size(1);
|
|
157
|
+
|
|
158
|
+
> .odx-icon {
|
|
159
|
+
@include dimensions.margin-x(-$icon-margin * math.div(2, 3));
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
> .odx-icon[alignLeft] {
|
|
163
|
+
@include dimensions.margin($icon-margin * math.div(2, 3), right);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
> .odx-icon[alignRight] {
|
|
167
|
+
@include dimensions.margin($icon-margin * math.div(2, 3), left);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
150
170
|
}
|
package/scss/components/{rich-list-header.component.scss → rich-list-item-header.component.scss}
RENAMED
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
@use '../abstract/typography';
|
|
5
5
|
@use '../abstract/utils';
|
|
6
6
|
|
|
7
|
-
.odx-rich-list-header {
|
|
7
|
+
.odx-rich-list-item-header {
|
|
8
8
|
$root: &;
|
|
9
9
|
|
|
10
10
|
align-items: center;
|
|
11
11
|
column-gap: dimensions.get-size(math.div(16, 24));
|
|
12
12
|
display: flex;
|
|
13
|
+
flex: 1;
|
|
13
14
|
user-select: none;
|
|
14
15
|
|
|
15
16
|
&__title {
|
|
@@ -6,23 +6,33 @@
|
|
|
6
6
|
|
|
7
7
|
.odx-rich-list-item {
|
|
8
8
|
$root: &;
|
|
9
|
+
$parent: odx-rich-list;
|
|
9
10
|
|
|
10
|
-
@include dimensions.padding(math.div(8, 24));
|
|
11
|
+
@include dimensions.padding-x(math.div(8, 24));
|
|
12
|
+
|
|
13
|
+
.#{$parent}:not(.#{$parent}--condensed) > & {
|
|
14
|
+
@include dimensions.padding-y(math.div(8, 24));
|
|
15
|
+
}
|
|
11
16
|
|
|
12
17
|
border-bottom: 1px solid var(--odx-input-control-outline-color);
|
|
13
18
|
display: block;
|
|
14
19
|
|
|
15
20
|
&.is-disabled {
|
|
16
|
-
.odx-rich-list-header__title,
|
|
17
|
-
.odx-rich-list-header .odx-avatar {
|
|
21
|
+
.odx-rich-list-item-header__title,
|
|
22
|
+
.odx-rich-list-item-header .odx-avatar {
|
|
18
23
|
color: var(--odx-c-text-disabled);
|
|
19
24
|
}
|
|
20
25
|
|
|
21
|
-
.odx-rich-list-header .odx-avatar {
|
|
26
|
+
.odx-rich-list-item-header .odx-avatar {
|
|
22
27
|
filter: saturate(0);
|
|
23
28
|
}
|
|
24
29
|
}
|
|
25
30
|
|
|
31
|
+
&__header {
|
|
32
|
+
column-gap: dimensions.get-size(math.div(16, 24));
|
|
33
|
+
display: flex;
|
|
34
|
+
}
|
|
35
|
+
|
|
26
36
|
&__slot {
|
|
27
37
|
@include dimensions.margin(math.div(8, 24), top);
|
|
28
38
|
@include dimensions.padding(math.div(16, 24));
|
|
@@ -31,13 +41,13 @@
|
|
|
31
41
|
}
|
|
32
42
|
|
|
33
43
|
&--empty {
|
|
34
|
-
|
|
44
|
+
#{$root}__expand-button {
|
|
35
45
|
display: none;
|
|
36
46
|
}
|
|
37
47
|
}
|
|
38
48
|
|
|
39
49
|
&--expanded {
|
|
40
|
-
|
|
50
|
+
#{$root}__icon {
|
|
41
51
|
transform: scaleY(-1);
|
|
42
52
|
}
|
|
43
53
|
}
|
package/scss/core.scss
CHANGED
|
@@ -73,7 +73,7 @@ Layout
|
|
|
73
73
|
@use 'components/rail-navigation.component';
|
|
74
74
|
@use 'components/rail-navigation-item.component';
|
|
75
75
|
@use 'components/rich-list.component.scss';
|
|
76
|
-
@use 'components/rich-list-header.component.scss';
|
|
76
|
+
@use 'components/rich-list-item-header.component.scss';
|
|
77
77
|
@use 'components/rich-list-item.component.scss';
|
|
78
78
|
@use 'components/select.component';
|
|
79
79
|
@use 'components/slider.component';
|