@castlabs/ui 7.23.0 → 7.23.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": "7.23.0",
3
+ "version": "7.23.1",
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.",
@@ -15,9 +15,7 @@
15
15
  font-size: 0.75em;
16
16
  }
17
17
 
18
- &:hover,
19
- &:hover::after,
20
- &:hover * {
18
+ &:hover::after {
21
19
  color: $color-hover;
22
20
  text-decoration-color: $color-hover;
23
21
  text-decoration-thickness: px(1);
@@ -20,13 +20,14 @@
20
20
  visibility: hidden !important;
21
21
  }
22
22
 
23
- .cl-cursor-pointer,
24
23
  .cl-cursor-link {
25
24
  cursor: pointer !important;
26
25
  }
27
26
 
28
- .cl-cursor-not-allowed {
29
- cursor: not-allowed !important;
27
+ @each $cursor in pointer, default, text, not-allowed, none {
28
+ .cl-cursor-#{$cursor} {
29
+ cursor: $cursor !important;
30
+ }
30
31
  }
31
32
 
32
33
  @each $transform in uppercase, lowercase, capitalize {
@@ -1,3 +1,3 @@
1
1
  :root {
2
- #{'--cl-version'}: 'v7.23.0';
2
+ #{'--cl-version'}: 'v7.23.1';
3
3
  }
@@ -17,9 +17,9 @@ declare module '@castlabs/ui/dist/castlabs-ui.module.js' {
17
17
 
18
18
  export function clFormReset (id: string, fields?: any[]): void
19
19
  export function clFormFieldReset (ref: any, oldValue: any): void
20
- export function clFormIsValid (id: string): boolean
21
- export function clFormIsValidAsync (id: string): Promise<boolean>
22
- export function clFormFieldFocusFirstInvalid (id: string): void
20
+ export function clFormIsValid (id: string, moreSelectors?: string[], triggerSelectors?: string[]): boolean
21
+ export function clFormIsValidAsync (id: string, moreSelectors?: string[], triggerSelectors?: string[]): Promise<boolean>
22
+ export function clFormFieldFocusFirstInvalid (id: string, moreSelectors?: string[]): void
23
23
  export function clFormAutofocus (id: string): void
24
24
 
25
25
  export function clFormatFilesize (bytes: number): string
package/types/index.d.ts CHANGED
@@ -76,9 +76,9 @@ export function clFocus (selector?: string): void
76
76
 
77
77
  export function clFormReset (id: string, fields?: (typeof ClField | typeof ClFieldGroup)[]): void
78
78
  export function clFormFieldReset (ref: any, oldValue: any): void
79
- export function clFormIsValid (id: string): boolean
80
- export function clFormIsValidAsync (id: string): Promise<boolean>
81
- export function clFormFieldFocusFirstInvalid (id: string): void
79
+ export function clFormIsValid (id: string, moreSelectors?: string[], triggerSelectors?: string[]): boolean
80
+ export function clFormIsValidAsync (id: string, moreSelectors?: string[], triggerSelectors?: string[]): Promise<boolean>
81
+ export function clFormFieldFocusFirstInvalid (id: string, moreSelectors?: string[]): void
82
82
  export function clFormAutofocus (id: string): void
83
83
 
84
84
  export function clFormatFilesize (bytes: number): string