@cypress-design/vue-checkbox 0.4.4 → 0.4.5

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @cypress-design/vue-checkbox
2
2
 
3
+ ## 0.4.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#105](https://github.com/cypress-io/cypress-design/pull/105) [`2f54f5b`](https://github.com/cypress-io/cypress-design/commit/2f54f5b867b60ba5ce2e40fd38870bd65187ba30) Thanks [@elevatebart](https://github.com/elevatebart)! - checkbox should not contain a div to be added inside an inline only tag (<p>)
8
+
9
+ - Updated dependencies [[`2f54f5b`](https://github.com/cypress-io/cypress-design/commit/2f54f5b867b60ba5ce2e40fd38870bd65187ba30), [`e82d8cb`](https://github.com/cypress-io/cypress-design/commit/e82d8cb60882a379d89f86d1ff7b8f1d5b56ce66)]:
10
+ - @cypress-design/vue-icon@0.12.0
11
+
3
12
  ## 0.4.4
4
13
 
5
14
  ### Patch Changes
package/Checkbox.vue CHANGED
@@ -74,7 +74,7 @@ const checkboxClasses = computed(() => [
74
74
  </script>
75
75
 
76
76
  <template>
77
- <div class="relative flex items-center">
77
+ <span class="block relative flex items-center">
78
78
  <input
79
79
  :id="id"
80
80
  class="absolute inset-0 w-0 h-0 opacity-0"
@@ -103,5 +103,5 @@ const checkboxClasses = computed(() => [
103
103
  </span>
104
104
  </slot>
105
105
  </label>
106
- </div>
106
+ </span>
107
107
  </template>
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 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";
1
+ import { h as k, defineComponent as p, ref as f, computed as y, openBlock as d, createElementBlock as b, createElementVNode as i, createBlock as C, unref as m, 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, d) => (S.includes(d) || (u[d] = a[d]), u), {}), r = {
12
+ const n = Object.keys(a).reduce((u, s) => (S.includes(s) || (u[s] = a[s]), u), {}), r = {
13
13
  width: o,
14
14
  height: o,
15
15
  fill: "none",
@@ -29,7 +29,7 @@ const j = ({
29
29
  body: l,
30
30
  compiledClasses: o
31
31
  }));
32
- }, B = { class: "relative flex items-center" }, O = ["id", "name", "disabled", "checked"], V = ["for"];
32
+ }, B = { class: "block relative flex items-center" }, O = ["id", "name", "disabled", "checked"], V = ["for"];
33
33
  function N() {
34
34
  return String(Date.now().toString(32) + Math.random().toString(16)).replace(/\./g, "");
35
35
  }
@@ -58,8 +58,8 @@ const D = /* @__PURE__ */ p({
58
58
  "border-red-500 bg-red-400": o.color === "red"
59
59
  } : "border-gray-200 bg-white"
60
60
  ]);
61
- return (n, r) => (i(), m("div", B, [
62
- s("input", {
61
+ return (n, r) => (d(), b("span", B, [
62
+ i("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
- s("label", {
71
+ i("label", {
72
72
  className: "flex items-center",
73
73
  for: e.id
74
74
  }, [
75
- l.value ? (i(), C(b(z), {
75
+ l.value ? (d(), C(m(z), {
76
76
  key: 0,
77
77
  strokeColor: "white",
78
78
  class: "absolute"
79
79
  })) : h("", !0),
80
- s("span", {
81
- class: g(b(a))
80
+ i("span", {
81
+ class: g(m(a))
82
82
  }, null, 2),
83
83
  v(n.$slots, "label", {}, () => [
84
- e.label ? (i(), m("span", {
84
+ e.label ? (d(), b("span", {
85
85
  key: 0,
86
86
  class: g([
87
87
  "ml-2 text-16px leading-normal font-light select-none",