@cypress-design/vue-checkbox 0.4.3 → 0.4.4
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/CHANGELOG.md +6 -0
- package/Checkbox.vue +1 -1
- package/dist/index.es.mjs +10 -10
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @cypress-design/vue-checkbox
|
|
2
2
|
|
|
3
|
+
## 0.4.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#101](https://github.com/cypress-io/cypress-design/pull/101) [`1630e4c`](https://github.com/cypress-io/cypress-design/commit/1630e4c4200944cf6414cee9e92dcce6b4d8a576) Thanks [@mapsandapps](https://github.com/mapsandapps)! - Fix styles for Checkbox
|
|
8
|
+
|
|
3
9
|
## 0.4.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/Checkbox.vue
CHANGED
package/dist/index.es.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as k, defineComponent as p, ref as f, computed as y, openBlock as
|
|
1
|
+
import { h as k, defineComponent as p, ref as f, computed as y, openBlock as i, createElementBlock as m, createElementVNode as s, createBlock as C, unref as b, createCommentVNode as h, normalizeClass as g, renderSlot as v, toDisplayString as x } from "vue";
|
|
2
2
|
import * as w from "@cypress-design/icon-registry";
|
|
3
3
|
import { ICON_COLOR_PROP_NAMES as S } from "@cypress-design/icon-registry";
|
|
4
4
|
const j = ({
|
|
@@ -9,7 +9,7 @@ const j = ({
|
|
|
9
9
|
interactiveColorsOnGroup: c,
|
|
10
10
|
...a
|
|
11
11
|
}) => {
|
|
12
|
-
const n = Object.keys(a).reduce((u,
|
|
12
|
+
const n = Object.keys(a).reduce((u, d) => (S.includes(d) || (u[d] = a[d]), u), {}), r = {
|
|
13
13
|
width: o,
|
|
14
14
|
height: o,
|
|
15
15
|
fill: "none",
|
|
@@ -51,15 +51,15 @@ const D = /* @__PURE__ */ p({
|
|
|
51
51
|
l.value = !l.value, t("update:modelValue", l.value);
|
|
52
52
|
}
|
|
53
53
|
const a = y(() => [
|
|
54
|
-
"block border-1 rounded h-16px w-16px",
|
|
54
|
+
"block border-1 border-solid rounded h-16px w-16px",
|
|
55
55
|
o.disabled ? "border-gray-200 bg-gray-100" : l.value ? {
|
|
56
56
|
"border-indigo-500 bg-indigo-400": o.color === "indigo",
|
|
57
57
|
"border-jade-500 bg-jade-400": o.color === "jade",
|
|
58
58
|
"border-red-500 bg-red-400": o.color === "red"
|
|
59
59
|
} : "border-gray-200 bg-white"
|
|
60
60
|
]);
|
|
61
|
-
return (n, r) => (
|
|
62
|
-
|
|
61
|
+
return (n, r) => (i(), m("div", B, [
|
|
62
|
+
s("input", {
|
|
63
63
|
id: e.id,
|
|
64
64
|
class: "absolute inset-0 w-0 h-0 opacity-0",
|
|
65
65
|
name: e.name || e.id,
|
|
@@ -68,20 +68,20 @@ const D = /* @__PURE__ */ p({
|
|
|
68
68
|
disabled: o.disabled,
|
|
69
69
|
checked: l.value
|
|
70
70
|
}, null, 40, O),
|
|
71
|
-
|
|
71
|
+
s("label", {
|
|
72
72
|
className: "flex items-center",
|
|
73
73
|
for: e.id
|
|
74
74
|
}, [
|
|
75
|
-
l.value ? (
|
|
75
|
+
l.value ? (i(), C(b(z), {
|
|
76
76
|
key: 0,
|
|
77
77
|
strokeColor: "white",
|
|
78
78
|
class: "absolute"
|
|
79
79
|
})) : h("", !0),
|
|
80
|
-
|
|
80
|
+
s("span", {
|
|
81
81
|
class: g(b(a))
|
|
82
82
|
}, null, 2),
|
|
83
83
|
v(n.$slots, "label", {}, () => [
|
|
84
|
-
e.label ? (
|
|
84
|
+
e.label ? (i(), m("span", {
|
|
85
85
|
key: 0,
|
|
86
86
|
class: g([
|
|
87
87
|
"ml-2 text-16px leading-normal font-light select-none",
|
|
@@ -97,5 +97,5 @@ export {
|
|
|
97
97
|
D as default
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
/* <windicss-keep class="block border-1 rounded h-16px w-16px border-gray-200 bg-gray-100 border-indigo-500 bg-indigo-400 border-jade-500 bg-jade-400 border-red-500 bg-red-400 bg-white relative flex items-center absolute inset-0 w-0 h-0 opacity-0 ml-2 text-16px leading-normal font-light select-none text-gray-500 text-gray-800 icon-dark-white"> */
|
|
100
|
+
/* <windicss-keep class="block border-1 border-solid rounded h-16px w-16px border-gray-200 bg-gray-100 border-indigo-500 bg-indigo-400 border-jade-500 bg-jade-400 border-red-500 bg-red-400 bg-white relative flex items-center absolute inset-0 w-0 h-0 opacity-0 ml-2 text-16px leading-normal font-light select-none text-gray-500 text-gray-800 icon-dark-white"> */
|
|
101
101
|
//# sourceMappingURL=index.es.mjs.map
|