@castlabs/ui 7.23.0 → 7.23.2

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.2",
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,23 +42,23 @@
42
42
  "simplebar": "6.3.3"
43
43
  },
44
44
  "optionalDependencies": {
45
- "@rollup/rollup-linux-x64-gnu": "4.62.0"
45
+ "@rollup/rollup-linux-x64-gnu": "4.62.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.3",
51
- "@types/node": "26.0.0",
51
+ "@types/node": "26.0.1",
52
52
  "@vitejs/plugin-vue": "6.0.7",
53
53
  "@vitest/eslint-plugin": "1.6.20",
54
54
  "@vue/eslint-config-prettier": "10.2.0",
55
- "@vue/eslint-config-typescript": "14.8.0",
55
+ "@vue/eslint-config-typescript": "14.9.0",
56
56
  "@vue/test-utils": "2.4.11",
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
- "eslint-plugin-n": "18.1.0",
61
+ "eslint-plugin-n": "18.2.1",
62
62
  "eslint-plugin-promise": "7.3.0",
63
63
  "eslint-plugin-vue": "10.9.2",
64
64
  "eslint": "9.39.4",
@@ -74,10 +74,10 @@
74
74
  "stylelint-order": "8.1.1",
75
75
  "stylelint-scss": "7.2.0",
76
76
  "typescript": "6.0.3",
77
- "vite": "8.0.16",
77
+ "vite": "8.1.2",
78
78
  "vitest": "4.1.9",
79
- "vue-tsc": "3.3.5",
80
- "vue": "3.5.38"
79
+ "vue-tsc": "3.3.6",
80
+ "vue": "3.5.39"
81
81
  },
82
82
  "overrides": {
83
83
  "glob": "^13"
@@ -5,30 +5,18 @@
5
5
  align-items: center;
6
6
  display: flex;
7
7
 
8
- > :not(.form-control, .input-group-text, :last-child) {
9
- margin-right: $spacing-tiny;
10
- }
8
+ > * {
9
+ margin-left: $spacing-small;
11
10
 
12
- > :not(.form-control, .input-group-text, :first-child) {
13
- margin-left: $spacing-tiny;
11
+ &:first-child {
12
+ margin-left: 0;
13
+ }
14
14
  }
15
15
 
16
16
  > [type='range'] {
17
17
  border-radius: $brand-border-radius !important;
18
18
  margin-bottom: $spacing-tiny - px(1); // shift a bit to align with -/+ icons
19
19
  margin-top: $spacing-tiny + px(1);
20
-
21
- + [type='range'] {
22
- margin-left: $spacing-tiny;
23
- }
24
-
25
- &:has(+ [type='range']) {
26
- margin-right: $spacing-tiny;
27
- }
28
- }
29
-
30
- > :not(.cl-btn-quickaction) + .cl-btn-quickaction {
31
- margin-left: $spacing-small;
32
20
  }
33
21
 
34
22
  > .cl-btn-quickaction {
@@ -121,6 +109,7 @@
121
109
  border-bottom-left-radius: 0;
122
110
  border-left-width: 0; // trick to share one ][ border between 2 inputs
123
111
  border-top-left-radius: 0;
112
+ margin-left: 0;
124
113
  }
125
114
 
126
115
  &:has(+ .form-control.invalid),
@@ -147,6 +136,7 @@
147
136
  flex-direction: column;
148
137
 
149
138
  > * {
139
+ margin-left: 0 !important;
150
140
  width: 100% !important;
151
141
 
152
142
  &:not(:first-child) {
@@ -155,7 +145,6 @@
155
145
 
156
146
  &.btn {
157
147
  font-size: 0.75em;
158
- margin-left: 0 !important;
159
148
  }
160
149
  }
161
150
  }
@@ -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.2';
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