@fiscozen/checkbox 0.1.2 → 0.1.3
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 +4 -4
- package/src/FzCheckbox.vue +11 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiscozen/checkbox",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Design System Checkbox and Checkbox Group component",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"@awesome.me/kit-8137893ad3": "^1.0.65",
|
|
35
35
|
"@fortawesome/fontawesome-svg-core": "^6.5.1",
|
|
36
36
|
"@fortawesome/vue-fontawesome": "^3.0.6",
|
|
37
|
-
"@fiscozen/tsconfig": "^0.1.0",
|
|
38
37
|
"@fiscozen/eslint-config": "^0.1.0",
|
|
39
|
-
"@fiscozen/
|
|
40
|
-
"@fiscozen/
|
|
38
|
+
"@fiscozen/prettier-config": "^0.1.0",
|
|
39
|
+
"@fiscozen/tsconfig": "^0.1.0",
|
|
40
|
+
"@fiscozen/icons": "^0.1.4"
|
|
41
41
|
},
|
|
42
42
|
"license": "MIT",
|
|
43
43
|
"scripts": {
|
package/src/FzCheckbox.vue
CHANGED
|
@@ -54,7 +54,7 @@ const model = defineModel<boolean | (string | number | boolean)[]>({
|
|
|
54
54
|
const emit = defineEmits(["change"]);
|
|
55
55
|
const refCheckbox = ref<HTMLInputElement | null>(null);
|
|
56
56
|
|
|
57
|
-
const staticInputClass = "w-0 h-0 peer";
|
|
57
|
+
const staticInputClass = "w-0 h-0 peer fz-hidden-input";
|
|
58
58
|
const staticLabelClass = `
|
|
59
59
|
flex items-start gap-4 hover:cursor-pointer
|
|
60
60
|
peer-focus:[&_div]:after:border-1
|
|
@@ -137,4 +137,13 @@ onMounted(() => {
|
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
139
|
</script>
|
|
140
|
-
<style scoped
|
|
140
|
+
<style scoped>
|
|
141
|
+
.fz-hidden-input {
|
|
142
|
+
opacity: 0;
|
|
143
|
+
margin:0;
|
|
144
|
+
height:0;
|
|
145
|
+
border:none;
|
|
146
|
+
clip: rect(0 0 0 0);
|
|
147
|
+
clip-path: inset(50%);
|
|
148
|
+
}
|
|
149
|
+
</style>
|