@castlabs/ui 7.5.1 → 7.5.2

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": "@castlabs/ui",
3
- "version": "7.5.1",
3
+ "version": "7.5.2",
4
4
  "repository": "https://github.com/castlabs/ui-styleguide",
5
5
  "private": false,
6
6
  "description": "A vanilla HTML/CS/JS & Vue.js component library for Castlabs.",
@@ -67,15 +67,15 @@
67
67
  "gulp": "5.0.1",
68
68
  "jsdom": "27.2.0",
69
69
  "npm-run-all": "4.1.5",
70
- "sass": "1.94.1",
70
+ "sass": "1.94.2",
71
71
  "stylelint-config-sass-guidelines": "12.1.0",
72
72
  "stylelint-config-standard-vue": "1.0.0",
73
73
  "stylelint-config-standard": "39.0.1",
74
74
  "stylelint-order": "7.0.0",
75
75
  "stylelint-scss": "6.12.1",
76
76
  "typescript": "5.9.3",
77
- "vite": "7.2.2",
78
- "vitest": "4.0.10",
77
+ "vite": "7.2.4",
78
+ "vitest": "4.0.12",
79
79
  "vue-tsc": "3.1.4",
80
80
  "vue": "3.5.24"
81
81
  }
@@ -46,12 +46,4 @@
46
46
  }
47
47
  }
48
48
  }
49
-
50
- // tr:nth-child(even) .cl-td-links {
51
- // background-color: transparent;
52
- // }
53
- //
54
- // tr:nth-child(odd) .cl-td-links {
55
- // background-color: var(--cl-color-highlight);
56
- // }
57
49
  }
@@ -71,7 +71,7 @@
71
71
  background-color: var(--cl-color-background) !important;
72
72
  border-color: var(--cl-color-border) !important;
73
73
  color: var(--cl-color-text) !important;
74
- opacity: var(--cl-opacity-active);
74
+ outline: 0 !important;
75
75
 
76
76
  &.cl-color-transparent {
77
77
  background-color: $color-ci-eggshell;
@@ -80,7 +80,7 @@
80
80
  }
81
81
  }
82
82
 
83
- &:active {
84
- outline: 0 !important;
83
+ &:hover:active {
84
+ opacity: var(--cl-opacity-active) !important;
85
85
  }
86
86
  }
@@ -174,7 +174,6 @@ $color-opacity-active: 0.8;
174
174
  #{'--cl-color-text'}: $color-ci-night;
175
175
  #{'--cl-color-line'}: $color-line;
176
176
  #{'--cl-color-accent'}: $color-accent;
177
- #{'--cl-color-highlight'}: rgba(#fff, 0.85);
178
177
  #{'--cl-color-link'}: $color-link;
179
178
  #{'--cl-color-active'}: $color-ci-berry;
180
179
  #{'--cl-color-hover'}: $color-hover;
@@ -192,7 +191,6 @@ $color-opacity-active: 0.8;
192
191
  #{'--cl-color-text'}: $color-ci-night;
193
192
  #{'--cl-color-line'}: $color-line;
194
193
  #{'--cl-color-accent'}: $color-accent;
195
- #{'--cl-color-highlight'}: rgba(#fff, 0.85);
196
194
  #{'--cl-color-link'}: inherit;
197
195
  #{'--cl-color-focus'}: $color-ci-night;
198
196
  #{'--cl-color-disabled-background'}: transparent;
@@ -206,7 +204,6 @@ $color-opacity-active: 0.8;
206
204
  #{'--cl-color-text'}: $color-ci-eggshell;
207
205
  #{'--cl-color-line'}: $color-ci-eggshell;
208
206
  #{'--cl-color-accent'}: $color-ci-eggshell;
209
- #{'--cl-color-highlight'}: rgba(#fff, 0.1);
210
207
  #{'--cl-color-link'}: $color-ci-eggshell;
211
208
  #{'--cl-color-focus'}: $color-ci-eggshell;
212
209
  }
@@ -216,7 +213,6 @@ $color-opacity-active: 0.8;
216
213
  #{'--cl-color-text'}: $color-ci-night;
217
214
  #{'--cl-color-line'}: $color-ci-night;
218
215
  #{'--cl-color-accent'}: $color-ci-night;
219
- #{'--cl-color-highlight'}: rgba(#fff, 0.1);
220
216
  #{'--cl-color-link'}: $color-ci-night;
221
217
  #{'--cl-color-focus'}: $color-ci-night;
222
218
  }
@@ -234,7 +230,6 @@ $color-opacity-active: 0.8;
234
230
  #{'--cl-color-text'}: $color-ci-red;
235
231
  #{'--cl-color-line'}: $color-line;
236
232
  #{'--cl-color-accent'}: $color-ci-red;
237
- #{'--cl-color-highlight'}: rgba(#fff, 0.85);
238
233
  #{'--cl-color-link'}: inherit;
239
234
  #{'--cl-color-focus'}: $color-ci-red;
240
235
  #{'--cl-color-disabled-background'}: transparent;
@@ -262,7 +257,6 @@ $color-opacity-active: 0.8;
262
257
  #{'--cl-color-text'}: $color-ci-night;
263
258
  #{'--cl-color-line'}: $color-line;
264
259
  #{'--cl-color-accent'}: $color-accent;
265
- #{'--cl-color-highlight'}: rgba(#fff, 0.1);
266
260
  #{'--cl-color-link'}: inherit;
267
261
  #{'--cl-color-focus'}: $color-ci-night;
268
262
  }
@@ -344,14 +338,16 @@ $color-opacity-active: 0.8;
344
338
  }
345
339
 
346
340
  %cl-color-transparent {
347
- @extend %cl-color-text-light;
348
-
349
341
  #{'--cl-color-background'}: transparent;
350
- #{'--cl-color-border'}: $color-ci-eggshell;
342
+ #{'--cl-color-border'}: var(--cl-color-text);
351
343
  #{'--cl-color-disabled-background'}: transparent;
352
344
  #{'--cl-color-disabled-border'}: $color-disabled;
353
345
  #{'--cl-color-disabled-text'}: $color-disabled;
354
346
  #{'--cl-opacity-active'}: $color-opacity-active * 0.9;
347
+ #{'--cl-color-line'}: var(--cl-color-text);
348
+ #{'--cl-color-accent'}: var(--cl-color-text);
349
+ #{'--cl-color-link'}: var(--cl-color-text);
350
+ #{'--cl-color-focus'}: var(--cl-color-text);
355
351
  }
356
352
 
357
353
  %cl-color-disabled {
@@ -360,7 +356,6 @@ $color-opacity-active: 0.8;
360
356
  #{'--cl-color-text'}: $color-disabled;
361
357
  #{'--cl-color-line'}: $color-disabled;
362
358
  #{'--cl-color-accent'}: $color-disabled;
363
- #{'--cl-color-highlight'}: rgba(#fff, 0.1);
364
359
  #{'--cl-color-link'}: inherit;
365
360
  #{'--cl-color-focus'}: $color-ci-eggshell;
366
361
  }
@@ -371,7 +366,6 @@ $color-opacity-active: 0.8;
371
366
  #{'--cl-color-text'}: $color-ci-ash;
372
367
  #{'--cl-color-line'}: $color-line;
373
368
  #{'--cl-color-accent'}: $color-ci-ash;
374
- #{'--cl-color-highlight'}: rgba(#fff, 0.1);
375
369
  #{'--cl-color-link'}: inherit;
376
370
  #{'--cl-color-focus'}: $color-ci-ash;
377
371
  }
@@ -379,7 +373,6 @@ $color-opacity-active: 0.8;
379
373
  %cl-color-none {
380
374
  #{'--cl-color-background'}: transparent;
381
375
  #{'--cl-color-border'}: transparent;
382
- #{'--cl-color-highlight'}: rgba(#fff, 0.1);
383
376
  #{'--cl-color-link'}: $color-ci-eggshell;
384
377
  #{'--cl-color-focus'}: $color-ci-eggshell;
385
378
  #{'--cl-color-disabled-background'}: transparent;
@@ -14,7 +14,6 @@
14
14
  @extend %cl-color-root;
15
15
  }
16
16
 
17
- .cl-color-tertiary
18
17
  .cl-color-outline-text, // legacy name
19
18
  .cl-color-night-outline {
20
19
  @extend %cl-color-night-outline;
@@ -32,11 +31,6 @@
32
31
  @extend %cl-color-sky;
33
32
  }
34
33
 
35
- .cl-color-primary {
36
- @extend %cl-color-sea;
37
- }
38
-
39
- .cl-color-secondary,
40
34
  .cl-color-black,
41
35
  .cl-color-text, // legacy name
42
36
  .cl-color-dark, // legacy name
@@ -86,6 +80,24 @@
86
80
  @extend %cl-color-none;
87
81
  }
88
82
 
83
+ // -----------------------------------------------------------------------------
84
+
85
+ // primary/secondary/tertiary button colors
86
+
87
+ .btn {
88
+ &.cl-color-primary {
89
+ @extend %cl-color-sea;
90
+ }
91
+
92
+ &.cl-color-secondary {
93
+ @extend %cl-color-night;
94
+ }
95
+
96
+ &.cl-color-tertiary {
97
+ @extend %cl-color-transparent;
98
+ }
99
+ }
100
+
89
101
  .cl-color-red,
90
102
  .cl-color-sky,
91
103
  .cl-color-ash,
@@ -96,17 +108,17 @@
96
108
  .cl-color-dark,
97
109
  .cl-color-night {
98
110
  // on dark backgrounds secondary buttons need to be light
99
- .cl-color-secondary {
111
+ .btn.cl-color-secondary {
100
112
  @extend %cl-color-eggshell;
101
113
  }
102
114
 
103
115
  // on dark backgrounds secondary buttons need to be outlined
104
- .cl-color-tertiary {
116
+ .btn.cl-color-tertiary {
105
117
  @extend %cl-color-transparent;
106
118
  }
107
119
  }
108
120
 
109
- // ----------------------------------------------
121
+ // -----------------------------------------------------------------------------
110
122
 
111
123
  a,
112
124
  span,