@odx/ui 1.0.0-rc.2 → 1.0.0-rc.21
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/323d385340fb9fee6450.svg +6 -0
- package/README.md +4 -4
- package/core-icons.css +43 -0
- package/core-icons.woff2 +0 -0
- package/core-theme.css +1 -1
- package/package.json +2 -1
- package/scss/abstract/_breakpoints.scss +12 -6
- package/scss/abstract/_dimensions.scss +2 -1
- package/scss/abstract/_motion.scss +3 -1
- package/scss/abstract/_utils.scss +18 -8
- package/scss/assets/fonts/PangeaText-MediumWeb.woff2 +0 -0
- package/scss/assets/fonts/PangeaText-RegularWeb.woff2 +0 -0
- package/scss/assets/fonts/PangeaText-SemiBoldWeb.woff2 +0 -0
- package/scss/assets/images/logo.svg +6 -0
- package/scss/cdk/active-indicator.scss +25 -0
- package/scss/cdk/connected-overlay.scss +36 -0
- package/scss/components/accordion-item.component.scss +5 -8
- package/scss/components/action-group.component.scss +3 -3
- package/scss/components/area-header.component.scss +15 -23
- package/scss/components/avatar.component.scss +6 -1
- package/scss/components/badge.component.scss +5 -14
- package/scss/components/bar.component.scss +86 -0
- package/scss/components/breadcrumbs.component.scss +26 -0
- package/scss/components/button-group.component.scss +9 -5
- package/scss/components/button.component.scss +26 -2
- package/scss/components/checkbox.component.scss +2 -1
- package/scss/components/chip.component.scss +52 -0
- package/scss/components/circular-progress.component.scss +75 -0
- package/scss/components/content-box.component.scss +20 -16
- package/scss/components/dropdown.component.scss +28 -0
- package/scss/components/expandable-list-item.component.scss +66 -0
- package/scss/components/form-field.component.scss +41 -9
- package/scss/components/header.component.scss +10 -4
- package/scss/components/icon.component.scss +1 -1
- package/scss/components/inline-message.component.scss +33 -0
- package/scss/components/launch-tile.component.scss +119 -0
- package/scss/components/list-item.component.scss +107 -0
- package/scss/components/list.component.scss +3 -0
- package/scss/components/loading-spinner.component.scss +54 -0
- package/scss/components/main-menu-item.component.scss +2 -1
- package/scss/components/main-menu.component.scss +6 -4
- package/scss/components/mainfilter-group.component.scss +80 -0
- package/scss/components/menu.component.scss +52 -0
- package/scss/components/modal.component.scss +79 -10
- package/scss/components/progress.component.scss +41 -0
- package/scss/components/radio-button.component.scss +1 -1
- package/scss/components/rail-navigation-item.component.scss +60 -0
- package/scss/components/rail-navigation.component.scss +32 -0
- package/scss/components/select.component.scss +107 -0
- package/scss/components/slider.component.scss +131 -0
- package/scss/components/spinbox.component.scss +124 -0
- package/scss/components/switch.component.scss +4 -4
- package/scss/components/tab-bar-item.component.scss +53 -0
- package/scss/components/tab-bar.component.scss +124 -0
- package/scss/components/toast-item.component.scss +77 -0
- package/scss/components/toast.component.scss +33 -0
- package/scss/components/toggle-button-group.component.scss +43 -4
- package/scss/components/toggle-button.component.scss +51 -29
- package/scss/components/tooltip.component.scss +34 -0
- package/scss/core.scss +34 -10
- package/scss/layout/_base.scss +6 -0
- package/scss/layout/_content.scss +25 -0
- package/scss/layout/_description-list.scss +30 -0
- package/scss/layout/_helpers.scss +6 -16
- package/scss/layout/_layout.scss +4 -0
- package/scss/layout/_text-list.scss +18 -0
- package/scss/layout/_typography.scss +23 -26
- package/scss/reset.scss +5 -0
- package/scss/variables/_color-palettes.scss +3 -2
- package/scss/variables/_colors.scss +9 -1
- package/scss/variables/_controls.scss +11 -2
- package/scss/variables/_typography.scss +2 -2
- package/scss/variables/_visuals.scss +12 -5
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/motion';
|
|
4
|
+
|
|
5
|
+
.odx-slider {
|
|
6
|
+
--odx-control-outline-color: var(--gray-200);
|
|
7
|
+
--odx-control-background-color: var(--gray-100);
|
|
8
|
+
--odx-control-background-color-hover: var(--cyan-600);
|
|
9
|
+
|
|
10
|
+
$root: &;
|
|
11
|
+
$thumb-size: dimensions.get-size(math.div(20, 24));
|
|
12
|
+
$track-height: dimensions.get-size(math.div(4, 24));
|
|
13
|
+
|
|
14
|
+
appearance: none;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
display: block;
|
|
17
|
+
width: 100%;
|
|
18
|
+
|
|
19
|
+
@mixin track-container() {
|
|
20
|
+
background-color: var(--odx-control-background-color);
|
|
21
|
+
border-radius: 2px;
|
|
22
|
+
outline: 1px solid var(--odx-control-outline-color);
|
|
23
|
+
outline-offset: -1px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin track-progress() {
|
|
27
|
+
border-radius: 2px;
|
|
28
|
+
height: $track-height;
|
|
29
|
+
position: relative;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@mixin thumb() {
|
|
33
|
+
@include motion.transition(background-color outline-color);
|
|
34
|
+
|
|
35
|
+
appearance: none;
|
|
36
|
+
background-color: var(--odx-control-background-color-selected);
|
|
37
|
+
border-radius: 50%;
|
|
38
|
+
height: $thumb-size;
|
|
39
|
+
margin-top: calc(#{$thumb-size} / -2 + #{$track-height} / 2);
|
|
40
|
+
outline: 1px solid var(--white);
|
|
41
|
+
width: $thumb-size;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&::-webkit-slider-container {
|
|
45
|
+
@include track-container();
|
|
46
|
+
|
|
47
|
+
margin: calc((#{$thumb-size} - #{$track-height}) / 2) 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&::-moz-range-track {
|
|
51
|
+
@include track-container();
|
|
52
|
+
|
|
53
|
+
height: $track-height;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&::-webkit-slider-runnable-track {
|
|
57
|
+
@include track-progress();
|
|
58
|
+
|
|
59
|
+
background: linear-gradient(var(--odx-control-background-color-selected), var(--odx-control-background-color-selected)) 0 / var(--odx-slider-filled) 100%
|
|
60
|
+
no-repeat,
|
|
61
|
+
transparent;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&::-moz-range-progress {
|
|
65
|
+
@include track-progress();
|
|
66
|
+
|
|
67
|
+
background: var(--odx-control-background-color-selected);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&::-webkit-slider-thumb {
|
|
71
|
+
@include thumb();
|
|
72
|
+
|
|
73
|
+
position: relative;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&::-moz-range-thumb {
|
|
77
|
+
@include thumb();
|
|
78
|
+
|
|
79
|
+
border: unset;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.is-disabled {
|
|
83
|
+
&::-webkit-slider-container {
|
|
84
|
+
background-color: var(--odx-control-background-color-disabled);
|
|
85
|
+
outline: 1px solid transparent;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&::-moz-range-track {
|
|
89
|
+
background-color: var(--odx-control-background-color-disabled);
|
|
90
|
+
outline: 1px solid transparent;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&::-webkit-slider-thumb {
|
|
94
|
+
background-color: var(--odx-c-text-disabled);
|
|
95
|
+
outline: 1px solid transparent;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&::-moz-range-thumb {
|
|
99
|
+
background-color: var(--odx-c-text-disabled);
|
|
100
|
+
outline: 1px solid transparent;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&::-webkit-slider-runnable-track {
|
|
104
|
+
background-image: linear-gradient(var(--odx-c-text-disabled), var(--odx-c-text-disabled));
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&::-moz-range-progress {
|
|
108
|
+
background-image: linear-gradient(var(--odx-c-text-disabled), var(--odx-c-text-disabled));
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&:focus-visible {
|
|
113
|
+
&::-webkit-slider-thumb {
|
|
114
|
+
outline: 2px solid var(--odx-c-highlight-active);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&::-moz-range-thumb {
|
|
118
|
+
outline: 2px solid var(--odx-c-highlight-active);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:hover:not(.is-disabled) {
|
|
123
|
+
&::-webkit-slider-thumb {
|
|
124
|
+
background-color: var(--odx-control-background-color-hover);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&::-moz-range-thumb {
|
|
128
|
+
background-color: var(--odx-control-background-color-hover);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../layout/helpers';
|
|
3
|
+
@use '../abstract/dimensions';
|
|
4
|
+
@use '../abstract/typography';
|
|
5
|
+
@use '../abstract/utils';
|
|
6
|
+
@use '../abstract/motion';
|
|
7
|
+
|
|
8
|
+
.odx-form-field__control:has(.odx-spinbox) {
|
|
9
|
+
background-color: transparent !important;
|
|
10
|
+
outline-color: transparent !important;
|
|
11
|
+
|
|
12
|
+
.odx-form-field-control {
|
|
13
|
+
padding: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&::after {
|
|
17
|
+
content: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.has-error & {
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
outline-color: transparent;
|
|
23
|
+
|
|
24
|
+
&:hover {
|
|
25
|
+
background-color: transparent;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.odx-spinbox {
|
|
31
|
+
$root: &;
|
|
32
|
+
|
|
33
|
+
align-items: stretch;
|
|
34
|
+
display: flex;
|
|
35
|
+
flex: 1;
|
|
36
|
+
gap: 1px;
|
|
37
|
+
|
|
38
|
+
&__input {
|
|
39
|
+
@include typography.font-weight(medium);
|
|
40
|
+
@include dimensions.padding-x(math.div(8, 24));
|
|
41
|
+
|
|
42
|
+
appearance: textfield;
|
|
43
|
+
text-align: center;
|
|
44
|
+
width: 100%;
|
|
45
|
+
|
|
46
|
+
&::placeholder {
|
|
47
|
+
@include typography.font-weight(normal);
|
|
48
|
+
|
|
49
|
+
color: var(--odx-input-control-color);
|
|
50
|
+
opacity: 0.65;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&::-webkit-inner-spin-button {
|
|
54
|
+
appearance: none;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&__input,
|
|
59
|
+
&__action {
|
|
60
|
+
@include motion.transition(background-color border-color color);
|
|
61
|
+
|
|
62
|
+
background-color: var(--odx-input-control-background-color);
|
|
63
|
+
border: 1px solid var(--odx-input-control-outline-color);
|
|
64
|
+
|
|
65
|
+
#{$root}.has-error & {
|
|
66
|
+
background-color: var(--odx-input-control-background-color-error);
|
|
67
|
+
border-color: var(--odx-input-control-outline-color-error) !important;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
#{$root} &:hover {
|
|
71
|
+
background-color: var(--odx-input-control-background-color-hover);
|
|
72
|
+
border-color: var(--odx-input-control-outline-color-hover);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
#{$root} &:active {
|
|
76
|
+
background-color: var(--odx-input-control-outline-color-hover);
|
|
77
|
+
border-color: var(--odx-input-control-outline-color-hover);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
#{$root}.is-readonly & {
|
|
81
|
+
background-color: var(--odx-input-control-outline-color-disabled);
|
|
82
|
+
border-color: var(--odx-input-control-outline-color-readonly) !important;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
#{$root} &:focus-visible {
|
|
86
|
+
background-color: var(--odx-c-focus);
|
|
87
|
+
border-color: var(--odx-c-focus-outline) !important;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
#{$root}.is-disabled & {
|
|
91
|
+
@include utils.non-interactive();
|
|
92
|
+
|
|
93
|
+
background-color: var(--odx-input-control-background-color-disabled);
|
|
94
|
+
border-color: var(--odx-input-control-outline-color-disabled) !important;
|
|
95
|
+
color: var(--odx-input-control-color-disabled);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&__action {
|
|
100
|
+
border-radius: var(--odx-v-border-radius-controls);
|
|
101
|
+
flex: 0 0 dimensions.get-size(math.div(36, 24));
|
|
102
|
+
height: 100%;
|
|
103
|
+
margin: 0;
|
|
104
|
+
outline: none;
|
|
105
|
+
|
|
106
|
+
&:first-child {
|
|
107
|
+
border-bottom-right-radius: 0;
|
|
108
|
+
border-right: unset;
|
|
109
|
+
border-top-right-radius: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&:last-child {
|
|
113
|
+
border-bottom-left-radius: 0;
|
|
114
|
+
border-left: unset;
|
|
115
|
+
border-top-left-radius: 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
#{$root}.is-readonly & {
|
|
119
|
+
@include utils.non-interactive();
|
|
120
|
+
|
|
121
|
+
color: var(--odx-input-control-color-disabled);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
@mixin indicator-color($background, $stroke: null) {
|
|
9
9
|
background-color: $background;
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
@if $stroke {
|
|
11
12
|
border-color: $stroke;
|
|
12
13
|
} @else {
|
|
13
14
|
border-color: $background;
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
display: inline-block;
|
|
22
23
|
|
|
23
24
|
&.is-disabled {
|
|
24
|
-
color: var(--odx-
|
|
25
|
+
color: var(--odx-control-color-disabled);
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
&.is-readonly {
|
|
@@ -91,8 +92,7 @@
|
|
|
91
92
|
content: '';
|
|
92
93
|
display: block;
|
|
93
94
|
height: $track-size;
|
|
94
|
-
outline: var(--odx-
|
|
95
|
-
outline-color: var(--odx-c-background-content);
|
|
95
|
+
outline: 1px solid var(--odx-c-background-content);
|
|
96
96
|
position: absolute;
|
|
97
97
|
top: calc(#{$track-size} / -2 + 50%);
|
|
98
98
|
transform: translateX(-1px);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/motion';
|
|
4
|
+
@use '../abstract/typography';
|
|
5
|
+
@use '../abstract//utils';
|
|
6
|
+
|
|
7
|
+
.odx-tab-bar-item {
|
|
8
|
+
@include dimensions.height(2, math.div(32, 24));
|
|
9
|
+
@include dimensions.padding-x(math.div(4, 24));
|
|
10
|
+
@include utils.vertical-center-content();
|
|
11
|
+
@include utils.with-outline();
|
|
12
|
+
@include motion.transition(background-color outline-color);
|
|
13
|
+
|
|
14
|
+
align-items: center;
|
|
15
|
+
background-color: transparent;
|
|
16
|
+
border-radius: var(--odx-v-border-radius-controls);
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
user-select: none;
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
background-color: var(--blue-700-5);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.odx-icon {
|
|
25
|
+
@include dimensions.container(1, 1);
|
|
26
|
+
@include dimensions.margin-x(math.div(4, 24));
|
|
27
|
+
|
|
28
|
+
font-size: dimensions.get-size(1);
|
|
29
|
+
|
|
30
|
+
&:first-child {
|
|
31
|
+
margin-left: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:last-child:not(:first-child) {
|
|
35
|
+
@include motion.transition(color);
|
|
36
|
+
|
|
37
|
+
margin-right: 0;
|
|
38
|
+
|
|
39
|
+
&:hover {
|
|
40
|
+
color: var(--odx-c-highlight);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.is-disabled {
|
|
46
|
+
color: var(--odx-c-text-disabled);
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
|
|
49
|
+
.odx-tab-bar-item__label {
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/motion';
|
|
4
|
+
@use '../abstract/utils';
|
|
5
|
+
|
|
6
|
+
.odx-tab-bar {
|
|
7
|
+
$root: &;
|
|
8
|
+
|
|
9
|
+
@include dimensions.height(2);
|
|
10
|
+
|
|
11
|
+
border-bottom: 1px solid;
|
|
12
|
+
border-bottom-color: var(--odx-control-outline-color-hover);
|
|
13
|
+
display: flex;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
position: relative;
|
|
16
|
+
|
|
17
|
+
&__inner {
|
|
18
|
+
$gradient-start: dimensions.get-size(1);
|
|
19
|
+
$gradient-end: dimensions.get-size(3);
|
|
20
|
+
$mask-color: #000000;
|
|
21
|
+
|
|
22
|
+
display: flex;
|
|
23
|
+
width: 100%;
|
|
24
|
+
|
|
25
|
+
#{$root}--overflow-left & {
|
|
26
|
+
mask-image: linear-gradient(to right, transparent $gradient-start, $mask-color $gradient-end);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
#{$root}--overflow-right & {
|
|
30
|
+
mask-image: linear-gradient(to right, $mask-color calc(100% - $gradient-end), transparent calc(100% - $gradient-start));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
#{$root}--overflow-left#{$root}--overflow-right & {
|
|
34
|
+
mask-image: linear-gradient(
|
|
35
|
+
to right,
|
|
36
|
+
transparent $gradient-start,
|
|
37
|
+
$mask-color $gradient-end,
|
|
38
|
+
$mask-color calc(100% - $gradient-end),
|
|
39
|
+
transparent calc(100% - $gradient-start)
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&__panel {
|
|
45
|
+
@include motion.transition(transform);
|
|
46
|
+
@include dimensions.padding-x(math.div(12, 24));
|
|
47
|
+
|
|
48
|
+
display: flex;
|
|
49
|
+
flex: 0 0 auto;
|
|
50
|
+
gap: dimensions.get-size(math.div(8, 24));
|
|
51
|
+
position: relative;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&__action {
|
|
55
|
+
@include dimensions.height(2);
|
|
56
|
+
@include motion.transition(opacity width padding);
|
|
57
|
+
@include utils.center-content();
|
|
58
|
+
|
|
59
|
+
background-color: transparent;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
opacity: 0;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
padding: 0;
|
|
64
|
+
pointer-events: none;
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: 0;
|
|
67
|
+
user-select: none;
|
|
68
|
+
width: 0;
|
|
69
|
+
z-index: var(--odx-v-layer-1);
|
|
70
|
+
|
|
71
|
+
&.is-active {
|
|
72
|
+
@include dimensions.padding(math.div(8, 24), (right, left));
|
|
73
|
+
|
|
74
|
+
opacity: 1;
|
|
75
|
+
pointer-events: all;
|
|
76
|
+
transform: scaleX(1);
|
|
77
|
+
width: dimensions.get-size(1.5);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.odx-icon {
|
|
81
|
+
@include dimensions.container(1, 1);
|
|
82
|
+
|
|
83
|
+
align-items: center;
|
|
84
|
+
color: var(--odx-c-highlight);
|
|
85
|
+
display: flex;
|
|
86
|
+
font-size: dimensions.get-size(math.div(32, 24));
|
|
87
|
+
justify-content: center;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&--prev {
|
|
91
|
+
justify-content: flex-start;
|
|
92
|
+
left: 0;
|
|
93
|
+
transform-origin: center left;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&--next {
|
|
97
|
+
justify-content: flex-end;
|
|
98
|
+
right: 0;
|
|
99
|
+
transform-origin: center right;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&:hover {
|
|
103
|
+
.odx-icon {
|
|
104
|
+
color: var(--odx-c-highlight-hover);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.odx-tab-bar__indicator {
|
|
110
|
+
@include dimensions.margin(math.div(8, 24), left);
|
|
111
|
+
|
|
112
|
+
background-color: var(--odx-c-highlight);
|
|
113
|
+
bottom: 0;
|
|
114
|
+
height: dimensions.get-size(math.div(4, 24));
|
|
115
|
+
width: dimensions.get-size(2) !important;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&:focus-visible {
|
|
119
|
+
.odx-tab-bar-item.is-active {
|
|
120
|
+
background-color: var(--odx-c-focus);
|
|
121
|
+
outline-color: var(--odx-c-focus-outline);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/typography';
|
|
4
|
+
@use '../abstract/utils';
|
|
5
|
+
|
|
6
|
+
.odx-toast-item {
|
|
7
|
+
--odx-c-default: var(--blue-50);
|
|
8
|
+
--odx-c-warning: var(--yellow-50);
|
|
9
|
+
--odx-c-danger: var(--red-00);
|
|
10
|
+
--odx-c-success: var(--green-00);
|
|
11
|
+
|
|
12
|
+
$root: &;
|
|
13
|
+
$variants: default, warning, danger, success;
|
|
14
|
+
$gap: dimensions.get-size(math.div(12, 24));
|
|
15
|
+
|
|
16
|
+
box-shadow: var(--odx-v-box-shadow-layer-1);
|
|
17
|
+
display: block;
|
|
18
|
+
|
|
19
|
+
&__content {
|
|
20
|
+
display: flex;
|
|
21
|
+
gap: $gap;
|
|
22
|
+
padding: $gap;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__text-content {
|
|
26
|
+
@include typography.font-size(-1);
|
|
27
|
+
|
|
28
|
+
flex: 1;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__title {
|
|
32
|
+
font-weight: var(--odx-typography-font-weight-bold);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&__description {
|
|
36
|
+
max-height: dimensions.get-size(5);
|
|
37
|
+
overflow: auto;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&__close {
|
|
41
|
+
@include utils.interactive(true);
|
|
42
|
+
|
|
43
|
+
background-color: transparent;
|
|
44
|
+
margin: 0;
|
|
45
|
+
margin-right: calc(#{$gap} / -2);
|
|
46
|
+
margin-top: calc(#{$gap} / -2);
|
|
47
|
+
|
|
48
|
+
&:hover {
|
|
49
|
+
background-color: var(--blue-700-5);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&__buttons {
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: flex-end;
|
|
56
|
+
margin-top: calc(#{$gap} / -2);
|
|
57
|
+
padding: 0 calc(#{$gap} / 2);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@each $variant in $variants {
|
|
61
|
+
&--#{$variant} {
|
|
62
|
+
background-color: var(--odx-c-#{$variant});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&--danger {
|
|
67
|
+
--odx-c-text: var(--red-700);
|
|
68
|
+
--odx-v-scrollbar-thumb-color: var(--odx-c-text);
|
|
69
|
+
--odx-v-scrollbar-thumb-color-hover: var(--red-800);
|
|
70
|
+
|
|
71
|
+
color: var(--odx-c-text);
|
|
72
|
+
|
|
73
|
+
#{$root}__close {
|
|
74
|
+
color: inherit;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/breakpoints';
|
|
3
|
+
@use '../abstract/dimensions';
|
|
4
|
+
@use '../abstract/typography';
|
|
5
|
+
|
|
6
|
+
.odx-toast-container {
|
|
7
|
+
--odx-toast-outer-offset: #{dimensions.get-size(math.div(8, 24))};
|
|
8
|
+
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
margin-top: dimensions.get-size(math.div(4, 24));
|
|
12
|
+
max-width: min(calc(100vw - 2 * var(--odx-toast-outer-offset)), dimensions.get-size(20));
|
|
13
|
+
padding-top: var(--odx-toast-outer-offset);
|
|
14
|
+
position: fixed;
|
|
15
|
+
right: var(--odx-toast-outer-offset);
|
|
16
|
+
top: 0;
|
|
17
|
+
width: 100%;
|
|
18
|
+
z-index: var(--odx-v-layer-4);
|
|
19
|
+
|
|
20
|
+
&__counter {
|
|
21
|
+
align-self: center;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.odx-toast-item {
|
|
25
|
+
margin-bottom: var(--odx-toast-outer-offset);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@include breakpoints.up(phone) {
|
|
29
|
+
--odx-toast-outer-offset: #{dimensions.get-size(math.div(20, 24))};
|
|
30
|
+
|
|
31
|
+
margin-top: 0;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -4,22 +4,61 @@
|
|
|
4
4
|
@use '../abstract/utils';
|
|
5
5
|
|
|
6
6
|
.odx-toggle-button-group {
|
|
7
|
+
--odx-toggle-button-border-radius: 2px;
|
|
8
|
+
|
|
9
|
+
$root: &;
|
|
10
|
+
|
|
7
11
|
@include dimensions.height(2, 1.5);
|
|
8
12
|
@include dimensions.padding-x(math.div(6, 24));
|
|
9
|
-
@include motion.transition(background-color);
|
|
13
|
+
@include motion.transition(background-color outline-color);
|
|
10
14
|
@include utils.center-content(true);
|
|
11
15
|
@include utils.with-outline();
|
|
12
16
|
|
|
13
17
|
border-radius: var(--odx-v-border-radius-controls);
|
|
14
18
|
column-gap: dimensions.get-size(math.div(6, 24));
|
|
19
|
+
position: relative;
|
|
20
|
+
|
|
21
|
+
&__indicator {
|
|
22
|
+
@include dimensions.height(2, 1);
|
|
23
|
+
@include utils.with-outline();
|
|
24
|
+
|
|
25
|
+
background-color: var(--odx-c-highlight);
|
|
26
|
+
border-radius: var(--odx-toggle-button-border-radius);
|
|
27
|
+
|
|
28
|
+
#{$root}.is-disabled & {
|
|
29
|
+
background-color: var(--odx-c-secondary-disabled);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
#{$root}.is-readonly & {
|
|
33
|
+
background-color: transparent;
|
|
34
|
+
outline-color: currentcolor;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
#{$root}.is-readonly.is-disabled & {
|
|
38
|
+
background-color: transparent;
|
|
39
|
+
outline-color: var(--odx-c-secondary-disabled);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
#{$root}:focus-within:has(:focus-visible) & {
|
|
43
|
+
outline-color: var(--odx-c-highlight-active);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.odx-toggle-button {
|
|
48
|
+
flex: 1 1 auto;
|
|
49
|
+
z-index: var(--odx-v-layer-2);
|
|
50
|
+
}
|
|
15
51
|
|
|
16
52
|
&.has-error:not(.is-disabled, .is-readonly) {
|
|
17
53
|
background-color: var(--odx-c-error);
|
|
18
54
|
outline-color: var(--odx-c-error-outline);
|
|
19
55
|
}
|
|
20
56
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
57
|
+
&.is-active {
|
|
58
|
+
@include utils.focus-state($focus-within: true);
|
|
59
|
+
|
|
60
|
+
&:not(.is-disabled, .is-readonly):hover {
|
|
61
|
+
background-color: var(--blue-700-5);
|
|
62
|
+
}
|
|
24
63
|
}
|
|
25
64
|
}
|