@wlcm/angular 17.7.45 → 17.7.47

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": "@wlcm/angular",
3
- "version": "17.7.45",
3
+ "version": "17.7.47",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./index.mjs",
@@ -26,36 +26,100 @@
26
26
  padding: 0 16px;
27
27
  }
28
28
 
29
+ &--small {
30
+ height: 28px;
31
+ padding: 0 16px;
32
+ }
33
+
29
34
  &--small {
30
35
  height: 24px;
31
36
  padding: 0 16px;
32
37
  }
33
38
 
39
+ // ⚠️ Temporary fallback to avoid conflicts with the previous styling method.
40
+ // In future cleanup, remove legacy style variants (e.g., wlcm-button--primary, etc.)
41
+ // and fully rely on styleType + color combination.
42
+ &:not(
43
+ &.wlcm-button--primary,
44
+ &.wlcm-button--secondary,
45
+ &.wlcm-button--accent,
46
+ &.wlcm-button--borderless,
47
+ &.wlcm-button--paddingless
48
+ ) {
49
+ &.wlcm-button {
50
+ &--style-text {
51
+ &.wlcm-button {
52
+ background-color: transparent;
53
+
54
+ &--color-primary {
55
+ color: map-get($theme, primary-color);
56
+ }
57
+ }
58
+ }
59
+
60
+ &--style-filled {
61
+ &.wlcm-button {
62
+ &--color-primary {
63
+ color: #ffffff;
64
+ background-color: map-get($theme, primary-color);
65
+
66
+ &:hover {
67
+ background-color: lighten(map-get($theme, primary-color), 5%);
68
+ }
69
+ }
70
+ }
71
+ }
72
+
73
+ &--style-compact {
74
+ padding-left: 0;
75
+ padding-right: 0;
76
+ background-color: transparent;
77
+
78
+ &.wlcm-button--disabled {
79
+ pointer-events: none;
80
+ user-select: none;
81
+ opacity: 0.5;
82
+ }
83
+
84
+ &--color-primary {
85
+ color: map-get($theme, primary-color);
86
+ }
87
+ }
88
+ }
89
+ }
90
+
34
91
  &--primary {
35
- background-color: map-get($theme, primary-color);
36
92
  color: #ffffff;
93
+ background-color: map-get($theme, primary-color);
94
+
37
95
  &:hover {
38
96
  background-color: lighten(map-get($theme, primary-color), 5%);
39
97
  }
40
98
  }
99
+
41
100
  &--secondary {
42
101
  background-color: map-get($theme, accent-color);
43
102
  color: #5a5a5a;
103
+
44
104
  &:hover {
45
105
  background-color: lighten(map-get($theme, accent-color), 2.5%);
46
106
  }
47
107
  }
108
+
48
109
  &--accent {
49
110
  background-color: map-get($theme, warn-color);
50
111
  color: #ffffff;
112
+
51
113
  &:hover {
52
114
  background-color: lighten(map-get($theme, warn-color), 5%);
53
115
  }
54
116
  }
117
+
55
118
  &--borderless {
56
119
  background-color: transparent;
57
120
  color: map-get($theme, primary-color);
58
121
  }
122
+
59
123
  &--paddingless {
60
124
  padding-left: 0;
61
125
  padding-right: 0;
@@ -79,6 +143,7 @@
79
143
  }
80
144
 
81
145
  &--disabled {
146
+ &:not(.wlcm-button--style-compact),
82
147
  &:not(.wlcm-button--paddingless) {
83
148
  pointer-events: none;
84
149