@lumx/core 2.1.0-alpha.1 → 2.1.0-alpha.7

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 CHANGED
@@ -42,7 +42,7 @@
42
42
  "prepublishOnly": "yarn build"
43
43
  },
44
44
  "sideEffects": false,
45
- "version": "2.1.0-alpha.1",
45
+ "version": "2.1.0-alpha.7",
46
46
  "devDependencies": {
47
47
  "@babel/core": "^7.8.3",
48
48
  "@babel/plugin-proposal-class-properties": "^7.8.3",
@@ -79,5 +79,5 @@
79
79
  "moment": "^2.24.0",
80
80
  "moment-range": "^4.0.2"
81
81
  },
82
- "gitHead": "e44606424dcd9699ff2b7a1748b763dc88a4e7d3"
82
+ "gitHead": "c3a3dd3eea55b2e507bb6ce679d0bf7845451ad8"
83
83
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 13 Sep 2021 07:20:36 GMT
3
+ * Generated on Tue, 14 Sep 2021 08:34:49 GMT
4
4
  */
5
5
 
6
6
  $lumx-button-height: 36px !default;
@@ -93,7 +93,7 @@ $lumx-button-emphasis-medium-state-active-theme-dark-background-color: rgba(
93
93
  ) !default; // Base light color with 60% opacity
94
94
  $lumx-button-emphasis-medium-state-active-theme-dark-color: #fff !default; // Neutral light color
95
95
  $lumx-button-emphasis-medium-state-active-theme-dark-border-color: transparent !default;
96
- $lumx-button-emphasis-low-state-default-padding-horizontal: 16px !default;
96
+ $lumx-button-emphasis-low-state-default-padding-horizontal: 8px !default;
97
97
  $lumx-button-emphasis-low-state-default-border-width: 0 !default;
98
98
  $lumx-button-emphasis-low-state-default-theme-light-background-color: transparent !default;
99
99
  $lumx-button-emphasis-low-state-default-theme-light-color: rgba(0, 0, 0, 0.87) !default; // Neutral dark color
@@ -101,7 +101,7 @@ $lumx-button-emphasis-low-state-default-theme-light-border-color: transparent !d
101
101
  $lumx-button-emphasis-low-state-default-theme-dark-background-color: transparent !default;
102
102
  $lumx-button-emphasis-low-state-default-theme-dark-color: #fff !default; // Neutral light color
103
103
  $lumx-button-emphasis-low-state-default-theme-dark-border-color: transparent !default;
104
- $lumx-button-emphasis-low-state-hover-padding-horizontal: 16px !default;
104
+ $lumx-button-emphasis-low-state-hover-padding-horizontal: 8px !default;
105
105
  $lumx-button-emphasis-low-state-hover-border-width: 0 !default;
106
106
  $lumx-button-emphasis-low-state-hover-theme-light-background-color: rgba(
107
107
  0,
@@ -119,7 +119,7 @@ $lumx-button-emphasis-low-state-hover-theme-dark-background-color: rgba(
119
119
  ) !default; // Base light color with 20% opacity
120
120
  $lumx-button-emphasis-low-state-hover-theme-dark-color: #fff !default; // Neutral light color
121
121
  $lumx-button-emphasis-low-state-hover-theme-dark-border-color: transparent !default;
122
- $lumx-button-emphasis-low-state-active-padding-horizontal: 16px !default;
122
+ $lumx-button-emphasis-low-state-active-padding-horizontal: 8px !default;
123
123
  $lumx-button-emphasis-low-state-active-border-width: 0 !default;
124
124
  $lumx-button-emphasis-low-state-active-theme-light-background-color: rgba(
125
125
  0,
@@ -177,6 +177,7 @@ $lumx-button-emphasis-selected-state-active-theme-dark-background-color: rgba(
177
177
  $lumx-button-emphasis-selected-state-active-theme-dark-color: #fff !default; // Neutral light color
178
178
  $lumx-button-emphasis-selected-state-active-theme-dark-border-color: transparent !default;
179
179
  $lumx-material-button-text-transform: none !default;
180
+ $lumx-material-button-variant-icon-border-radius: 50% !default;
180
181
  $lumx-material-checkbox-wrapper-size: 20px !default;
181
182
  $lumx-material-checkbox-control-size: 16px !default;
182
183
  $lumx-material-chip-size-m-height: 36px !default;
@@ -918,6 +919,10 @@ $lumx-typography-custom-quote-font-size: 16px !default;
918
919
  $lumx-typography-custom-quote-font-weight: 300 !default;
919
920
  $lumx-typography-custom-quote-font-style: italic !default;
920
921
  $lumx-typography-custom-quote-line-height: 24px !default;
922
+ $lumx-typography-custom-publish-info-font-family: var(--lumx-typography-font-family) !default;
923
+ $lumx-typography-custom-publish-info-font-size: 14px !default;
924
+ $lumx-typography-custom-publish-info-font-weight: 400 !default;
925
+ $lumx-typography-custom-publish-info-line-height: 20px !default;
921
926
  $lumx-typography-custom-button-size-m-font-family: var(--lumx-typography-font-family) !default;
922
927
  $lumx-typography-custom-button-size-m-font-size: 14px !default;
923
928
  $lumx-typography-custom-button-size-m-font-weight: 700 !default;
@@ -1133,7 +1138,7 @@ $lumx-design-tokens: (
1133
1138
  'material': (
1134
1139
  'button': (
1135
1140
  'text-transform': $lumx-material-button-text-transform,
1136
- 'variant-icon-border-radius': (),
1141
+ 'variant-icon-border-radius': $lumx-material-button-variant-icon-border-radius,
1137
1142
  ),
1138
1143
  'checkbox': (
1139
1144
  'wrapper-size': $lumx-material-checkbox-wrapper-size,
@@ -2018,6 +2023,12 @@ $lumx-design-tokens: (
2018
2023
  'font-style': $lumx-typography-custom-quote-font-style,
2019
2024
  'line-height': $lumx-typography-custom-quote-line-height,
2020
2025
  ),
2026
+ 'publish-info': (
2027
+ 'font-family': $lumx-typography-custom-publish-info-font-family,
2028
+ 'font-size': $lumx-typography-custom-publish-info-font-size,
2029
+ 'font-weight': $lumx-typography-custom-publish-info-font-weight,
2030
+ 'line-height': $lumx-typography-custom-publish-info-line-height,
2031
+ ),
2021
2032
  'button': (
2022
2033
  'size-m': (
2023
2034
  'font-family': $lumx-typography-custom-button-size-m-font-family,
@@ -61,17 +61,21 @@
61
61
  }
62
62
  }
63
63
 
64
- @if $size == lumx-base-const('size', 'M') {
65
- padding: 0 var(--lumx-button-#{$emphasis}-state-default-padding-horizontal);
66
- } @else if $size == lumx-base-const('size', 'S') {
67
- padding: 0 calc(var(--lumx-button-#{$emphasis}-state-default-padding-horizontal) / 1.5);
64
+ @if $variant == 'button' {
65
+ @if $size == lumx-base-const('size', 'M') {
66
+ padding: 0 var(--lumx-button-#{$emphasis}-state-default-padding-horizontal);
67
+ } @else if $size == lumx-base-const('size', 'S') {
68
+ padding: 0 calc(var(--lumx-button-#{$emphasis}-state-default-padding-horizontal) / 1.5);
69
+ }
68
70
  }
69
71
 
70
72
  &:hover {
71
- @if $size == lumx-base-const('size', 'M') {
72
- padding: 0 var(--lumx-button-#{$emphasis}-state-hover-padding-horizontal);
73
- } @else if $size == lumx-base-const('size', 'S') {
74
- padding: 0 calc(var(--lumx-button-#{$emphasis}-state-hover-padding-horizontal) / 1.5);
73
+ @if $variant == 'button' {
74
+ @if $size == lumx-base-const('size', 'M') {
75
+ padding: 0 var(--lumx-button-#{$emphasis}-state-hover-padding-horizontal);
76
+ } @else if $size == lumx-base-const('size', 'S') {
77
+ padding: 0 calc(var(--lumx-button-#{$emphasis}-state-hover-padding-horizontal) / 1.5);
78
+ }
75
79
  }
76
80
 
77
81
  &::before {
@@ -80,10 +84,12 @@
80
84
  }
81
85
 
82
86
  &:active {
83
- @if $size == lumx-base-const('size', 'M') {
84
- padding: 0 var(--lumx-button-#{$emphasis}-state-active-padding-horizontal);
85
- } @else if $size == lumx-base-const('size', 'S') {
86
- padding: 0 calc(var(--lumx-button-#{$emphasis}-state-active-padding-horizontal) / 1.5);
87
+ @if $variant == 'button' {
88
+ @if $size == lumx-base-const('size', 'M') {
89
+ padding: 0 var(--lumx-button-#{$emphasis}-state-active-padding-horizontal);
90
+ } @else if $size == lumx-base-const('size', 'S') {
91
+ padding: 0 calc(var(--lumx-button-#{$emphasis}-state-active-padding-horizontal) / 1.5);
92
+ }
87
93
  }
88
94
 
89
95
  &::before {
@@ -7,11 +7,11 @@
7
7
 
8
8
  &__links {
9
9
  #{$self}--theme-light & {
10
- @include lumx-tabs-links(lumx-base-const('theme', 'LIGHT'));
10
+ @include lumx-tabs-links;
11
11
  }
12
12
 
13
13
  #{$self}--theme-dark & {
14
- @include lumx-tabs-links(lumx-base-const('theme', 'DARK'));
14
+ @include lumx-tabs-links;
15
15
  }
16
16
  }
17
17
 
@@ -1,4 +1,4 @@
1
- @mixin lumx-tabs-links($theme) {
1
+ @mixin lumx-tabs-links() {
2
2
  position: relative;
3
3
  display: flex;
4
4
  }
@@ -6,11 +6,11 @@
6
6
 
7
7
  @mixin lumx-typography($key, $type: 'interface') {
8
8
  @if $type == 'custom' {
9
- font-family: var(--lumx-typography-style-custom-font-family);
10
- font-size: var(--lumx-typography-style-custom-font-size);
11
- font-style: var(--lumx-typography-style-custom-font-style);
12
- font-weight: var(--lumx-typography-style-custom-font-weight);
13
- line-height: var(--lumx-typography-style-custom-line-height);
9
+ font-family: var(--lumx-typography-custom-#{$key}-font-family, var(--lumx-typography-font-family));
10
+ font-size: var(--lumx-typography-custom-#{$key}-font-size);
11
+ font-style: var(--lumx-typography-custom-#{$key}-font-style);
12
+ font-weight: var(--lumx-typography-custom-#{$key}-font-weight);
13
+ line-height: var(--lumx-typography-custom-#{$key}-line-height);
14
14
  } @else if $type == 'interface' {
15
15
  font-size: map-get(map-get($lumx-typography-interface, $key), 'font-size');
16
16
  font-weight: map-get(map-get($lumx-typography-interface, $key), 'font-weight');