@odx/ui 5.0.13 → 5.2.0
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 +17 -0
- package/charts-theme.css +1 -1
- package/core-theme.css +1 -1
- package/package.json +1 -1
- package/scss/_color-palettes-dark.scss +11 -50
- package/scss/_color-palettes.scss +42 -94
- package/scss/anchor-navigation.component.scss +91 -0
- package/scss/chart-footer.component.scss +21 -0
- package/scss/chart-header.component.scss +49 -0
- package/scss/charts/colors/_color-palettes-dark.scss +14 -0
- package/scss/charts/colors/_color-palettes.scss +44 -0
- package/scss/charts/components/chart-footer.component.scss +21 -0
- package/scss/charts/components/chart-header.component.scss +49 -0
- package/scss/charts/components/circle-chart-table.component.scss +46 -0
- package/scss/charts/components/gantt-chart.component.scss +24 -0
- package/scss/charts/components/line-timeframes-chart.component.scss +59 -0
- package/scss/charts/components/mirror-bar-chart.component.scss +34 -0
- package/scss/charts/components/multi-axis-box-plot.component.scss +49 -0
- package/scss/charts/components/slider-bar-chart.component.scss +7 -0
- package/scss/charts/components/stairs-combo-chart.component.scss +9 -0
- package/scss/charts/theme.scss +13 -47
- package/scss/chip.component.scss +1 -0
- package/scss/circle-chart-table.component.scss +46 -0
- package/scss/colors/_color-palettes-dark.scss +14 -0
- package/scss/colors/_color-palettes.scss +44 -0
- package/scss/components/anchor-navigation.component.scss +91 -0
- package/scss/components/chart-footer.component.scss +21 -0
- package/scss/components/chart-header.component.scss +49 -0
- package/scss/components/chip.component.scss +1 -0
- package/scss/components/circle-chart-table.component.scss +46 -0
- package/scss/components/gantt-chart.component.scss +24 -0
- package/scss/components/line-timeframes-chart.component.scss +59 -0
- package/scss/components/mirror-bar-chart.component.scss +34 -0
- package/scss/components/multi-axis-box-plot.component.scss +49 -0
- package/scss/components/slider-bar-chart.component.scss +7 -0
- package/scss/components/stairs-combo-chart.component.scss +9 -0
- package/scss/components/table.component.scss +0 -6
- package/scss/components/toast-item.component.scss +20 -2
- package/scss/components/toast.component.scss +0 -1
- package/scss/core.scss +1 -0
- package/scss/gantt-chart.component.scss +24 -0
- package/scss/line-timeframes-chart.component.scss +59 -0
- package/scss/mirror-bar-chart.component.scss +34 -0
- package/scss/multi-axis-box-plot.component.scss +49 -0
- package/scss/slider-bar-chart.component.scss +7 -0
- package/scss/stairs-combo-chart.component.scss +9 -0
- package/scss/table.component.scss +0 -6
- package/scss/toast-item.component.scss +20 -2
- package/scss/toast.component.scss +0 -1
|
@@ -8,13 +8,16 @@
|
|
|
8
8
|
--odx-c-warning: var(--yellow-50);
|
|
9
9
|
--odx-c-danger: var(--red-00);
|
|
10
10
|
--odx-c-success: var(--green-00);
|
|
11
|
+
--odx-c-warning-strong: var(--yellow-500);
|
|
12
|
+
--odx-c-danger-strong: var(--red-500);
|
|
11
13
|
|
|
12
14
|
$root: &;
|
|
13
|
-
$variants: default, warning, danger, success;
|
|
15
|
+
$variants: default, warning, danger, success, warning-strong, danger-strong;
|
|
14
16
|
$gap: dimensions.get-size(math.div(12, 24));
|
|
15
17
|
|
|
16
18
|
border-radius: var(--odx-toast-border-radius);
|
|
17
19
|
box-shadow: var(--odx-v-box-shadow-layer-1);
|
|
20
|
+
color: var(--odx-c-text);
|
|
18
21
|
display: block;
|
|
19
22
|
|
|
20
23
|
&__content {
|
|
@@ -43,6 +46,7 @@
|
|
|
43
46
|
@include utils.interactive(true);
|
|
44
47
|
|
|
45
48
|
background-color: transparent;
|
|
49
|
+
color: var(--odx-c-text);
|
|
46
50
|
margin: 0;
|
|
47
51
|
margin-right: calc(#{$gap} / -2);
|
|
48
52
|
margin-top: calc(#{$gap} / -2);
|
|
@@ -66,7 +70,7 @@
|
|
|
66
70
|
}
|
|
67
71
|
|
|
68
72
|
&--danger {
|
|
69
|
-
--odx-c-text: var(--
|
|
73
|
+
--odx-c-text: var(--odx-c-error-text);
|
|
70
74
|
--odx-v-scrollbar-thumb-color: var(--odx-c-text);
|
|
71
75
|
--odx-v-scrollbar-thumb-color-hover: var(--red-800);
|
|
72
76
|
|
|
@@ -76,4 +80,18 @@
|
|
|
76
80
|
color: inherit;
|
|
77
81
|
}
|
|
78
82
|
}
|
|
83
|
+
|
|
84
|
+
&--danger-strong {
|
|
85
|
+
--odx-c-text: var(--white);
|
|
86
|
+
|
|
87
|
+
:root:has([odxTheme='dark'], .odx-theme-dark) & {
|
|
88
|
+
--odx-c-text: var(--black);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&--warning-strong {
|
|
93
|
+
:root:has([odxTheme='dark'], .odx-theme-dark) & {
|
|
94
|
+
--odx-c-text: var(--white);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
79
97
|
}
|
package/scss/core.scss
CHANGED
|
@@ -32,6 +32,7 @@ Layout
|
|
|
32
32
|
@use 'components/accordion.component';
|
|
33
33
|
@use 'components/accordion-item.component';
|
|
34
34
|
@use 'components/action-group.component';
|
|
35
|
+
@use 'components/anchor-navigation.component';
|
|
35
36
|
@use 'components/area-header.component';
|
|
36
37
|
@use 'components/autocomplete.component';
|
|
37
38
|
@use 'components/avatar.component';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.odx-gantt-chart {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
|
|
5
|
+
&__line {
|
|
6
|
+
height: calc(var(--odx-vertical-rythm-base-size) * 5.625);
|
|
7
|
+
position: relative;
|
|
8
|
+
|
|
9
|
+
canvas {
|
|
10
|
+
height: 100% !important;
|
|
11
|
+
width: 100% !important;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&__bar {
|
|
16
|
+
height: calc(var(--odx-vertical-rythm-base-size) * 14.0625);
|
|
17
|
+
position: relative;
|
|
18
|
+
|
|
19
|
+
canvas {
|
|
20
|
+
height: 100% !important;
|
|
21
|
+
width: 100% !important;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
.odx-line-timeframes-chart {
|
|
2
|
+
.odx-line-timeframes-chart__container {
|
|
3
|
+
display: flex;
|
|
4
|
+
gap: calc(var(--odx-vertical-rythm-base-size) * 1);
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&__chart {
|
|
9
|
+
flex: 1 0 80%;
|
|
10
|
+
height: auto;
|
|
11
|
+
max-width: 80%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&__timeframe {
|
|
15
|
+
min-width: calc(20% - var(--odx-vertical-rythm-base-size));
|
|
16
|
+
|
|
17
|
+
&-title {
|
|
18
|
+
font-weight: var(--odx-typography-font-weight-bold);
|
|
19
|
+
margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.5);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-items {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
gap: calc(var(--odx-vertical-rythm-base-size) * 0.5);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-item {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
gap: calc(var(--odx-vertical-rythm-base-size) * 0.125);
|
|
32
|
+
|
|
33
|
+
&-header {
|
|
34
|
+
align-items: center;
|
|
35
|
+
display: flex;
|
|
36
|
+
gap: calc(var(--odx-vertical-rythm-base-size) * 0.25);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&-dot {
|
|
40
|
+
border-radius: 50%;
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
height: calc(var(--odx-vertical-rythm-base-size) * 0.3125);
|
|
43
|
+
width: calc(var(--odx-vertical-rythm-base-size) * 0.3125);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&-label {
|
|
47
|
+
font-size: calc(var(--odx-typography-base-size) * 0.875);
|
|
48
|
+
line-height: 1.2;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&-value {
|
|
52
|
+
font-size: calc(var(--odx-typography-base-size) * 0.875);
|
|
53
|
+
font-weight: var(--odx-typography-font-weight-bold);
|
|
54
|
+
line-height: 1.2;
|
|
55
|
+
padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.5 + 8px);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.odx-mirror-bar-chart {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: calc(var(--odx-vertical-rythm-base-size) * 1);
|
|
5
|
+
width: 100%;
|
|
6
|
+
|
|
7
|
+
&__title {
|
|
8
|
+
color: var(--odx-c-text-primary);
|
|
9
|
+
font-size: var(--odx-typography-base-size);
|
|
10
|
+
font-weight: var(--odx-typography-font-weight-medium);
|
|
11
|
+
margin: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&__container {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__wrapper {
|
|
20
|
+
height: calc(var(--odx-vertical-rythm-base-size) * 9.375);
|
|
21
|
+
position: relative;
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__controls {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
gap: calc(var(--odx-vertical-rythm-base-size) * 0.5);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.odx-mirror-bar-chart__wrapper:nth-child(2) {
|
|
33
|
+
height: calc(var(--odx-vertical-rythm-base-size) * 9.375 - 40px);
|
|
34
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.odx-multi-axis-box-plot {
|
|
2
|
+
&__item {
|
|
3
|
+
margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 1);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
&__header {
|
|
7
|
+
margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.25);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&__title {
|
|
11
|
+
align-items: center;
|
|
12
|
+
display: flex;
|
|
13
|
+
gap: calc(var(--odx-vertical-rythm-base-size) * 0.25);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&__label {
|
|
17
|
+
font-weight: var(--odx-typography-font-weight-bold);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&__value {
|
|
21
|
+
font-weight: var(--odx-typography-font-weight-normal);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__chart-container {
|
|
25
|
+
height: calc(var(--odx-vertical-rythm-base-size) * 2.0312);
|
|
26
|
+
margin: calc(var(--odx-vertical-rythm-base-size) * 0.5) 0;
|
|
27
|
+
position: relative;
|
|
28
|
+
z-index: var(--odx-v-layer-1);
|
|
29
|
+
|
|
30
|
+
canvas {
|
|
31
|
+
height: 100% !important;
|
|
32
|
+
width: 100% !important;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__color-scale {
|
|
37
|
+
bottom: calc(var(--odx-vertical-rythm-base-size) * 0.625);
|
|
38
|
+
height: calc(var(--odx-vertical-rythm-base-size) * 0.125);
|
|
39
|
+
left: calc(var(--odx-vertical-rythm-base-size) * 0.25);
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
position: absolute;
|
|
42
|
+
width: calc(100% - var(--odx-vertical-rythm-base-size) * 0.3125);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&__color-range {
|
|
46
|
+
height: 100%;
|
|
47
|
+
position: absolute;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -8,13 +8,16 @@
|
|
|
8
8
|
--odx-c-warning: var(--yellow-50);
|
|
9
9
|
--odx-c-danger: var(--red-00);
|
|
10
10
|
--odx-c-success: var(--green-00);
|
|
11
|
+
--odx-c-warning-strong: var(--yellow-500);
|
|
12
|
+
--odx-c-danger-strong: var(--red-500);
|
|
11
13
|
|
|
12
14
|
$root: &;
|
|
13
|
-
$variants: default, warning, danger, success;
|
|
15
|
+
$variants: default, warning, danger, success, warning-strong, danger-strong;
|
|
14
16
|
$gap: dimensions.get-size(math.div(12, 24));
|
|
15
17
|
|
|
16
18
|
border-radius: var(--odx-toast-border-radius);
|
|
17
19
|
box-shadow: var(--odx-v-box-shadow-layer-1);
|
|
20
|
+
color: var(--odx-c-text);
|
|
18
21
|
display: block;
|
|
19
22
|
|
|
20
23
|
&__content {
|
|
@@ -43,6 +46,7 @@
|
|
|
43
46
|
@include utils.interactive(true);
|
|
44
47
|
|
|
45
48
|
background-color: transparent;
|
|
49
|
+
color: var(--odx-c-text);
|
|
46
50
|
margin: 0;
|
|
47
51
|
margin-right: calc(#{$gap} / -2);
|
|
48
52
|
margin-top: calc(#{$gap} / -2);
|
|
@@ -66,7 +70,7 @@
|
|
|
66
70
|
}
|
|
67
71
|
|
|
68
72
|
&--danger {
|
|
69
|
-
--odx-c-text: var(--
|
|
73
|
+
--odx-c-text: var(--odx-c-error-text);
|
|
70
74
|
--odx-v-scrollbar-thumb-color: var(--odx-c-text);
|
|
71
75
|
--odx-v-scrollbar-thumb-color-hover: var(--red-800);
|
|
72
76
|
|
|
@@ -76,4 +80,18 @@
|
|
|
76
80
|
color: inherit;
|
|
77
81
|
}
|
|
78
82
|
}
|
|
83
|
+
|
|
84
|
+
&--danger-strong {
|
|
85
|
+
--odx-c-text: var(--white);
|
|
86
|
+
|
|
87
|
+
:root:has([odxTheme='dark'], .odx-theme-dark) & {
|
|
88
|
+
--odx-c-text: var(--black);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&--warning-strong {
|
|
93
|
+
:root:has([odxTheme='dark'], .odx-theme-dark) & {
|
|
94
|
+
--odx-c-text: var(--white);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
79
97
|
}
|