@odx/ui 2.11.1 → 2.12.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/CHANGELOG.md +12 -0
- package/core-theme.css +60 -44
- package/package.json +1 -1
- package/scss/components/button.component.scss +1 -1
- package/scss/components/chip.component.scss +2 -2
- package/scss/components/rich-list-header.component.scss +28 -0
- package/scss/components/rich-list-item.component.scss +20 -27
- package/scss/core.scss +1 -0
package/CHANGELOG.md
CHANGED
package/core-theme.css
CHANGED
|
@@ -2568,6 +2568,22 @@ html body .odx-fs-italic {
|
|
|
2568
2568
|
background-color: var(--odx-c-confirmation-disabled);
|
|
2569
2569
|
color: var(--odx-c-confirmation-text-disabled);
|
|
2570
2570
|
}
|
|
2571
|
+
.odx-button--warning {
|
|
2572
|
+
background-color: var(--odx-c-warning);
|
|
2573
|
+
color: var(--odx-c-warning-text);
|
|
2574
|
+
}
|
|
2575
|
+
@media (hover: hover){
|
|
2576
|
+
.odx-button--warning:hover {
|
|
2577
|
+
background-color: var(--odx-c-warning-hover);
|
|
2578
|
+
}
|
|
2579
|
+
}
|
|
2580
|
+
.odx-button--warning.odx-dropdown-host[aria-expanded=true], .odx-button--warning.is-active, .odx-button--warning:active {
|
|
2581
|
+
background-color: var(--odx-c-warning-active);
|
|
2582
|
+
}
|
|
2583
|
+
.odx-button--warning:disabled, .odx-button--warning.is-disabled {
|
|
2584
|
+
background-color: var(--odx-c-warning-disabled);
|
|
2585
|
+
color: var(--odx-c-warning-text-disabled);
|
|
2586
|
+
}
|
|
2571
2587
|
.odx-button--ghost, .odx-main-menu__close, .odx-main-menu-button, .odx-action-group > .odx-button:not(.odx-button--primary, .odx-button--success, .odx-button--danger, .odx-button--confirmation, .odx-auth-sign-in) {
|
|
2572
2588
|
outline: var(--odx-v-outline-width) solid transparent;
|
|
2573
2589
|
outline-offset: calc(-1 * var(--odx-v-outline-width));
|
|
@@ -3544,6 +3560,14 @@ body {
|
|
|
3544
3560
|
background-color: var(--odx-c-danger);
|
|
3545
3561
|
color: var(--odx-c-danger-text);
|
|
3546
3562
|
}
|
|
3563
|
+
.odx-chip--warning {
|
|
3564
|
+
background-color: var(--odx-c-warning);
|
|
3565
|
+
color: var(--odx-c-warning-text);
|
|
3566
|
+
}
|
|
3567
|
+
.odx-chip--confirmation {
|
|
3568
|
+
background-color: var(--odx-c-confirmation);
|
|
3569
|
+
color: var(--odx-c-confirmation-text);
|
|
3570
|
+
}
|
|
3547
3571
|
|
|
3548
3572
|
.odx-chip-list {
|
|
3549
3573
|
display: flex;
|
|
@@ -5357,66 +5381,58 @@ body[odxTheme=dark], body.odx-theme-dark {
|
|
|
5357
5381
|
display: block;
|
|
5358
5382
|
}
|
|
5359
5383
|
|
|
5360
|
-
.odx-rich-list-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
border-bottom: 1px solid var(--odx-input-control-outline-color);
|
|
5366
|
-
display: block;
|
|
5367
|
-
}
|
|
5368
|
-
.odx-rich-list-item__panel {
|
|
5369
|
-
padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
|
|
5370
|
-
padding-left: calc(var(--odx-vertical-rythm-base-size) * 2.6667);
|
|
5371
|
-
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
|
|
5372
|
-
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
|
|
5373
|
-
transition-delay: 0ms;
|
|
5374
|
-
transition-duration: var(--odx-v-transition-duration);
|
|
5375
|
-
transition-property: background-color, outline-color;
|
|
5376
|
-
transition-timing-function: var(--odx-v-transition-easing-fn);
|
|
5377
|
-
outline: var(--odx-v-outline-width) solid transparent;
|
|
5378
|
-
outline-offset: calc(-1 * var(--odx-v-outline-width));
|
|
5379
|
-
cursor: pointer;
|
|
5384
|
+
.odx-rich-list-header {
|
|
5385
|
+
align-items: center;
|
|
5386
|
+
-moz-column-gap: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
|
|
5387
|
+
column-gap: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
|
|
5388
|
+
display: flex;
|
|
5380
5389
|
-webkit-user-select: none;
|
|
5381
5390
|
-moz-user-select: none;
|
|
5382
5391
|
user-select: none;
|
|
5383
|
-
border-radius: var(--odx-v-border-radius-controls);
|
|
5384
|
-
position: relative;
|
|
5385
|
-
}
|
|
5386
|
-
.odx-rich-list-item__panel:focus-visible {
|
|
5387
|
-
outline-color: var(--odx-c-focus-outline);
|
|
5388
5392
|
}
|
|
5389
|
-
.odx-rich-list-
|
|
5390
|
-
|
|
5391
|
-
|
|
5393
|
+
.odx-rich-list-header__title {
|
|
5394
|
+
font-size: calc(var(--odx-typography-base-size) * (1*1/var(--odx-typography-negative-font-scaling-factor)));
|
|
5395
|
+
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
5396
|
+
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
5397
|
+
line-height: calc(var(--odx-vertical-rythm-base-size) * 0.8334);
|
|
5398
|
+
flex: 1;
|
|
5399
|
+
max-height: calc(var(--odx-vertical-rythm-base-size) * 1.5);
|
|
5400
|
+
overflow: hidden;
|
|
5401
|
+
text-align: center;
|
|
5392
5402
|
}
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
background-color: var(--blue-700-5);
|
|
5403
|
+
.odx-rich-list-header__icon {
|
|
5404
|
+
position: relative;
|
|
5396
5405
|
}
|
|
5406
|
+
|
|
5407
|
+
.odx-rich-list-item {
|
|
5408
|
+
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
5409
|
+
padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
5410
|
+
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
5411
|
+
padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
5412
|
+
border-bottom: 1px solid var(--odx-input-control-outline-color);
|
|
5413
|
+
display: block;
|
|
5397
5414
|
}
|
|
5398
|
-
.odx-rich-list-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
transition-property: transform;
|
|
5402
|
-
transition-timing-function: var(--odx-v-transition-easing-fn);
|
|
5403
|
-
left: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
|
|
5404
|
-
position: absolute;
|
|
5405
|
-
top: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
|
|
5406
|
-
transform: rotate(0deg);
|
|
5415
|
+
.odx-rich-list-item.is-disabled .odx-rich-list-header__title,
|
|
5416
|
+
.odx-rich-list-item.is-disabled .odx-rich-list-header .odx-avatar {
|
|
5417
|
+
color: var(--odx-c-text-disabled);
|
|
5407
5418
|
}
|
|
5408
|
-
.odx-rich-list-item
|
|
5409
|
-
|
|
5419
|
+
.odx-rich-list-item.is-disabled .odx-rich-list-header .odx-avatar {
|
|
5420
|
+
filter: saturate(0);
|
|
5410
5421
|
}
|
|
5411
5422
|
.odx-rich-list-item__slot {
|
|
5423
|
+
margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
5412
5424
|
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
|
|
5413
5425
|
padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
|
|
5414
5426
|
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
|
|
5415
5427
|
padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
|
|
5416
|
-
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
5417
|
-
padding-left: calc(var(--odx-vertical-rythm-base-size) * 2.6667);
|
|
5418
5428
|
overflow: hidden;
|
|
5419
5429
|
}
|
|
5430
|
+
.odx-rich-list-item--empty .odx-rich-list-header__expand-button {
|
|
5431
|
+
display: none;
|
|
5432
|
+
}
|
|
5433
|
+
.odx-rich-list-item--expanded .odx-rich-list-header__icon {
|
|
5434
|
+
transform: scaleY(-1);
|
|
5435
|
+
}
|
|
5420
5436
|
|
|
5421
5437
|
body {
|
|
5422
5438
|
--odx-select-max-height: 220px;
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
@use 'icon.component';
|
|
11
11
|
|
|
12
12
|
.odx-button {
|
|
13
|
-
$variants: secondary, primary, highlight, success, danger, confirmation;
|
|
13
|
+
$variants: secondary, primary, highlight, success, danger, confirmation, warning;
|
|
14
14
|
$icon-margin: 0.25;
|
|
15
15
|
|
|
16
16
|
@extend .odx-button--secondary;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
@use '../abstract/motion';
|
|
5
5
|
@use '../abstract/typography';
|
|
6
6
|
|
|
7
|
-
$sizes:
|
|
8
|
-
$variants:
|
|
7
|
+
$sizes: small 1 -1, medium 1.5 0;
|
|
8
|
+
$variants: secondary, highlight, success, danger, warning, confirmation;
|
|
9
9
|
|
|
10
10
|
.odx-chip {
|
|
11
11
|
$root: &;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/motion';
|
|
4
|
+
@use '../abstract/typography';
|
|
5
|
+
@use '../abstract/utils';
|
|
6
|
+
|
|
7
|
+
.odx-rich-list-header {
|
|
8
|
+
$root: &;
|
|
9
|
+
|
|
10
|
+
align-items: center;
|
|
11
|
+
column-gap: dimensions.get-size(math.div(16, 24));
|
|
12
|
+
display: flex;
|
|
13
|
+
user-select: none;
|
|
14
|
+
|
|
15
|
+
&__title {
|
|
16
|
+
@include typography.font-size(-1);
|
|
17
|
+
@include dimensions.line-height(math.div(20, 24));
|
|
18
|
+
|
|
19
|
+
flex: 1;
|
|
20
|
+
max-height: dimensions.get-size(math.div(36, 24));
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
text-align: center;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__icon {
|
|
26
|
+
position: relative;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -7,45 +7,38 @@
|
|
|
7
7
|
.odx-rich-list-item {
|
|
8
8
|
$root: &;
|
|
9
9
|
|
|
10
|
-
@include
|
|
10
|
+
@include dimensions.padding(math.div(8, 24));
|
|
11
11
|
|
|
12
12
|
border-bottom: 1px solid var(--odx-input-control-outline-color);
|
|
13
13
|
display: block;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
@include dimensions.padding(math.div(16, 24), bottom);
|
|
20
|
-
@include motion.transition(background-color outline-color);
|
|
21
|
-
@include utils.interactive(false);
|
|
22
|
-
|
|
23
|
-
border-radius: var(--odx-v-border-radius-controls);
|
|
24
|
-
position: relative;
|
|
25
|
-
|
|
26
|
-
&:hover {
|
|
27
|
-
background-color: var(--blue-700-5);
|
|
15
|
+
&.is-disabled {
|
|
16
|
+
.odx-rich-list-header__title,
|
|
17
|
+
.odx-rich-list-header .odx-avatar {
|
|
18
|
+
color: var(--odx-c-text-disabled);
|
|
28
19
|
}
|
|
29
|
-
}
|
|
30
20
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
left: dimensions.get-size(math.div(16, 24));
|
|
35
|
-
position: absolute;
|
|
36
|
-
top: dimensions.get-size(math.div(16, 24));
|
|
37
|
-
transform: rotate(0deg);
|
|
38
|
-
|
|
39
|
-
#{$root}--expanded & {
|
|
40
|
-
transform: rotate(90deg);
|
|
21
|
+
.odx-rich-list-header .odx-avatar {
|
|
22
|
+
filter: saturate(0);
|
|
41
23
|
}
|
|
42
24
|
}
|
|
43
25
|
|
|
44
26
|
&__slot {
|
|
27
|
+
@include dimensions.margin(math.div(8, 24), top);
|
|
45
28
|
@include dimensions.padding(math.div(16, 24));
|
|
46
|
-
@include dimensions.padding(math.div(8, 24), top);
|
|
47
|
-
@include dimensions.padding(math.div(64, 24), left);
|
|
48
29
|
|
|
49
30
|
overflow: hidden;
|
|
50
31
|
}
|
|
32
|
+
|
|
33
|
+
&--empty {
|
|
34
|
+
.odx-rich-list-header__expand-button {
|
|
35
|
+
display: none;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&--expanded {
|
|
40
|
+
.odx-rich-list-header__icon {
|
|
41
|
+
transform: scaleY(-1);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
51
44
|
}
|
package/scss/core.scss
CHANGED
|
@@ -71,6 +71,7 @@ Layout
|
|
|
71
71
|
@use 'components/rail-navigation.component';
|
|
72
72
|
@use 'components/rail-navigation-item.component';
|
|
73
73
|
@use 'components/rich-list.component.scss';
|
|
74
|
+
@use 'components/rich-list-header.component.scss';
|
|
74
75
|
@use 'components/rich-list-item.component.scss';
|
|
75
76
|
@use 'components/select.component';
|
|
76
77
|
@use 'components/slider.component';
|