@castlabs/ui 7.5.1 → 7.6.0

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.6.0",
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
  }
@@ -9,8 +9,7 @@
9
9
  @use '../../styles/global' as *;
10
10
 
11
11
  $dropdown-border: 0.125rem; // a 2px border to add so there is space for the outline
12
- $dropdown-color-chevron: rgba($color-ci-white, 0.5);
13
- $dropdown-color-chevron-bright: rgba($color-ci-clay, 0.5);
12
+ $dropdown-color-chevron: $color-ci-clay;
14
13
  $dropdown-line-height: 1.25;
15
14
 
16
15
  .cl-dropdown {
@@ -44,7 +43,7 @@ $dropdown-line-height: 1.25;
44
43
  align-items: center;
45
44
  background-color: var(--cl-color-background);
46
45
  box-shadow: -8px 0 4px var(--cl-color-background);
47
- color: $dropdown-color-chevron-bright;
46
+ color: $dropdown-color-chevron;
48
47
  display: flex;
49
48
  font-size: px(18);
50
49
  height: calc(100% - 8px);
@@ -11,8 +11,11 @@
11
11
  $sidenav-color-separator: rgba(#fff, 0.25);
12
12
 
13
13
  $sidenav-color-account: $color-ci-night;
14
- $sidenav-color-organization: #313644; // color.adjust($sidenav-color-account, $lightness: 5%);
15
- $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness: 10%);
14
+ $sidenav-color-organization: $color-ci-night-2;
15
+ $sidenav-color-app: $color-ci-night-3;
16
+ $sidenav-color: $color-ci-haze;
17
+ $sidenav-color-text: $color-ci-night;
18
+ $sidenav-color-text-minor: $color-ci-ash;
16
19
 
17
20
  @mixin cl-nav-fadeout($color) {
18
21
  overflow: hidden;
@@ -36,8 +39,9 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
36
39
  // --- drawer ----------------------------------------------------------------
37
40
 
38
41
  .cl-nav-drawer {
39
- #{'--cl-color-background'}: $color-ci-eggshell;
40
- #{'--cl-color-text'}: $color-ci-night;
42
+ #{'--cl-color-background'}: $sidenav-color;
43
+ #{'--cl-color-text'}: $sidenav-color-text;
44
+ #{'--cl-color-accent'}: $color-ci-petrol;
41
45
  background-color: var(--cl-color-background);
42
46
  color: var(--cl-color-text);
43
47
  }
@@ -184,7 +188,7 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
184
188
  div.cl-nav-organization,
185
189
  a.cl-nav-organization {
186
190
  min-height: 3.25rem;
187
- padding: 0 $spacing-small $spacing-tiny;
191
+ padding: $spacing-micro $spacing-small $spacing-micro + $spacing-tiny;
188
192
  position: relative;
189
193
 
190
194
  &::after {
@@ -297,10 +301,16 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
297
301
  position: relative;
298
302
  width: 100%;
299
303
 
304
+ @include media-breakpoint-up(md) {
305
+ // reduce nav item heigt a bit on larger screens
306
+ padding-bottom: $spacing-tiny - px(1);
307
+ padding-top: $spacing-tiny - px(1);
308
+ }
309
+
300
310
  .cl-nav-item-info {
301
311
  @extend %cl-p-small;
302
312
 
303
- color: $color-ci-ash;
313
+ color: $sidenav-color-text-minor;
304
314
  letter-spacing: 0.025em;
305
315
  line-height: 1.4;
306
316
  margin-top: px(3);
@@ -348,6 +358,7 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
348
358
  }
349
359
 
350
360
  .cl-dropdown {
361
+ // service drawer
351
362
  #{'--cl-color-text'}: $color-ci-eggshell;
352
363
  #{'--cl-color-background'}: $sidenav-color-app;
353
364
  #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
@@ -372,11 +383,15 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
372
383
  + .cl-dropdown-arrow {
373
384
  background-color: $sidenav-color-app;
374
385
  }
386
+
387
+ .cl-subentry {
388
+ color: $color-ci-clay;
389
+ }
375
390
  }
376
391
 
377
392
  .cl-nav-separator {
378
393
  // -------------------------------------------------------
379
- background-color: $color-ci-clay;
394
+ background-color: $color-ci-steel;
380
395
  border: 0;
381
396
  height: $brand-line-width;
382
397
  margin: $spacing-small 0;
@@ -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
  }
@@ -13,8 +13,11 @@ $color-ci-red: #fa423c; // rgba(250, 66, 60, 1)
13
13
  $color-ci-sky: #71c0ff; // rgba(113, 192, 255, 1)
14
14
  $color-ci-eggshell: #fbf9f2; // rgba(251, 249, 242, 1);
15
15
  $color-ci-night: #262a35; // rgba(38, 42, 53, 1);
16
- $color-ci-night-2: #2c303c; // rgba(38, 42, 53, 1); // interim color for sidenav
17
- $color-ci-night-3: #333742; // rgba(38, 42, 53, 1); // interim color for sidenav
16
+
17
+ $color-ci-night-2: #333947;
18
+ $color-ci-night-3: #3c4253;
19
+ $color-ci-night-4: #454c5f;
20
+
18
21
  $color-ci-clay: #cfc8c8; // rgba(207, 200, 200, 1);
19
22
  $color-ci-ash: #6d5e5e; // rgba(109, 94, 94, 1);
20
23
  $color-ci-berry: #6e1c3b; // rgba(110, 28, 59, 1);
@@ -174,7 +177,6 @@ $color-opacity-active: 0.8;
174
177
  #{'--cl-color-text'}: $color-ci-night;
175
178
  #{'--cl-color-line'}: $color-line;
176
179
  #{'--cl-color-accent'}: $color-accent;
177
- #{'--cl-color-highlight'}: rgba(#fff, 0.85);
178
180
  #{'--cl-color-link'}: $color-link;
179
181
  #{'--cl-color-active'}: $color-ci-berry;
180
182
  #{'--cl-color-hover'}: $color-hover;
@@ -192,7 +194,6 @@ $color-opacity-active: 0.8;
192
194
  #{'--cl-color-text'}: $color-ci-night;
193
195
  #{'--cl-color-line'}: $color-line;
194
196
  #{'--cl-color-accent'}: $color-accent;
195
- #{'--cl-color-highlight'}: rgba(#fff, 0.85);
196
197
  #{'--cl-color-link'}: inherit;
197
198
  #{'--cl-color-focus'}: $color-ci-night;
198
199
  #{'--cl-color-disabled-background'}: transparent;
@@ -206,7 +207,6 @@ $color-opacity-active: 0.8;
206
207
  #{'--cl-color-text'}: $color-ci-eggshell;
207
208
  #{'--cl-color-line'}: $color-ci-eggshell;
208
209
  #{'--cl-color-accent'}: $color-ci-eggshell;
209
- #{'--cl-color-highlight'}: rgba(#fff, 0.1);
210
210
  #{'--cl-color-link'}: $color-ci-eggshell;
211
211
  #{'--cl-color-focus'}: $color-ci-eggshell;
212
212
  }
@@ -216,7 +216,6 @@ $color-opacity-active: 0.8;
216
216
  #{'--cl-color-text'}: $color-ci-night;
217
217
  #{'--cl-color-line'}: $color-ci-night;
218
218
  #{'--cl-color-accent'}: $color-ci-night;
219
- #{'--cl-color-highlight'}: rgba(#fff, 0.1);
220
219
  #{'--cl-color-link'}: $color-ci-night;
221
220
  #{'--cl-color-focus'}: $color-ci-night;
222
221
  }
@@ -234,7 +233,6 @@ $color-opacity-active: 0.8;
234
233
  #{'--cl-color-text'}: $color-ci-red;
235
234
  #{'--cl-color-line'}: $color-line;
236
235
  #{'--cl-color-accent'}: $color-ci-red;
237
- #{'--cl-color-highlight'}: rgba(#fff, 0.85);
238
236
  #{'--cl-color-link'}: inherit;
239
237
  #{'--cl-color-focus'}: $color-ci-red;
240
238
  #{'--cl-color-disabled-background'}: transparent;
@@ -262,7 +260,6 @@ $color-opacity-active: 0.8;
262
260
  #{'--cl-color-text'}: $color-ci-night;
263
261
  #{'--cl-color-line'}: $color-line;
264
262
  #{'--cl-color-accent'}: $color-accent;
265
- #{'--cl-color-highlight'}: rgba(#fff, 0.1);
266
263
  #{'--cl-color-link'}: inherit;
267
264
  #{'--cl-color-focus'}: $color-ci-night;
268
265
  }
@@ -344,14 +341,16 @@ $color-opacity-active: 0.8;
344
341
  }
345
342
 
346
343
  %cl-color-transparent {
347
- @extend %cl-color-text-light;
348
-
349
344
  #{'--cl-color-background'}: transparent;
350
- #{'--cl-color-border'}: $color-ci-eggshell;
345
+ #{'--cl-color-border'}: var(--cl-color-text);
351
346
  #{'--cl-color-disabled-background'}: transparent;
352
347
  #{'--cl-color-disabled-border'}: $color-disabled;
353
348
  #{'--cl-color-disabled-text'}: $color-disabled;
354
349
  #{'--cl-opacity-active'}: $color-opacity-active * 0.9;
350
+ #{'--cl-color-line'}: var(--cl-color-text);
351
+ #{'--cl-color-accent'}: var(--cl-color-text);
352
+ #{'--cl-color-link'}: var(--cl-color-text);
353
+ #{'--cl-color-focus'}: var(--cl-color-text);
355
354
  }
356
355
 
357
356
  %cl-color-disabled {
@@ -360,7 +359,6 @@ $color-opacity-active: 0.8;
360
359
  #{'--cl-color-text'}: $color-disabled;
361
360
  #{'--cl-color-line'}: $color-disabled;
362
361
  #{'--cl-color-accent'}: $color-disabled;
363
- #{'--cl-color-highlight'}: rgba(#fff, 0.1);
364
362
  #{'--cl-color-link'}: inherit;
365
363
  #{'--cl-color-focus'}: $color-ci-eggshell;
366
364
  }
@@ -371,7 +369,6 @@ $color-opacity-active: 0.8;
371
369
  #{'--cl-color-text'}: $color-ci-ash;
372
370
  #{'--cl-color-line'}: $color-line;
373
371
  #{'--cl-color-accent'}: $color-ci-ash;
374
- #{'--cl-color-highlight'}: rgba(#fff, 0.1);
375
372
  #{'--cl-color-link'}: inherit;
376
373
  #{'--cl-color-focus'}: $color-ci-ash;
377
374
  }
@@ -379,7 +376,6 @@ $color-opacity-active: 0.8;
379
376
  %cl-color-none {
380
377
  #{'--cl-color-background'}: transparent;
381
378
  #{'--cl-color-border'}: transparent;
382
- #{'--cl-color-highlight'}: rgba(#fff, 0.1);
383
379
  #{'--cl-color-link'}: $color-ci-eggshell;
384
380
  #{'--cl-color-focus'}: $color-ci-eggshell;
385
381
  #{'--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,