@castlabs/ui 7.14.0 → 7.15.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.14.0",
3
+ "version": "7.15.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.",
@@ -42,30 +42,30 @@
42
42
  "simplebar": "6.3.3"
43
43
  },
44
44
  "optionalDependencies": {
45
- "@rollup/rollup-linux-x64-gnu": "4.57.1"
45
+ "@rollup/rollup-linux-x64-gnu": "4.59.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@castlabs/ui-editor": "file:../castlabs-ui-editor",
49
49
  "@tsconfig/node22": "22.0.5",
50
- "@types/jsdom": "27.0.0",
51
- "@types/node": "25.2.0",
50
+ "@types/jsdom": "28.0.0",
51
+ "@types/node": "25.3.0",
52
52
  "@vitejs/plugin-vue": "6.0.4",
53
- "@vitest/eslint-plugin": "1.6.6",
53
+ "@vitest/eslint-plugin": "1.6.9",
54
54
  "@vue/eslint-config-prettier": "10.2.0",
55
- "@vue/eslint-config-typescript": "14.6.0",
55
+ "@vue/eslint-config-typescript": "14.7.0",
56
56
  "@vue/test-utils": "2.4.6",
57
57
  "@vue/tsconfig": "0.8.1",
58
58
  "core-js": "3.48.0",
59
59
  "dree": "5.1.5",
60
60
  "eslint-plugin-import": "2.32.0",
61
- "eslint-plugin-n": "17.23.2",
61
+ "eslint-plugin-n": "17.24.0",
62
62
  "eslint-plugin-promise": "7.2.1",
63
- "eslint-plugin-vue": "10.7.0",
63
+ "eslint-plugin-vue": "10.8.0",
64
64
  "eslint": "9.39.2",
65
65
  "gulp-concat": "2.6.1",
66
66
  "gulp-replace": "1.1.4",
67
67
  "gulp": "5.0.1",
68
- "jsdom": "28.0.0",
68
+ "jsdom": "28.1.0",
69
69
  "npm-run-all": "4.1.5",
70
70
  "sass": "1.97.3",
71
71
  "stylelint-config-sass-guidelines": "13.0.0",
@@ -76,7 +76,7 @@
76
76
  "typescript": "5.9.3",
77
77
  "vite": "7.3.1",
78
78
  "vitest": "4.0.18",
79
- "vue-tsc": "3.2.4",
80
- "vue": "3.5.27"
79
+ "vue-tsc": "3.2.5",
80
+ "vue": "3.5.29"
81
81
  }
82
82
  }
@@ -7,6 +7,12 @@
7
7
 
8
8
  @use '../../styles/global' as *;
9
9
 
10
+ %cl-list-tight {
11
+ li {
12
+ margin-top: $spacing-tiny;
13
+ }
14
+ }
15
+
10
16
  %cl-list {
11
17
  @include cl-accent;
12
18
 
@@ -32,6 +38,10 @@
32
38
  }
33
39
  }
34
40
 
41
+ &.cl-tight {
42
+ @extend %cl-list-tight;
43
+ }
44
+
35
45
  &.cl-list-none {
36
46
  margin-left: 0;
37
47
 
@@ -410,6 +410,12 @@ $sidenav-color-text-minor: $color-ci-ash;
410
410
  padding: $spacing-tiny $spacing-small;
411
411
  position: relative;
412
412
 
413
+ @include media-breakpoint-up(md) {
414
+ // reduce nav item heigt a bit on larger screens
415
+ padding-bottom: $spacing-tiny - px(1);
416
+ padding-top: $spacing-tiny - px(1);
417
+ }
418
+
413
419
  &::after {
414
420
  // we use a block item, not a border, so content does not jump
415
421
  background-color: $color-ci-red;
@@ -430,6 +436,13 @@ $sidenav-color-text-minor: $color-ci-ash;
430
436
  }
431
437
  }
432
438
 
439
+ @for $depth from 1 through 5 {
440
+ .cl-nav-item-level-#{$depth},
441
+ .cl-nav-item-level-#{$depth}.active {
442
+ padding-left: $spacing-small * $depth;
443
+ }
444
+ }
445
+
433
446
  .cl-dropdown {
434
447
  // service drawer
435
448
  #{'--cl-color-text'}: $color-ci-eggshell;
@@ -22,12 +22,20 @@ $grid-table-responsive: sm;
22
22
 
23
23
  @function breakpoint-min($breakpoint) {
24
24
  $min: map.get($grid-breakpoints, $breakpoint);
25
- @return if($min != 0, $min, null);
25
+ @if $min != 0 {
26
+ @return $min;
27
+ } @else {
28
+ @return null;
29
+ }
26
30
  }
27
31
 
28
32
  @function breakpoint-max($breakpoint) {
29
33
  $max: map.get($grid-breakpoints, $breakpoint);
30
- @return if($max and $max > 0, $max - 0.02, null);
34
+ @if max and $max > 0 {
35
+ @return $max - 0.02;
36
+ } @else {
37
+ @return null;
38
+ }
31
39
  }
32
40
 
33
41
  @function breakpoint-next($breakpoint, $breakpoint-names: map.keys($grid-breakpoints)) {
@@ -35,7 +43,11 @@ $grid-table-responsive: sm;
35
43
  @if not $n {
36
44
  @error 'breakpoint `#{$breakpoint}` not found in `#{$grid-breakpoints}`';
37
45
  }
38
- @return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
46
+ @if $n < length($breakpoint-names) {
47
+ @return nth($breakpoint-names, $n + 1);
48
+ } @else {
49
+ @return null;
50
+ }
39
51
  }
40
52
 
41
53
  @mixin media-breakpoint-up($breakpoint) {
@@ -487,14 +487,13 @@ $typography-responsive-scale: 0.8;
487
487
  %cl-p-pre-box {
488
488
  @extend %cl-p-pre;
489
489
 
490
- border: $brand-line-width solid var(--cl-color-text);
490
+ background-color: $color-ci-haze;
491
491
  border-radius: $brand-border-radius;
492
- clip-path: inset(-1px round 22px);
492
+ clip-path: inset(0 round $brand-border-radius);
493
493
  font-size: px(15);
494
494
  line-height: 1.4;
495
495
  margin-top: $spacing-small;
496
496
  padding: $spacing-small;
497
- padding-bottom: 0.95rem; // fix for overlapping scrollbar/clip
498
497
  }
499
498
 
500
499
  %cl-p-tag {
@@ -16,9 +16,6 @@ $cl-url-postfix: '' !default;
16
16
  background-size: contain;
17
17
  display: inline-block;
18
18
  height: 1em * 2;
19
- margin-bottom: -1em;
20
- position: relative;
21
- top: -0.4em;
22
19
  width: 2.95em * 2;
23
20
  }
24
21
 
@@ -29,9 +26,6 @@ $cl-url-postfix: '' !default;
29
26
  background-size: contain;
30
27
  display: inline-block;
31
28
  height: 1em * 2;
32
- margin-bottom: -1em;
33
- position: relative;
34
- top: -0.4em;
35
29
  width: 2.95em * 2;
36
30
  }
37
31
 
@@ -1,3 +1,3 @@
1
1
  :root {
2
- #{'--cl-version'}: 'v7.14.0';
2
+ #{'--cl-version'}: 'v7.15.0';
3
3
  }