@lumx/core 3.0.7 → 3.0.8

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
@@ -26,8 +26,7 @@
26
26
  "license": "MIT",
27
27
  "name": "@lumx/core",
28
28
  "publishConfig": {
29
- "directory": "dist",
30
- "prepublishOnly": "yarn build"
29
+ "directory": "dist"
31
30
  },
32
31
  "repository": {
33
32
  "type": "git",
@@ -38,11 +37,10 @@
38
37
  "build": "webpack && yarn clean:unwanted-dist",
39
38
  "clean:unwanted-dist": "rm -rf ./dist/*.js ./dist/*.js.map",
40
39
  "prepare": "install-peers || exit 0",
41
- "prepublishOnly": "yarn build",
42
- "version": "yarn version-changelog ../../CHANGELOG.md && yarn changelog-verify ../../CHANGELOG.md && git add ../../CHANGELOG.md"
40
+ "update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
43
41
  },
44
42
  "sideEffects": false,
45
- "version": "3.0.7",
43
+ "version": "3.0.8",
46
44
  "devDependencies": {
47
45
  "@babel/core": "^7.20.2",
48
46
  "@babel/plugin-proposal-class-properties": "^7.18.6",
@@ -54,7 +52,6 @@
54
52
  "@babel/preset-env": "^7.20.2",
55
53
  "@babel/preset-typescript": "^7.18.6",
56
54
  "autoprefixer": "^9.7.4",
57
- "changelog-verify": "^1.1.2",
58
55
  "clean-webpack-plugin": "^3.0.0",
59
56
  "copy-webpack-plugin": "^5.1.1",
60
57
  "core-js": "^3.6.4",
@@ -80,6 +77,5 @@
80
77
  "peerDependencies": {
81
78
  "moment": "^2.24.0",
82
79
  "moment-range": "^4.0.2"
83
- },
84
- "gitHead": "4fec43ef3290a9f250767d3bdecf60cfcf02ee75"
80
+ }
85
81
  }
@@ -0,0 +1,18 @@
1
+ /* ==========================================================================
2
+ Grid Column
3
+ ========================================================================== */
4
+
5
+ .#{$lumx-base-prefix}-grid-column {
6
+ --lumx-grid-column-gap: var(--lumx-spacing-unit-regular);
7
+ --lumx-grid-column-columns: 1;
8
+ --lumx-grid-column-item-min-width: 100%;
9
+
10
+ $min-width: var(--lumx-grid-column-item-min-width);
11
+ $gap: var(--lumx-grid-column-gap);
12
+ $columns: var(--lumx-grid-column-columns);
13
+ $column-max-width: max(min(#{$min-width}, 100%), calc((100% - (#{$columns} - 1) * #{$gap}) / #{$columns}));
14
+
15
+ display: grid;
16
+ grid-template-columns: repeat(auto-fill, minmax(#{$column-max-width}, 1fr));
17
+ gap: var(--lumx-grid-column-gap);
18
+ }
@@ -1,3 +1,5 @@
1
+ @use "sass:map";
2
+
1
3
  /* ==========================================================================
2
4
  Progress
3
5
  ========================================================================== */
@@ -29,11 +31,15 @@
29
31
  animation: lumx-progress-bounce 2s infinite ease-in-out;
30
32
  }
31
33
 
34
+ &--theme-light &__double-bounce1,
35
+ &--theme-light &__double-bounce2,
32
36
  .#{$lumx-base-prefix}-progress--theme-light &__double-bounce1,
33
37
  .#{$lumx-base-prefix}-progress--theme-light &__double-bounce2 {
34
38
  background-color: lumx-color-variant("primary", "L3");
35
39
  }
36
40
 
41
+ &--theme-dark &__double-bounce1,
42
+ &--theme-dark &__double-bounce2,
37
43
  .#{$lumx-base-prefix}-progress--theme-dark &__double-bounce1,
38
44
  .#{$lumx-base-prefix}-progress--theme-dark &__double-bounce2 {
39
45
  background-color: lumx-color-variant("light", "L3");
@@ -64,13 +70,23 @@
64
70
  animation: lumx-progress-dash 1.5s ease-in-out infinite;
65
71
  }
66
72
 
73
+ &--theme-light &__path,
67
74
  .#{$lumx-base-prefix}-progress--theme-light &__path {
68
75
  stroke: lumx-color-variant("primary", "N");
69
76
  }
70
77
 
78
+ &--theme-dark &__path,
71
79
  .#{$lumx-base-prefix}-progress--theme-dark &__path {
72
80
  stroke: lumx-color-variant("light", "N");
73
81
  }
82
+
83
+ /* Circular sizes */
84
+ @each $key, $size in $lumx-progress-circular-size-map {
85
+ &--size-#{$key}, &--size-#{$key} .#{$lumx-base-prefix}-progress-circular__svg {
86
+ width: $size;
87
+ height: $size;
88
+ }
89
+ }
74
90
  }
75
91
 
76
92
  @keyframes lumx-progress-bounce {
@@ -125,11 +141,15 @@
125
141
  left: 0;
126
142
  }
127
143
 
144
+ &--theme-light &__line1,
145
+ &--theme-light &__line2,
128
146
  .#{$lumx-base-prefix}-progress--theme-light &__line1,
129
147
  .#{$lumx-base-prefix}-progress--theme-light &__line2 {
130
148
  background-color: lumx-color-variant("primary", "L3");
131
149
  }
132
150
 
151
+ &--theme-dark &__line1,
152
+ &--theme-dark &__line2,
133
153
  .#{$lumx-base-prefix}-progress--theme-dark &__line1,
134
154
  .#{$lumx-base-prefix}-progress--theme-dark &__line2 {
135
155
  background-color: lumx-color-variant("light", "L3");
@@ -1,2 +1,12 @@
1
- $lumx-progress-circular-size: 40px;
1
+ @use "sass:map";
2
+
3
+ /** @deprecated: replaced with $lumx-progress-circular-size-map */
4
+ $lumx-progress-circular-size: map.get($lumx-sizes, "m");
5
+ $lumx-progress-circular-size-map: (
6
+ "xxs": map.get($lumx-sizes, "xxs"),
7
+ "xs": map.get($lumx-sizes, "xs"),
8
+ "s": map.get($lumx-sizes, "s"),
9
+ "m": map.get($lumx-sizes, "m"),
10
+ );
11
+
2
12
  $lumx-progress-linear-size: 4px;
@@ -16,7 +16,7 @@
16
16
  }
17
17
 
18
18
  &__link {
19
- &:not(&--is-active) {
19
+ &:not(&--is-active):not(&--is-disabled) {
20
20
  @include lumx-tabs-link(lumx-base-const("emphasis", "LOW"));
21
21
 
22
22
  #{$self}--theme-light & {
@@ -83,11 +83,15 @@
83
83
 
84
84
  // Disabled state
85
85
  .#{$lumx-base-prefix}-tabs__link--is-disabled {
86
+ @include lumx-tabs-link(lumx-base-const("emphasis", "LOW"));
87
+
86
88
  .#{$lumx-base-prefix}-tabs--theme-light & {
89
+ @include lumx-tabs-link-color(lumx-base-const("emphasis", "LOW"), lumx-base-const("theme", "LIGHT"));
87
90
  @include lumx-state-disabled-text(lumx-base-const("theme", "LIGHT"));
88
91
  }
89
92
 
90
93
  .#{$lumx-base-prefix}-tabs--theme-dark & {
94
+ @include lumx-tabs-link-color(lumx-base-const("emphasis", "LOW"), lumx-base-const("theme", "DARK"));
91
95
  @include lumx-state-disabled-text(lumx-base-const("theme", "DARK"));
92
96
  }
93
97
  }
package/scss/lumx.scss CHANGED
@@ -33,6 +33,7 @@
33
33
  @import "./components/flex-box/index";
34
34
  @import "./components/generic-block/index";
35
35
  @import "./components/grid/index";
36
+ @import "./components/grid-column/index";
36
37
  @import "./components/icon/index";
37
38
  @import "./components/image-block/index";
38
39
  @import "./components/inline-list/index";