@castlabs/ui 7.20.0 → 7.21.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.20.0",
3
+ "version": "7.21.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.60.1"
45
+ "@rollup/rollup-linux-x64-gnu": "4.60.2"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@castlabs/ui-editor": "file:../castlabs-ui-editor",
49
49
  "@tsconfig/node22": "22.0.5",
50
50
  "@types/jsdom": "28.0.1",
51
- "@types/node": "25.5.2",
52
- "@vitejs/plugin-vue": "6.0.5",
53
- "@vitest/eslint-plugin": "1.6.14",
51
+ "@types/node": "25.6.0",
52
+ "@vitejs/plugin-vue": "6.0.6",
53
+ "@vitest/eslint-plugin": "1.6.16",
54
54
  "@vue/eslint-config-prettier": "10.2.0",
55
55
  "@vue/eslint-config-typescript": "14.7.0",
56
- "@vue/test-utils": "2.4.6",
56
+ "@vue/test-utils": "2.4.9",
57
57
  "@vue/tsconfig": "0.9.1",
58
58
  "core-js": "3.49.0",
59
59
  "dree": "5.1.5",
60
60
  "eslint-plugin-import": "2.32.0",
61
61
  "eslint-plugin-n": "17.24.0",
62
- "eslint-plugin-promise": "7.2.1",
63
- "eslint-plugin-vue": "10.8.0",
64
- "eslint": "9.39.3",
62
+ "eslint-plugin-promise": "7.3.0",
63
+ "eslint-plugin-vue": "10.9.0",
64
+ "eslint": "9.39.4",
65
65
  "gulp-concat": "2.6.1",
66
66
  "gulp-replace": "1.1.4",
67
67
  "gulp": "5.0.1",
68
- "jsdom": "29.0.2",
68
+ "jsdom": "29.1.1",
69
69
  "npm-run-all": "4.1.5",
70
70
  "sass": "1.99.0",
71
71
  "stylelint-config-sass-guidelines": "13.0.0",
@@ -73,11 +73,11 @@
73
73
  "stylelint-config-standard": "40.0.0",
74
74
  "stylelint-order": "8.1.1",
75
75
  "stylelint-scss": "7.0.0",
76
- "typescript": "5.9.3",
77
- "vite": "8.0.5",
78
- "vitest": "4.1.2",
79
- "vue-tsc": "3.2.6",
80
- "vue": "3.5.32"
76
+ "typescript": "6.0.3",
77
+ "vite": "8.0.10",
78
+ "vitest": "4.1.5",
79
+ "vue-tsc": "3.2.7",
80
+ "vue": "3.5.33"
81
81
  },
82
82
  "overrides": {
83
83
  "glob": "^13"
@@ -88,7 +88,7 @@
88
88
  &:not([class*=' cl-color-']) {
89
89
  // default button color
90
90
  #{'--cl-color-background'}: $color-ci-sea;
91
- #{'--cl-color-text'}: var(--cl-color-text);
91
+ #{'--cl-color-text'}: $color-ci-eggshell;
92
92
  #{'--cl-color-border'}: $color-ci-sea;
93
93
  }
94
94
  }
@@ -337,6 +337,7 @@ $color-opacity-active: 0.8;
337
337
 
338
338
  #{'--cl-color-background'}: $color-ci-night;
339
339
  #{'--cl-color-border'}: $color-ci-night;
340
+ #{'--cl-color-icon'}: $color-ci-steel;
340
341
  }
341
342
 
342
343
  %cl-color-eggshell {
@@ -346,6 +347,7 @@ $color-opacity-active: 0.8;
346
347
  #{'--cl-color-background'}: $color-ci-eggshell;
347
348
  #{'--cl-color-border'}: $color-ci-eggshell;
348
349
  #{'--cl-color-input-border'}: $color-ci-ash;
350
+ #{'--cl-color-icon'}: $color-ci-steel;
349
351
  #{'--cl-color-line'}: $color-line;
350
352
  #{'--cl-color-link'}: inherit;
351
353
  }
@@ -356,6 +358,7 @@ $color-opacity-active: 0.8;
356
358
  #{'--cl-color-border'}: var(--cl-color-background-haze);
357
359
  #{'--cl-color-background'}: var(--cl-color-background-haze);
358
360
  #{'--cl-color-input-background'}: $color-ci-eggshell;
361
+ #{'--cl-color-icon'}: $color-ci-steel;
359
362
  }
360
363
 
361
364
  %cl-color-clay {
@@ -119,6 +119,7 @@ $typography-monospace-line-height: 1.375;
119
119
  // button styled as regular link
120
120
  @extend %cl-a;
121
121
 
122
+ #{'--cl-color-text'}: inherit !important;
122
123
  background-color: transparent;
123
124
  background-position: left bottom 0.25em; // depends on underline
124
125
  background-repeat: no-repeat;
@@ -71,6 +71,13 @@
71
71
  max-width: 848px;
72
72
  }
73
73
 
74
+ // sections with fluid content width use full browser width
75
+ .cl-section-fluid > .container {
76
+ max-width: 100% !important;
77
+ padding-left: 0;
78
+ padding-right: 0;
79
+ }
80
+
74
81
  // -----------------------------------------------------------------------------
75
82
 
76
83
  section {
@@ -1,3 +1,3 @@
1
1
  :root {
2
- #{'--cl-version'}: 'v7.20.0';
2
+ #{'--cl-version'}: 'v7.21.0';
3
3
  }
@@ -14,6 +14,7 @@ $cl-url-postfix: '' !default;
14
14
  #{'--cl-color-input-background'}: $color-ci-night;
15
15
  #{'--cl-color-input-border'}: $color-ci-clay;
16
16
  #{'--cl-color-text'}: $color-ci-eggshell;
17
+ #{'--cl-color-link'}: $color-ci-eggshell;
17
18
  #{'--cl-color-text-inverted'}: $color-ci-night;
18
19
 
19
20
  textarea[disabled],
@@ -9,6 +9,7 @@ declare module '@castlabs/ui/dist/castlabs-ui.module.js' {
9
9
  export function clModalShow (id: string, value?: any): void
10
10
  export function clModalValue (id: string): any
11
11
  export function clModalIsShown (id?: string): boolean
12
+ export function clModalBack (to: any): boolean
12
13
 
13
14
  export function clPaginate (array: any[], pageNo?: number, pageSize?: number): any[]
14
15
 
package/types/index.d.ts CHANGED
@@ -68,6 +68,7 @@ export function clModalHide(): void
68
68
  export function clModalShow (id: string, value?: any): void
69
69
  export function clModalValue (id: string): any
70
70
  export function clModalIsShown (id?: string): boolean
71
+ export function clModalBack (to: any): boolean
71
72
 
72
73
  export function clPaginate (array: any[], pageNo?: number, pageSize?: number): any[]
73
74
 
@@ -146,6 +147,7 @@ export function clRefClField (ref: unknown): typeof ClField
146
147
  export function clRefClFieldGroup (ref: unknown): typeof ClFieldGroup
147
148
  export function clRefFocus (ref: unknown): void
148
149
  export function clRefHTMLElement (ref: unknown): HTMLElement
150
+ export function clBackOrGoto (router: unknown, routeName: string): void
149
151
 
150
152
  // --- utils/vitest ------------------------------------------------------------
151
153
 
@@ -245,7 +247,6 @@ type ClSidenavEntry = {
245
247
  subtitle: string | undefined
246
248
  badge: string | undefined
247
249
  url: string | undefined
248
- locked: boolean
249
250
  disabled: boolean
250
251
  }
251
252
 
@@ -283,7 +284,6 @@ type CsNavEntry = {
283
284
  title: string
284
285
  subtitle: string
285
286
  url: string
286
- locked: boolean,
287
287
  disabled: boolean,
288
288
  badge: string | undefined
289
289
  }