@castlabs/ui 7.23.1 → 7.24.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-editor.common.js +3 -3
- package/dist/castlabs-ui-editor.common.js.map +1 -1
- package/dist/castlabs-ui-editor.css +1 -1
- package/dist/castlabs-ui-editor.umd.js +4 -4
- package/dist/castlabs-ui-editor.umd.js.map +1 -1
- package/dist/castlabs-ui.common.js +3 -3
- package/dist/castlabs-ui.common.js.map +1 -1
- package/dist/castlabs-ui.core.js +13 -7
- package/dist/castlabs-ui.css +1 -1
- package/dist/castlabs-ui.module.js +13 -7
- package/dist/castlabs-ui.umd.js +4 -4
- package/dist/castlabs-ui.umd.js.map +1 -1
- package/package.json +10 -10
- package/src/components/form/ClFieldCheck/style.scss +1 -23
- package/src/components/form/ClFieldDateTime/style.scss +15 -0
- package/src/components/form/ClFieldGroup/style.scss +7 -18
- package/src/components/form/ClFieldRadio/style.scss +39 -0
- package/src/styles/layout/meta.scss +1 -1
- package/src/styles/ui.scss +2 -0
- package/types/index.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@castlabs/ui",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.24.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.",
|
|
@@ -42,23 +42,23 @@
|
|
|
42
42
|
"simplebar": "6.3.3"
|
|
43
43
|
},
|
|
44
44
|
"optionalDependencies": {
|
|
45
|
-
"@rollup/rollup-linux-x64-gnu": "4.62.
|
|
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.
|
|
51
|
+
"@types/node": "26.1.0",
|
|
52
52
|
"@vitejs/plugin-vue": "6.0.7",
|
|
53
|
-
"@vitest/eslint-plugin": "1.6.
|
|
53
|
+
"@vitest/eslint-plugin": "1.6.21",
|
|
54
54
|
"@vue/eslint-config-prettier": "10.2.0",
|
|
55
|
-
"@vue/eslint-config-typescript": "14.
|
|
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
|
|
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.
|
|
78
|
-
"vitest": "4.1.
|
|
79
|
-
"vue-tsc": "3.3.
|
|
80
|
-
"vue": "3.5.
|
|
77
|
+
"vite": "8.1.3",
|
|
78
|
+
"vitest": "4.1.10",
|
|
79
|
+
"vue-tsc": "3.3.6",
|
|
80
|
+
"vue": "3.5.39"
|
|
81
81
|
},
|
|
82
82
|
"overrides": {
|
|
83
83
|
"glob": "^13"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/// @access public
|
|
4
4
|
////
|
|
5
5
|
|
|
6
|
-
// This file defines castlabs' checkboxes
|
|
6
|
+
// This file defines castlabs' checkboxes buttons
|
|
7
7
|
|
|
8
8
|
$cl-url-prefix: '' !default;
|
|
9
9
|
$cl-url-postfix: '' !default;
|
|
@@ -64,28 +64,6 @@ $form-check-background: $color-ci-eggshell;
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
&[type='radio'] {
|
|
68
|
-
background-color: $color-empty;
|
|
69
|
-
border: $form-field-border;
|
|
70
|
-
margin-top: 0.2em;
|
|
71
|
-
|
|
72
|
-
&:checked {
|
|
73
|
-
background-color: $color-checked;
|
|
74
|
-
background-image: none; // remove BS dot
|
|
75
|
-
border-color: $color-checked;
|
|
76
|
-
|
|
77
|
-
&.disabled,
|
|
78
|
-
&:disabled {
|
|
79
|
-
border-color: $color-disabled;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&:disabled,
|
|
84
|
-
&.disabled {
|
|
85
|
-
background-color: $color-ci-haze;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
67
|
&:focus-visible {
|
|
90
68
|
@include cl-color-focus-outline(var(--cl-color-text), 2px);
|
|
91
69
|
}
|
|
@@ -5,30 +5,18 @@
|
|
|
5
5
|
align-items: center;
|
|
6
6
|
display: flex;
|
|
7
7
|
|
|
8
|
-
>
|
|
9
|
-
margin-
|
|
10
|
-
}
|
|
8
|
+
> * {
|
|
9
|
+
margin-left: $spacing-small;
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
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
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group components
|
|
3
|
+
/// @access public
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
// This file defines castlabs' radio buttons
|
|
7
|
+
|
|
8
|
+
@use '../../../styles/global' as *;
|
|
9
|
+
|
|
10
|
+
// hint: see also vendors/bootstrap.scss for the actual Bootstrap imports
|
|
11
|
+
|
|
12
|
+
.form-check {
|
|
13
|
+
.form-check-input {
|
|
14
|
+
$color-empty: var(--cl-color-input-background);
|
|
15
|
+
$color-checked: var(--cl-color-text);
|
|
16
|
+
|
|
17
|
+
&[type='radio'] {
|
|
18
|
+
background-color: $color-empty;
|
|
19
|
+
border: $form-field-border;
|
|
20
|
+
margin-top: 0.2em;
|
|
21
|
+
|
|
22
|
+
&:checked {
|
|
23
|
+
background-color: $color-checked;
|
|
24
|
+
background-image: none; // remove BS dot
|
|
25
|
+
border-color: $color-checked;
|
|
26
|
+
|
|
27
|
+
&.disabled,
|
|
28
|
+
&:disabled {
|
|
29
|
+
border-color: $color-disabled;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:disabled,
|
|
34
|
+
&.disabled {
|
|
35
|
+
background-color: $color-ci-haze;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
package/src/styles/ui.scss
CHANGED
|
@@ -62,9 +62,11 @@ $castlabs-ui-asset-postfix: '' !default;
|
|
|
62
62
|
$cl-url-prefix: $castlabs-ui-asset-prefix,
|
|
63
63
|
$cl-url-postfix: $castlabs-ui-asset-postfix
|
|
64
64
|
);
|
|
65
|
+
@use '../components/form/ClFieldDateTime/style' as *;
|
|
65
66
|
@use '../components/form/ClFieldFile/style' as *;
|
|
66
67
|
@use '../components/form/ClFieldGroup/style' as *;
|
|
67
68
|
@use '../components/form/ClFieldInput/style' as *;
|
|
69
|
+
@use '../components/form/ClFieldRadio/style' as *;
|
|
68
70
|
@use '../components/form/ClFieldSelect/style' as * with (
|
|
69
71
|
$cl-url-prefix: $castlabs-ui-asset-prefix,
|
|
70
72
|
$cl-url-postfix: $castlabs-ui-asset-postfix
|
package/types/index.d.ts
CHANGED
|
@@ -11,7 +11,9 @@ export const ClCookieBanner: DefineComponent
|
|
|
11
11
|
export const ClDropzone: DefineComponent
|
|
12
12
|
export const ClField: DefineComponent
|
|
13
13
|
export const ClFieldCheck: DefineComponent
|
|
14
|
+
export const ClFieldDateTime: DefineComponent
|
|
14
15
|
export const ClFieldGroup: DefineComponent
|
|
16
|
+
export const ClFieldRadio: DefineComponent
|
|
15
17
|
export const ClIconotron: DefineComponent
|
|
16
18
|
export const ClInfo: DefineComponent
|
|
17
19
|
export const ClMockRouterLink: DefineComponent
|