srcdev-nuxt-forms 2.1.31 → 2.1.32
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/assets/styles/forms/themes/_error.css +2 -0
- package/assets/styles/forms/themes/_ghost.css +2 -0
- package/assets/styles/forms/themes/_primary.css +2 -0
- package/assets/styles/forms/themes/_secondary.css +2 -0
- package/assets/styles/forms/themes/_success.css +2 -0
- package/assets/styles/forms/themes/_tertiary.css +2 -0
- package/assets/styles/forms/themes/_warning.css +2 -0
- package/components/forms/toggle-switch/ToggleSwitchCore.vue +3 -5
- package/package.json +1 -1
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
--theme-form-toggle-outline: 1px solid light-dark(var(--red-12), var(--red-12));
|
|
37
37
|
--theme-form-toggle-symbol-off: var(--orange-12);
|
|
38
38
|
--theme-form-toggle-symbol-on: var(--gray-12);
|
|
39
|
+
--theme-form-toggle-icon-stroke-colour-off: var(--gray-1);
|
|
40
|
+
--theme-form-toggle-icon-stroke-colour-on: var(--gray-1);
|
|
39
41
|
|
|
40
42
|
/*
|
|
41
43
|
* Checkbox as button
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
--theme-form-toggle-outline: 1px solid light-dark(var(--gray-12), var(--gray-12));
|
|
37
37
|
--theme-form-toggle-symbol-off: var(--gray-4);
|
|
38
38
|
--theme-form-toggle-symbol-on: var(--gray-12);
|
|
39
|
+
--theme-form-toggle-icon-stroke-colour-off: var(--gray-1);
|
|
40
|
+
--theme-form-toggle-icon-stroke-colour-on: var(--gray-1);
|
|
39
41
|
|
|
40
42
|
/*
|
|
41
43
|
* Checkbox as button
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
--theme-form-toggle-outline: 1px solid light-dark(var(--blue-12), var(--blue-12));
|
|
37
37
|
--theme-form-toggle-symbol-off: var(--blue-7);
|
|
38
38
|
--theme-form-toggle-symbol-on: var(--gray-12);
|
|
39
|
+
--theme-form-toggle-icon-stroke-colour-off: var(--gray-1);
|
|
40
|
+
--theme-form-toggle-icon-stroke-colour-on: var(--gray-1);
|
|
39
41
|
|
|
40
42
|
/*
|
|
41
43
|
* Checkbox as button
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
--theme-form-toggle-outline: 1px solid light-dark(var(--gray-12), var(--gray-12));
|
|
37
37
|
--theme-form-toggle-symbol-off: var(--gray-4);
|
|
38
38
|
--theme-form-toggle-symbol-on: var(--gray-12);
|
|
39
|
+
--theme-form-toggle-icon-stroke-colour-off: var(--gray-1);
|
|
40
|
+
--theme-form-toggle-icon-stroke-colour-on: var(--gray-1);
|
|
39
41
|
|
|
40
42
|
/*
|
|
41
43
|
* Checkbox as button
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
--theme-form-toggle-outline: 1px solid light-dark(var(--green-12), var(--green-12));
|
|
37
37
|
--theme-form-toggle-symbol-off: var(--green-4);
|
|
38
38
|
--theme-form-toggle-symbol-on: var(--green-12);
|
|
39
|
+
--theme-form-toggle-icon-stroke-colour-off: var(--gray-1);
|
|
40
|
+
--theme-form-toggle-icon-stroke-colour-on: var(--gray-1);
|
|
39
41
|
|
|
40
42
|
/*
|
|
41
43
|
* Checkbox as button
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
--theme-form-toggle-outline: 1px solid light-dark(var(--gray-12), var(--gray-12));
|
|
37
37
|
--theme-form-toggle-symbol-off: var(--gray-4);
|
|
38
38
|
--theme-form-toggle-symbol-on: var(--gray-12);
|
|
39
|
+
--theme-form-toggle-icon-stroke-colour-off: var(--gray-1);
|
|
40
|
+
--theme-form-toggle-icon-stroke-colour-on: var(--gray-1);
|
|
39
41
|
|
|
40
42
|
/*
|
|
41
43
|
* Checkbox as button
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
--theme-form-toggle-outline: 1px solid light-dark(var(--orange-12), var(--orange-12));
|
|
37
37
|
--theme-form-toggle-symbol-off: var(--orange-12);
|
|
38
38
|
--theme-form-toggle-symbol-on: var(--gray-12);
|
|
39
|
+
--theme-form-toggle-icon-stroke-colour-off: var(--gray-1);
|
|
40
|
+
--theme-form-toggle-icon-stroke-colour-on: var(--gray-1);
|
|
39
41
|
|
|
40
42
|
/*
|
|
41
43
|
* Checkbox as button
|
|
@@ -190,22 +190,20 @@ const inputId = computed(() => `toggle-sitch-${id}`);
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
.symbol-icon {
|
|
193
|
-
transition:
|
|
193
|
+
transition: var(--_transition-duration);
|
|
194
194
|
|
|
195
195
|
&.icon-on {
|
|
196
|
+
color: var(--theme-form-toggle-icon-stroke-colour-on);
|
|
196
197
|
opacity: 0;
|
|
197
198
|
}
|
|
198
199
|
&.icon-off {
|
|
200
|
+
color: var(--theme-form-toggle-icon-stroke-colour-off);
|
|
199
201
|
opacity: 1;
|
|
200
202
|
}
|
|
201
203
|
}
|
|
202
204
|
}
|
|
203
205
|
}
|
|
204
206
|
|
|
205
|
-
/* input:checked + .symbol-wrapper .symbol {
|
|
206
|
-
background-color: var(--theme-form-toggle-bg-on);
|
|
207
|
-
} */
|
|
208
|
-
|
|
209
207
|
input:focus-visible + .symbol-wrapper {
|
|
210
208
|
box-shadow: var(--theme-form-focus-box-shadow);
|
|
211
209
|
}
|
package/package.json
CHANGED