@castlabs/ui 7.4.0 → 7.5.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.4.0",
3
+ "version": "7.5.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.",
@@ -39,44 +39,44 @@
39
39
  "main": "./dist/castlabs-ui.common.js",
40
40
  "dependencies": {
41
41
  "bootstrap": "5.3.8",
42
- "simplebar": "6.3.0"
42
+ "simplebar": "6.3.3"
43
43
  },
44
44
  "optionalDependencies": {
45
- "@rollup/rollup-linux-x64-gnu": "4.50.2"
45
+ "@rollup/rollup-linux-x64-gnu": "4.53.3"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@castlabs/ui-editor": "file:../castlabs-ui-editor",
49
- "@tsconfig/node22": "22.0.2",
50
- "@types/jsdom": "21.1.7",
51
- "@types/node": "24.5.0",
52
- "@vitejs/plugin-vue": "6.0.1",
53
- "@vitest/eslint-plugin": "1.3.10",
49
+ "@tsconfig/node22": "22.0.5",
50
+ "@types/jsdom": "27.0.0",
51
+ "@types/node": "24.10.1",
52
+ "@vitejs/plugin-vue": "6.0.2",
53
+ "@vitest/eslint-plugin": "1.4.3",
54
54
  "@vue/eslint-config-prettier": "10.2.0",
55
55
  "@vue/eslint-config-typescript": "14.6.0",
56
56
  "@vue/test-utils": "2.4.6",
57
57
  "@vue/tsconfig": "0.8.1",
58
- "core-js": "3.45.1",
58
+ "core-js": "3.47.0",
59
59
  "dree": "5.1.5",
60
60
  "eslint-plugin-import": "2.32.0",
61
- "eslint-plugin-n": "17.23.0",
61
+ "eslint-plugin-n": "17.23.1",
62
62
  "eslint-plugin-promise": "7.2.1",
63
- "eslint-plugin-vue": "10.4.0",
64
- "eslint": "9.35.0",
63
+ "eslint-plugin-vue": "10.5.1",
64
+ "eslint": "9.39.1",
65
65
  "gulp-concat": "2.6.1",
66
66
  "gulp-replace": "1.1.4",
67
67
  "gulp": "5.0.1",
68
- "jsdom": "27.0.0",
68
+ "jsdom": "27.2.0",
69
69
  "npm-run-all": "4.1.5",
70
- "sass": "1.92.1",
70
+ "sass": "1.94.1",
71
71
  "stylelint-config-sass-guidelines": "12.1.0",
72
72
  "stylelint-config-standard-vue": "1.0.0",
73
- "stylelint-config-standard": "39.0.0",
73
+ "stylelint-config-standard": "39.0.1",
74
74
  "stylelint-order": "7.0.0",
75
75
  "stylelint-scss": "6.12.1",
76
- "typescript": "5.9.2",
77
- "vite": "7.1.5",
78
- "vitest": "3.2.4",
79
- "vue-tsc": "3.0.7",
80
- "vue": "3.5.21"
76
+ "typescript": "5.9.3",
77
+ "vite": "7.2.2",
78
+ "vitest": "4.0.10",
79
+ "vue-tsc": "3.1.4",
80
+ "vue": "3.5.24"
81
81
  }
82
82
  }
@@ -49,7 +49,6 @@ $card-spacing-tight: $spacing-small;
49
49
 
50
50
  &.cl-color-red-outline:not([class*='cl-color-text-']) {
51
51
  #{'--cl-color-text'}: $color-ci-night;
52
- #{'--cl-color-accent'}: $color-accent;
53
52
  }
54
53
 
55
54
  a:not(.btn) {
@@ -5,7 +5,7 @@
5
5
 
6
6
  // This file adds & customizes the simplebar scrollbar.
7
7
 
8
- @use 'simplebar/dist/simplebar.min';
8
+ @use 'simplebar/dist/simplebar.min.css';
9
9
  @use '../../styles/global' as *;
10
10
 
11
11
  // --- scrollbar ---------------------------------------------------------------
@@ -117,6 +117,8 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
117
117
  .cl-nav-icon {
118
118
  flex-shrink: 0;
119
119
  font-size: px(22);
120
+ position: relative;
121
+ top: 0.05em;
120
122
  }
121
123
  }
122
124
 
@@ -20,6 +20,10 @@ $sidenav-z-index: $layer-z-sidenav;
20
20
  background-color: $color-ci-night;
21
21
  color: $color-ci-eggshell;
22
22
 
23
+ .row {
24
+ #{'--bs-gutter-x'}: $grid-spacing;
25
+ }
26
+
23
27
  a:not(.btn) {
24
28
  @include typography-link-invisible;
25
29
  }
@@ -48,6 +52,8 @@ $sidenav-z-index: $layer-z-sidenav;
48
52
  @extend %cl-p-label;
49
53
 
50
54
  color: $color-ci-eggshell;
55
+ flex-grow: 99;
56
+ letter-spacing: 0;
51
57
  margin: 0;
52
58
  padding: 0 $spacing-small;
53
59
 
@@ -74,6 +80,18 @@ $sidenav-z-index: $layer-z-sidenav;
74
80
  display: flex;
75
81
  font-size: $header-nav-height * 0.5; // logo scales 2x
76
82
 
83
+ &:first-child {
84
+ // move logo as logo's shape has 'padding' within the image bounds
85
+ left: -0.5em;
86
+ position: relative;
87
+ }
88
+
89
+ &:not(:first-child) {
90
+ // move logo as logo's shape has 'padding' within the image bounds
91
+ left: 0.5em;
92
+ position: relative;
93
+ }
94
+
77
95
  span {
78
96
  @extend %cl-p-label;
79
97
 
@@ -198,10 +216,10 @@ $navbar-item-spacing: $spacing-medium;
198
216
  }
199
217
 
200
218
  .navbar-brand {
201
- font-size: px(16);
219
+ font-size: $header-nav-height * 0.5; // logo scales 2x
202
220
  line-height: 1;
203
221
  margin: 0;
204
- padding: 0.5em 0;
222
+ padding: 0;
205
223
  }
206
224
 
207
225
  .nav-link {
@@ -117,6 +117,21 @@ $color-line: $color-ci-clay;
117
117
  #{'--cl-color-accent'}: $color-ci-berry;
118
118
  }
119
119
 
120
+ &.cl-accent-brick,
121
+ .cl-accent-brick {
122
+ #{'--cl-color-accent'}: $color-ci-brick;
123
+ }
124
+
125
+ &.cl-accent-honey,
126
+ .cl-accent-honey {
127
+ #{'--cl-color-accent'}: $color-ci-honey;
128
+ }
129
+
130
+ &.cl-accent-leaf,
131
+ .cl-accent-leaf {
132
+ #{'--cl-color-accent'}: $color-ci-leaf;
133
+ }
134
+
120
135
  &.cl-accent-none,
121
136
  .cl-accent-none,
122
137
  &.cl-accent-transparent,
@@ -174,7 +189,7 @@ $color-line: $color-ci-clay;
174
189
  #{'--cl-color-border'}: $color-ci-night;
175
190
  #{'--cl-color-text'}: $color-ci-night;
176
191
  #{'--cl-color-line'}: $color-line;
177
- #{'--cl-color-accent'}: $color-ci-night;
192
+ #{'--cl-color-accent'}: $color-accent;
178
193
  #{'--cl-color-highlight'}: rgba(#fff, 0.85);
179
194
  #{'--cl-color-link'}: inherit;
180
195
  #{'--cl-color-focus'}: $color-ci-night;
@@ -242,21 +257,16 @@ $color-line: $color-ci-clay;
242
257
  #{'--cl-color-border'}: $color-ci-eggshell;
243
258
  #{'--cl-color-text'}: $color-ci-night;
244
259
  #{'--cl-color-line'}: $color-line;
245
- #{'--cl-color-accent'}: $color-ci-night;
260
+ #{'--cl-color-accent'}: $color-accent;
246
261
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
247
262
  #{'--cl-color-link'}: inherit;
248
263
  #{'--cl-color-focus'}: $color-ci-night;
249
264
  }
250
265
 
251
- %cl-color-eggshell-alternate {
266
+ %cl-color-haze {
267
+ @extend %cl-color-night-outline;
268
+
252
269
  #{'--cl-color-background'}: $color-ci-haze;
253
- #{'--cl-color-border'}: $color-ci-haze;
254
- #{'--cl-color-text'}: $color-ci-night;
255
- #{'--cl-color-line'}: $color-line;
256
- #{'--cl-color-accent'}: $color-ci-night;
257
- #{'--cl-color-highlight'}: rgba(#fff, 0.1);
258
- #{'--cl-color-link'}: inherit;
259
- #{'--cl-color-focus'}: $color-ci-night;
260
270
  }
261
271
 
262
272
  %cl-color-clay {
@@ -351,7 +361,7 @@ $color-line: $color-ci-clay;
351
361
  #{'--cl-color-background'}: transparent;
352
362
  #{'--cl-color-border'}: $color-ci-ash;
353
363
  #{'--cl-color-text'}: $color-ci-ash;
354
- #{'--cl-color-line'}: $color-ci-ash;
364
+ #{'--cl-color-line'}: $color-line;
355
365
  #{'--cl-color-accent'}: $color-ci-ash;
356
366
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
357
367
  #{'--cl-color-link'}: inherit;
@@ -18,7 +18,7 @@ $spacing-huge: px(48);
18
18
 
19
19
  $spacing-indent: $spacing-large; // uniform indent for lists, blockquotes, ...
20
20
 
21
- $header-nav-height: px(40);
21
+ $header-nav-height: px(48);
22
22
 
23
23
  @mixin spacing-before-auto($value) {
24
24
  margin-bottom: 0;
@@ -14,6 +14,7 @@
14
14
  @extend %cl-color-root;
15
15
  }
16
16
 
17
+ .cl-color-tertiary
17
18
  .cl-color-outline-text, // legacy name
18
19
  .cl-color-night-outline {
19
20
  @extend %cl-color-night-outline;
@@ -77,12 +78,25 @@
77
78
  @extend %cl-color-faded;
78
79
  }
79
80
 
81
+ .cl-color-haze {
82
+ @extend %cl-color-haze;
83
+ }
84
+
80
85
  .cl-color-none {
81
86
  @extend %cl-color-none;
82
87
  }
83
88
 
84
89
  // ----------------------------------------------
85
90
 
91
+ a,
92
+ span,
93
+ div {
94
+ &[class*='cl-color-text-'] {
95
+ color: var(--cl-color-text);
96
+ text-decoration-color: var(--cl-color-text);
97
+ }
98
+ }
99
+
86
100
  .cl-color-text-red {
87
101
  #{'--cl-color-text'}: $color-ci-red;
88
102
  }
@@ -9,24 +9,36 @@
9
9
  @use 'sass:math';
10
10
 
11
11
  .cl-nowrap {
12
- text-wrap: nowrap;
12
+ text-wrap: nowrap !important;
13
13
  }
14
14
 
15
15
  .cl-rounded {
16
- border-radius: $brand-border-radius;
16
+ border-radius: $brand-border-radius !important;
17
17
  }
18
18
 
19
19
  .cl-hidden {
20
- visibility: hidden;
20
+ visibility: hidden !important;
21
21
  }
22
22
 
23
23
  .cl-cursor-pointer,
24
24
  .cl-cursor-link {
25
- cursor: pointer;
25
+ cursor: pointer !important;
26
26
  }
27
27
 
28
28
  .cl-cursor-not-allowed {
29
- cursor: not-allowed;
29
+ cursor: not-allowed !important;
30
+ }
31
+
32
+ @each $transform in uppercase, lowercase, capitalize {
33
+ .cl-#{$transform} {
34
+ text-transform: $transform !important;
35
+ }
36
+ }
37
+
38
+ @each $transform in uppercase, lowercase, capitalize {
39
+ .cl-#{$transform} {
40
+ text-transform: $transform;
41
+ }
30
42
  }
31
43
 
32
44
  .cl-faded {
@@ -71,12 +71,10 @@
71
71
  .cl-section-light,
72
72
  .cl-section-alternate {
73
73
  @extend %section-padding;
74
- @extend %cl-color-eggshell-alternate;
74
+ @extend %cl-color-haze;
75
75
 
76
76
  background-color: var(--cl-color-background);
77
77
  color: var(--cl-color-text);
78
- // border-bottom: $brand-line-width solid $color-ci-clay;
79
- // border-top: $brand-line-width solid $color-ci-clay;
80
78
  }
81
79
 
82
80
  main {