minolith 1.1.2 → 1.1.3

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minolith",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "design system by minominolyly",
5
5
  "main": "src/minolith.scss",
6
6
  "scripts": {
@@ -3,27 +3,29 @@
3
3
  @use "../mixins/index.scss" as mixins;
4
4
 
5
5
  :where(.progress) {
6
- --#{variables.$prefix}color-progress-fore: var(
6
+ --#{variables.$prefix}progress-color-fore: var(
7
7
  --#{variables.$prefix}color-default-progress-fore,
8
8
  --#{variables.$prefix}color-default-fore
9
9
  );
10
- --#{variables.$prefix}color-progress-back: var(
10
+ --#{variables.$prefix}progress-color-back: var(
11
11
  --#{variables.$prefix}color-default-progress-back,
12
12
  --#{variables.$prefix}color-default-back
13
13
  );
14
- --#{variables.$prefix}color-progress-border: var(
14
+ --#{variables.$prefix}progress-color-border: var(
15
15
  --#{variables.$prefix}color-default-progress-border,
16
16
  --#{variables.$prefix}color-default-border
17
17
  );
18
- --#{variables.$prefix}progress-percent: 0;
18
+ --#{variables.$prefix}progress-border-width: var(--#{variables.$prefix}border-width-thick);
19
+ --#{variables.$prefix}progress-border-radius: var(--#{variables.$prefix}border-radius-pill);
20
+ --#{variables.$prefix}progress-percentage: 0;
19
21
 
20
22
  @include mixins.element();
21
23
  @include mixins.animation() {
22
- border-radius: var(--#{variables.$prefix}border-radius-pill);
24
+ border-radius: var(--#{variables.$prefix}progress-border-radius);
23
25
  border-style: solid;
24
- border-width: var(--#{variables.$prefix}border-width-thick);
25
- background-color: var(--#{variables.$prefix}color-progress-back);
26
- color: var(--#{variables.$prefix}color-progress-fore);
26
+ border-width: var(--#{variables.$prefix}progress-border-width);
27
+ background-color: var(--#{variables.$prefix}progress-color-back);
28
+ color: var(--#{variables.$prefix}progress-color-fore);
27
29
  height: 1rem;
28
30
  position: relative;
29
31
  &::before {
@@ -33,29 +35,29 @@
33
35
  inset: 0 100% 0 0;
34
36
  border-radius: inherit;
35
37
  background: currentColor;
36
- inset: 0 calc((100 - var(--#{variables.$prefix}progress-percent)) * 1%) 0
37
- 0;
38
+ inset: 0 calc((100 - var(--#{variables.$prefix}progress-percentage)) * 1%)
39
+ 0 0;
38
40
  }
39
41
 
40
- @for $p from 0 through 100 {
41
- &.is-#{$p}percent {
42
- --#{variables.$prefix}progress-percent: #{$p};
42
+ @if (not variables.$is-skelton) {
43
+ @for $p from 0 through 100 {
44
+ &.is-#{$p}percent {
45
+ --#{variables.$prefix}progress-percentage: #{$p};
46
+ }
43
47
  }
44
- }
45
48
 
46
- @if (not variables.$is-skelton) {
47
49
  @each $color in variables.$colors {
48
50
  $colorName: map.get($color, "name");
49
51
  &.is-#{$colorName} {
50
- --#{variables.$prefix}color-progress-fore: var(
52
+ --#{variables.$prefix}progress-color-fore: var(
51
53
  --#{variables.$prefix}color-#{$colorName}-progress-fore,
52
54
  --#{variables.$prefix}color-#{$colorName}-fore
53
55
  );
54
- --#{variables.$prefix}color-progress-back: var(
56
+ --#{variables.$prefix}progress-color-back: var(
55
57
  --#{variables.$prefix}color-#{$colorName}-progress-back,
56
58
  --#{variables.$prefix}color-#{$colorName}-back
57
59
  );
58
- --#{variables.$prefix}color-progress-border: var(
60
+ --#{variables.$prefix}progress-color-border: var(
59
61
  --#{variables.$prefix}color-#{$colorName}-progress-border,
60
62
  --#{variables.$prefix}color-#{$colorName}-border
61
63
  );