@castlabs/ui 7.15.0 → 7.16.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.15.0",
3
+ "version": "7.16.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.",
@@ -48,20 +48,20 @@
48
48
  "@castlabs/ui-editor": "file:../castlabs-ui-editor",
49
49
  "@tsconfig/node22": "22.0.5",
50
50
  "@types/jsdom": "28.0.0",
51
- "@types/node": "25.3.0",
51
+ "@types/node": "25.3.3",
52
52
  "@vitejs/plugin-vue": "6.0.4",
53
53
  "@vitest/eslint-plugin": "1.6.9",
54
54
  "@vue/eslint-config-prettier": "10.2.0",
55
55
  "@vue/eslint-config-typescript": "14.7.0",
56
56
  "@vue/test-utils": "2.4.6",
57
- "@vue/tsconfig": "0.8.1",
57
+ "@vue/tsconfig": "0.9.0",
58
58
  "core-js": "3.48.0",
59
59
  "dree": "5.1.5",
60
60
  "eslint-plugin-import": "2.32.0",
61
61
  "eslint-plugin-n": "17.24.0",
62
62
  "eslint-plugin-promise": "7.2.1",
63
63
  "eslint-plugin-vue": "10.8.0",
64
- "eslint": "9.39.2",
64
+ "eslint": "9.39.3",
65
65
  "gulp-concat": "2.6.1",
66
66
  "gulp-replace": "1.1.4",
67
67
  "gulp": "5.0.1",
@@ -78,5 +78,8 @@
78
78
  "vitest": "4.0.18",
79
79
  "vue-tsc": "3.2.5",
80
80
  "vue": "3.5.29"
81
+ },
82
+ "overrides": {
83
+ "glob": "^13"
81
84
  }
82
85
  }
@@ -6062,26 +6062,26 @@ readers don’t read off random characters that represent icons */
6062
6062
  content: '\f63f';
6063
6063
  }
6064
6064
 
6065
- .sr-only {
6066
- border: 0;
6067
- clip: rect(0, 0, 0, 0); /* stylelint-disable-line property-no-deprecated */
6068
- height: 1px;
6069
- margin: -1px;
6070
- overflow: hidden;
6071
- padding: 0;
6072
- position: absolute;
6073
- width: 1px;
6074
- }
6075
-
6076
- .sr-only-focusable:active,
6077
- .sr-only-focusable:focus {
6078
- clip: auto; /* stylelint-disable-line property-no-deprecated */
6079
- height: auto;
6080
- margin: 0;
6081
- overflow: visible;
6082
- position: static;
6083
- width: auto;
6084
- }
6065
+ // .sr-only {
6066
+ // border: 0;
6067
+ // clip: rect(0, 0, 0, 0); /* stylelint-disable-line property-no-deprecated */
6068
+ // height: 1px;
6069
+ // margin: -1px;
6070
+ // overflow: hidden;
6071
+ // padding: 0;
6072
+ // position: absolute;
6073
+ // width: 1px;
6074
+ // }
6075
+
6076
+ // .sr-only-focusable:active,
6077
+ // .sr-only-focusable:focus {
6078
+ // clip: auto; /* stylelint-disable-line property-no-deprecated */
6079
+ // height: auto;
6080
+ // margin: 0;
6081
+ // overflow: visible;
6082
+ // position: static;
6083
+ // width: auto;
6084
+ // }
6085
6085
 
6086
6086
  @font-face {
6087
6087
  font-display: block;
@@ -70,9 +70,9 @@ h6.cl-faded,
70
70
  }
71
71
  }
72
72
 
73
- @for $i from 0 through 64 {
74
- .cl-width-#{$i * 32} {
75
- width: px($i * 32);
73
+ @for $i from 0 through 32 {
74
+ .cl-width-#{$i * 16} {
75
+ width: px($i * 16);
76
76
  }
77
77
  }
78
78
 
@@ -1,3 +1,3 @@
1
1
  :root {
2
- #{'--cl-version'}: 'v7.15.0';
2
+ #{'--cl-version'}: 'v7.16.0';
3
3
  }
@@ -0,0 +1,29 @@
1
+ ////
2
+ /// @group layout
3
+ /// @access public
4
+ ////
5
+
6
+ // This file defines our screenreader helper classes.
7
+
8
+ @use '../global' as *;
9
+
10
+ .sr-only {
11
+ border: 0;
12
+ clip: rect(0, 0, 0, 0); /* stylelint-disable-line property-no-deprecated */
13
+ height: 1px;
14
+ margin: -1px;
15
+ overflow: hidden;
16
+ padding: 0;
17
+ position: absolute;
18
+ width: 1px;
19
+ }
20
+
21
+ .sr-only-focusable:active,
22
+ .sr-only-focusable:focus {
23
+ clip: auto; /* stylelint-disable-line property-no-deprecated */
24
+ height: auto;
25
+ margin: 0;
26
+ overflow: visible;
27
+ position: static;
28
+ width: auto;
29
+ }
@@ -18,6 +18,7 @@ $castlabs-ui-asset-postfix: '' !default;
18
18
  @use 'layout/grid';
19
19
  @use 'layout/helper';
20
20
  @use 'layout/meta';
21
+ @use 'layout/screenreader';
21
22
  @use 'layout/scrollbar';
22
23
  @use 'layout/section';
23
24
  @use 'layout/spacing';
@@ -57,6 +57,7 @@ declare module '@castlabs/ui/dist/castlabs-ui.module.js' {
57
57
  sort: (col?: number, order?: string) => 'ASC' | 'DESC' | 'NONE',
58
58
  }
59
59
  export function clDebounce (callback: any, ms?: number, key?: string): void
60
+ export function clSanitizeId (id: string): string
60
61
 
61
62
  export function clRandomString (length?: number, words?: string[]): string
62
63
  export function clRandomList (length?: number, words?: string[]): string[]
package/types/index.d.ts CHANGED
@@ -115,6 +115,7 @@ export function clTableSorterObjects<Type> (dataCallback: () => Type[], keys: st
115
115
  sort: (col?: number, order?: string) => 'ASC' | 'DESC' | 'NONE',
116
116
  }
117
117
  export function clDebounce (callback: any, ms?: number, key?: string): void
118
+ export function clSanitizeId (id: string): string
118
119
 
119
120
  export function clRandomString (length?: number, words?: string[]): string
120
121
  export function clRandomList (length?: number, words?: string[]): string[]