@castlabs/ui 7.15.1 → 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/dist/castlabs-ui.common.js +3 -3
- package/dist/castlabs-ui.common.js.map +1 -1
- package/dist/castlabs-ui.core.js +31 -13
- package/dist/castlabs-ui.css +1 -1
- package/dist/castlabs-ui.module.d.ts +1 -0
- package/dist/castlabs-ui.module.js +31 -13
- package/dist/castlabs-ui.umd.js +4 -4
- package/dist/castlabs-ui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/styles/fonts/FontAwesome5/index.scss +20 -20
- package/src/styles/layout/helper.scss +3 -3
- package/src/styles/layout/meta.scss +1 -1
- package/src/styles/layout/screenreader.scss +29 -0
- package/src/styles/ui.scss +1 -0
- package/types/castlabs-ui.module.d.ts +1 -0
- package/types/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -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
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
}
|
|
6075
|
-
|
|
6076
|
-
.sr-only-focusable:active,
|
|
6077
|
-
.sr-only-focusable:focus {
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
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;
|
|
@@ -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
|
+
}
|
package/src/styles/ui.scss
CHANGED
|
@@ -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[]
|