@gooddata/sdk-ui-vis-commons 10.2.0-alpha.5 → 10.2.0-alpha.6
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/package.json +8 -8
- package/styles/scss/legend.scss +21 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-vis-commons",
|
|
3
|
-
"version": "10.2.0-alpha.
|
|
3
|
+
"version": "10.2.0-alpha.6",
|
|
4
4
|
"description": "GoodData.UI SDK - common functionality for different types of visualizations",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"react-intl": "^6.4.1",
|
|
33
33
|
"react-measure": "^2.5.2",
|
|
34
34
|
"tslib": "^2.5.0",
|
|
35
|
-
"@gooddata/sdk-backend-spi": "10.2.0-alpha.
|
|
36
|
-
"@gooddata/sdk-
|
|
37
|
-
"@gooddata/sdk-ui
|
|
38
|
-
"@gooddata/sdk-
|
|
39
|
-
"@gooddata/sdk-ui-theme-provider": "10.2.0-alpha.
|
|
35
|
+
"@gooddata/sdk-backend-spi": "10.2.0-alpha.6",
|
|
36
|
+
"@gooddata/sdk-model": "10.2.0-alpha.6",
|
|
37
|
+
"@gooddata/sdk-ui": "10.2.0-alpha.6",
|
|
38
|
+
"@gooddata/sdk-ui-kit": "10.2.0-alpha.6",
|
|
39
|
+
"@gooddata/sdk-ui-theme-provider": "10.2.0-alpha.6"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": "^16.10.0 || ^17.0.0 || ^18.0.0",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"typescript": "5.3.3",
|
|
82
82
|
"vitest": "1.0.4",
|
|
83
83
|
"vitest-dom": "0.1.1",
|
|
84
|
-
"@gooddata/reference-workspace": "10.2.0-alpha.
|
|
85
|
-
"@gooddata/sdk-backend-mockingbird": "10.2.0-alpha.
|
|
84
|
+
"@gooddata/reference-workspace": "10.2.0-alpha.6",
|
|
85
|
+
"@gooddata/sdk-backend-mockingbird": "10.2.0-alpha.6"
|
|
86
86
|
},
|
|
87
87
|
"scripts": {
|
|
88
88
|
"clean": "rm -rf ci dist esm coverage styles/css *.log tsconfig.tsbuildinfo",
|
package/styles/scss/legend.scss
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
// (C) 2007-
|
|
1
|
+
// (C) 2007-2024 GoodData Corporation
|
|
2
2
|
@use "sass:color";
|
|
3
3
|
@use "@gooddata/sdk-ui-kit/styles/scss/Button/_variables" as button-variables;
|
|
4
4
|
@use "@gooddata/sdk-ui-kit/styles/scss/Bubble/_variables" as bubble-variables;
|
|
5
5
|
@use "@gooddata/sdk-ui-kit/styles/scss/variables" as kit-variables;
|
|
6
6
|
@use "@gooddata/sdk-ui-kit/styles/scss/mixins";
|
|
7
7
|
|
|
8
|
-
$legend-paging-background: #eee;
|
|
9
8
|
$legend-right-width: 190px;
|
|
10
9
|
$paging-button-small-size: 22px;
|
|
11
10
|
$responsive-legend: "only screen and (max-width: 767px)";
|
|
@@ -103,7 +102,7 @@ $legend-content-background: var(--gd-chart-backgroundColor, var(--gd-palette-com
|
|
|
103
102
|
|
|
104
103
|
@include mixins.active-states-and-self {
|
|
105
104
|
text-decoration: none;
|
|
106
|
-
background-color: var(--gd-palette-complementary-2, $
|
|
105
|
+
background-color: var(--gd-palette-complementary-2, $dialog-background);
|
|
107
106
|
|
|
108
107
|
// refactor?
|
|
109
108
|
// stylelint-disable-next-line max-nesting-depth
|
|
@@ -126,7 +125,7 @@ $legend-content-background: var(--gd-chart-backgroundColor, var(--gd-palette-com
|
|
|
126
125
|
@include mixins.active-states-and-self {
|
|
127
126
|
background-color: var(
|
|
128
127
|
--gd-palette-complementary-1,
|
|
129
|
-
color.adjust(
|
|
128
|
+
color.adjust(kit-variables.$default-is-focused-background, $alpha: -0.5)
|
|
130
129
|
);
|
|
131
130
|
|
|
132
131
|
// refactor?
|
|
@@ -453,10 +452,9 @@ $legend-content-background: var(--gd-chart-backgroundColor, var(--gd-palette-com
|
|
|
453
452
|
|
|
454
453
|
&:hover,
|
|
455
454
|
&.legend-popup-icon-active {
|
|
456
|
-
background-color: kit-variables.$gd-color-
|
|
455
|
+
background-color: kit-variables.$gd-color-disabled;
|
|
457
456
|
|
|
458
|
-
|
|
459
|
-
#LegendIcoContent {
|
|
457
|
+
.LegendMenuContent {
|
|
460
458
|
fill: kit-variables.$gd-color-white;
|
|
461
459
|
}
|
|
462
460
|
}
|
|
@@ -517,16 +515,29 @@ $legend-content-background: var(--gd-chart-backgroundColor, var(--gd-palette-com
|
|
|
517
515
|
flex-direction: column;
|
|
518
516
|
|
|
519
517
|
.legend-header {
|
|
520
|
-
|
|
518
|
+
height: 40px;
|
|
519
|
+
display: flex;
|
|
520
|
+
justify-content: space-between;
|
|
521
|
+
align-items: center;
|
|
521
522
|
margin: 0 15px;
|
|
523
|
+
|
|
522
524
|
.legend-header-title {
|
|
523
525
|
font-family: kit-variables.$gd-font-primary;
|
|
524
|
-
height: 100%;
|
|
525
|
-
line-height: 40px;
|
|
526
526
|
color: kit-variables.$gd-color-label;
|
|
527
527
|
font-size: 12px;
|
|
528
528
|
}
|
|
529
|
+
|
|
530
|
+
.legend-close.gd-icon-cross.gd-button-link.gd-button-icon-only {
|
|
531
|
+
right: 0;
|
|
532
|
+
width: 12px;
|
|
533
|
+
position: relative;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.legend-close.gd-icon-cross.gd-button-link.gd-button-icon-only::before {
|
|
537
|
+
font-size: 12px;
|
|
538
|
+
}
|
|
529
539
|
}
|
|
540
|
+
|
|
530
541
|
.legend-content {
|
|
531
542
|
flex: 1 1 auto;
|
|
532
543
|
background-color: $legend-content-background;
|