@castlabs/ui 8.0.0 → 8.1.1

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": "8.0.0",
3
+ "version": "8.1.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/castlabs/ui-styleguide.git"
@@ -42,7 +42,7 @@
42
42
  "simplebar": "6.3.3"
43
43
  },
44
44
  "optionalDependencies": {
45
- "@rollup/rollup-linux-x64-gnu": "4.62.3"
45
+ "@rollup/rollup-linux-x64-gnu": "4.62.4"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@castlabs/ui-editor": "file:../castlabs-ui-editor",
@@ -50,7 +50,7 @@
50
50
  "@types/jsdom": "28.0.3",
51
51
  "@types/node": "26.1.2",
52
52
  "@vitejs/plugin-vue": "6.0.8",
53
- "@vitest/eslint-plugin": "1.6.24",
53
+ "@vitest/eslint-plugin": "1.6.26",
54
54
  "@vue/eslint-config-prettier": "10.2.0",
55
55
  "@vue/eslint-config-typescript": "14.9.0",
56
56
  "@vue/test-utils": "2.4.11",
@@ -70,15 +70,15 @@
70
70
  "sass": "1.102.0",
71
71
  "stylelint-config-sass-guidelines": "13.0.0",
72
72
  "stylelint-config-standard": "40.0.0",
73
- "stylelint-config-standard-vue": "1.0.0",
73
+ "stylelint-config-standard-vue": "2.0.0",
74
74
  "stylelint-order": "8.1.1",
75
75
  "stylelint-scss": "7.2.0",
76
76
  "typescript": "6.0.3",
77
- "vite": "8.1.5",
77
+ "vite": "8.2.0",
78
78
  "vitest": "4.1.10",
79
- "vue": "3.5.40",
79
+ "vue": "3.5.41",
80
80
  "vue-eslint-parser": "10.4.1",
81
- "vue-tsc": "3.3.8"
81
+ "vue-tsc": "3.3.9"
82
82
  },
83
83
  "overrides": {
84
84
  "glob": "^13"
@@ -62,6 +62,15 @@ $form-check-background: $color-ci-eggshell;
62
62
  box-shadow: 0 0 0 px(2) $color-empty inset;
63
63
  }
64
64
  }
65
+
66
+ &.invalid,
67
+ &:invalid {
68
+ border-color: $color-error;
69
+
70
+ + label {
71
+ color: $color-error;
72
+ }
73
+ }
65
74
  }
66
75
 
67
76
  &:focus-visible {
@@ -26,9 +26,26 @@
26
26
  width: $sidenav-width-closed;
27
27
  z-index: $sidenav-z-index + 1;
28
28
 
29
+ // simplebar wrapper
29
30
  > div {
31
+ #{'--cl-sidenav-spacing-bottom'}: $spacing-small;
30
32
  height: 100%;
31
33
  width: $sidenav-width-open;
34
+
35
+ .simplebar-content > :last-child {
36
+ margin-bottom: var(--cl-sidenav-spacing-bottom);
37
+ }
38
+
39
+ // fix for light/dark switcher, as last display:none items would hide their margin too
40
+ .cl-nav-item-theme-light:has(+ .cl-nav-item-theme-dark:last-child),
41
+ .cl-nav-item-theme-dark:has(+ .cl-nav-item-theme-light:last-child) {
42
+ margin-bottom: var(--cl-sidenav-spacing-bottom);
43
+ }
44
+
45
+ @include media-breakpoint-down($sidenav-breakpoint) {
46
+ // use bigger bottom spacing to avoid avoid bottom mobile OSes panel overlap
47
+ #{'--cl-sidenav-spacing-bottom'}: $spacing-huge;
48
+ }
32
49
  }
33
50
  }
34
51
  }
@@ -1,3 +1,3 @@
1
1
  :root {
2
- #{'--cl-version'}: 'v8.0.0';
2
+ #{'--cl-version'}: 'v8.1.1';
3
3
  }
@@ -26,7 +26,7 @@
26
26
 
27
27
  @mixin cl-if-dark-mode {
28
28
  // detect body class and toggle-checkbox
29
- body:has(#cl-mode-dark:checked),
29
+ :root:has(#cl-mode-dark:checked),
30
30
  .cl-mode-dark {
31
31
  @content;
32
32
  }
@@ -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 clModalWasShown (): boolean
12
13
  export function clModalBack (to: any): boolean
13
14
 
14
15
  export function clPaginate (array: any[], pageNo?: number, pageSize?: number): any[]
package/types/index.d.ts CHANGED
@@ -68,7 +68,7 @@ export function clScrollToId (id: string, smooth?: boolean): void
68
68
  export function clModalHide(): void
69
69
  export function clModalShow (id: string, value?: any): void
70
70
  export function clModalValue (id: string): any
71
- export function clModalIsShown (id?: string): boolean
71
+ export function clModalWasShown (): boolean
72
72
  export function clModalBack (to: any): boolean
73
73
 
74
74
  export function clPaginate (array: any[], pageNo?: number, pageSize?: number): any[]