@adyen/lume 1.9.5 → 1.10.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.
@@ -1,7 +1,7 @@
1
1
  @use 'variables' as *;
2
2
 
3
- $lume-chart-title-color: $lume-color-grey-100 !default;
4
- $lume-axis-title-color: $lume-color-grey-80 !default;
3
+ $lume-chart-title-color: $lume-color-neutral-100 !default;
4
+ $lume-axis-title-color: $lume-color-neutral-100 !default;
5
5
 
6
6
  .lume-chart-title {
7
7
  color: $lume-chart-title-color;
@@ -3,13 +3,13 @@
3
3
  .lume-typography--display {
4
4
  font-family: $lume-font-family;
5
5
  font-size: $lume-font-size-lg;
6
- font-weight: $lume-font-weight-medium;
6
+ font-weight: $lume-font-weight-semi-bold;
7
7
  line-height: $lume-line-height-lg;
8
8
  }
9
9
 
10
10
  .lume-typography--body {
11
11
  font-family: $lume-font-family;
12
- font-size: $lume-font-size-md;
12
+ font-size: $lume-font-size-sm;
13
13
  font-weight: $lume-font-weight-regular;
14
14
  line-height: $lume-line-height-md;
15
15
  }
@@ -77,7 +77,7 @@
77
77
  }
78
78
 
79
79
  &--negative {
80
- fill: $lume-color-grey-10;
80
+ fill: $lume-color-neutral-10;
81
81
  pointer-events: none;
82
82
  }
83
83
 
@@ -10,7 +10,7 @@
10
10
 
11
11
  $lume-border-width: 1px !default;
12
12
  $lume-border-style: solid !default;
13
- $lume-border-color: $lume-color-grey-20 !default;
13
+ $lume-border-color: $lume-color-neutral-40 !default;
14
14
  $lume-border-radius-4: 4px !default;
15
15
  $lume-border-radius-8: 8px !default;
16
16
  $lume-border: $lume-border-width $lume-border-style $lume-border-color !default;
@@ -1,6 +1,6 @@
1
1
  @use '../variables' as *;
2
2
 
3
- $lume-alluvial-text-color: $lume-color-grey-80;
3
+ $lume-alluvial-text-color: $lume-color-neutral-100;
4
4
 
5
5
  $lume-alluvial-node-opacity: 0.7 !default;
6
6
  $lume-alluvial-node-opacity-faded: 0.3 !default;
@@ -1,6 +1,6 @@
1
1
  @use '../variables' as *;
2
2
 
3
- $legend-symbol-size: $lume-spacing-10 !default;
3
+ $legend-symbol-size: $lume-spacing-8 !default;
4
4
 
5
5
  .lume-chart-legend {
6
6
  display: flex;
@@ -11,9 +11,9 @@ $legend-symbol-size: $lume-spacing-10 !default;
11
11
  align-items: center;
12
12
 
13
13
  padding: 0.25rem 0.5rem;
14
- gap: 0.25rem;
14
+ gap: 0.5rem;
15
15
 
16
- color: $lume-color-grey-80;
16
+ color: $lume-color-neutral-100;
17
17
 
18
18
  cursor: default;
19
19
  }
@@ -3,7 +3,7 @@
3
3
  .lume-chart {
4
4
  &__header {
5
5
  &-section {
6
- display: flex;
6
+ display: grid;
7
7
  align-items: center;
8
8
  grid-template-columns: auto auto;
9
9
  grid-template-areas: 'left right';
@@ -2,7 +2,7 @@
2
2
 
3
3
  .lume-line-group {
4
4
  &__overlay-line {
5
- stroke: $lume-color-grey-30;
5
+ stroke: $lume-color-neutral-60;
6
6
  stroke-width: 1px;
7
7
  stroke-dasharray: 2 2;
8
8
 
@@ -1,9 +1,9 @@
1
1
  @use '../variables' as *;
2
2
 
3
- $axis-label-color: $lume-color-grey-50;
4
- $axis-label-hover-color: $lume-color-grey-70;
3
+ $axis-label-color: $lume-color-neutral-80;
4
+ $axis-label-hover-color: $lume-color-neutral-100;
5
5
 
6
- $axis-line-color: $lume-color-grey-20;
6
+ $axis-line-color: $lume-color-neutral-20;
7
7
 
8
8
  .axis {
9
9
  &__grid-line {
@@ -8,17 +8,16 @@ $lume-tooltip-border-radius: $lume-border-radius-8 !default;
8
8
  $lume-tooltip-box-shadow: $lume-box-shadow !default;
9
9
  $lume-tooltip-max-width: 288px !default;
10
10
 
11
- $lume-tooltip-content-padding: $lume-spacing-10 !default;
11
+ $lume-tooltip-content-padding: $lume-spacing-8 $lume-spacing-12 !default;
12
12
  $lume-tooltip-z-index: 500 !default;
13
13
 
14
- $lume-tooltip-title-color: $lume-color-grey-100 !default;
14
+ $lume-tooltip-title-color: $lume-color-neutral-100 !default;
15
15
 
16
- $lume-tooltip-item-color: $lume-color-grey-90 !default;
17
- $lume-tooltip-value-color: $lume-color-grey-100 !default;
16
+ $lume-tooltip-item-color: $lume-color-neutral-100 !default;
17
+ $lume-tooltip-value-color: $lume-color-neutral-100 !default;
18
18
 
19
- $lume-tooltip-item-line-height: $lume-line-height-sm !default;
20
19
  $lume-tooltip-item-min-width: 112px !default;
21
- $lume-tooltip-symbol-size: $lume-spacing-10 !default;
20
+ $lume-tooltip-symbol-size: $lume-spacing-8 !default;
22
21
 
23
22
  .lume-tooltip {
24
23
  position: absolute;
@@ -45,13 +44,15 @@ $lume-tooltip-symbol-size: $lume-spacing-10 !default;
45
44
  margin-top: $lume-spacing-4;
46
45
  margin-bottom: $lume-spacing-4;
47
46
  border: 0;
48
- border-top: 1px solid $lume-color-grey-30;
47
+ border-top: 1px solid $lume-color-neutral-40;
49
48
  }
50
49
  }
51
50
 
52
51
  &__title {
53
- margin-bottom: $lume-spacing-4;
54
- font-weight: $lume-font-weight-medium;
52
+ margin-bottom: $lume-spacing-6;
53
+ font-size: $lume-font-size-sm;
54
+ line-height: $lume-line-height-sm;
55
+ font-weight: $lume-font-weight-semi-bold;
55
56
  color: $lume-tooltip-title-color;
56
57
  }
57
58
 
@@ -65,6 +66,8 @@ $lume-tooltip-symbol-size: $lume-spacing-10 !default;
65
66
  display: flex;
66
67
  min-width: $lume-tooltip-item-min-width;
67
68
  margin-bottom: $lume-spacing-4;
69
+ font-size: $lume-font-size-sm;
70
+ line-height: $lume-line-height-sm;
68
71
  color: $lume-tooltip-item-color;
69
72
 
70
73
  &:last-child {
@@ -74,7 +77,7 @@ $lume-tooltip-symbol-size: $lume-spacing-10 !default;
74
77
 
75
78
  &__symbol {
76
79
  margin-top: math.div(
77
- $lume-tooltip-item-line-height - $lume-tooltip-symbol-size,
80
+ $lume-line-height-sm - $lume-tooltip-symbol-size,
78
81
  2
79
82
  ); // default: 3px
80
83
  margin-right: $lume-spacing-8;
@@ -8,11 +8,11 @@
8
8
  @forward 'components/lume-sparkline-chart.scss';
9
9
  @forward 'components/lume-tick.scss';
10
10
  @forward 'components/lume-bar.scss';
11
+ @forward 'components/lume-chart-legend.scss';
11
12
  @forward 'components/lume-chart-container.scss';
12
13
  @forward 'components/lume-chart.scss';
13
- @forward 'components/lume-chart-legend.scss';
14
- @forward 'components/lume-point.scss';
15
14
  @forward 'components/lume-line.scss';
15
+ @forward 'components/lume-point.scss';
16
16
  @forward 'components/lume-tooltip.scss';
17
17
  @forward 'components/lume-alluvial-group.scss';
18
18
  @forward 'components/lume-line-group.scss';
@@ -152,6 +152,13 @@ $lume-color-gold-map: (
152
152
  $lume-color-white: #ffffff !default;
153
153
  $lume-color-black: #00112c !default;
154
154
 
155
+ $lume-color-neutral-10: #f7f7f8 !default;
156
+ $lume-color-neutral-20: #eeeff1 !default;
157
+ $lume-color-neutral-40: #dbdee2 !default;
158
+ $lume-color-neutral-60: #8d95a3 !default;
159
+ $lume-color-neutral-80: #5c687c !default;
160
+ $lume-color-neutral-100: #00112c !default;
161
+
155
162
  // Greys
156
163
 
157
164
  $lume-color-grey-10: #f7f8f9 !default;
@@ -187,6 +194,13 @@ $lume-other-colors: (
187
194
  'grey-100': $lume-color-grey-100,
188
195
  'grey': $lume-color-grey-50,
189
196
 
197
+ 'neutral-10': $lume-color-neutral-10,
198
+ 'neutral-20': $lume-color-neutral-20,
199
+ 'neutral-40': $lume-color-neutral-40,
200
+ 'neutral-60': $lume-color-neutral-60,
201
+ 'neutral-80': $lume-color-neutral-80,
202
+ 'neutral-100': $lume-color-neutral-100,
203
+
190
204
  'green': $lume-color-green,
191
205
  'orange': $lume-color-orange,
192
206
  'red': $lume-color-red,
@@ -1,4 +1,5 @@
1
1
  $lume-spacing-4: 4px !default;
2
+ $lume-spacing-6: 6px !default;
2
3
  $lume-spacing-8: 8px !default;
3
4
  $lume-spacing-10: 10px !default;
4
5
  $lume-spacing-12: 12px !default;
@@ -11,12 +11,13 @@ $lume-font-size-lg: 20px !default;
11
11
 
12
12
  // Line height
13
13
 
14
- $lume-line-height-xs: 14px !default;
15
- $lume-line-height-sm: 16px !default;
16
- $lume-line-height-md: 22px !default;
17
- $lume-line-height-lg: 28px !default;
14
+ $lume-line-height-xs: 16px !default;
15
+ $lume-line-height-sm: 18px !default;
16
+ $lume-line-height-md: 20px !default;
17
+ $lume-line-height-lg: 30px !default;
18
18
 
19
19
  // Weight
20
20
 
21
21
  $lume-font-weight-regular: 400 !default;
22
22
  $lume-font-weight-medium: 500 !default;
23
+ $lume-font-weight-semi-bold: 600 !default;