@cypress-design/vue-checkbox 0.4.3 → 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,20 @@
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
+
12
+ ## 0.4.4
13
+
14
+ ### Patch Changes
15
+
16
+ - [#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
17
+
3
18
  ## 0.4.3
4
19
 
5
20
  ### Patch Changes
package/Checkbox.vue CHANGED
@@ -60,7 +60,7 @@ function updated() {
60
60
  }
61
61
 
62
62
  const checkboxClasses = computed(() => [
63
- 'block border-1 rounded h-16px w-16px',
63
+ 'block border-1 border-solid rounded h-16px w-16px',
64
64
  props.disabled
65
65
  ? 'border-gray-200 bg-gray-100'
66
66
  : localChecked.value
@@ -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 s, createElementBlock as m, createElementVNode as d, 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, i) => (S.includes(i) || (u[i] = a[i]), 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
  }
@@ -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) => (s(), m("div", B, [
62
- d("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
- d("label", {
71
+ i("label", {
72
72
  className: "flex items-center",
73
73
  for: e.id
74
74
  }, [
75
- l.value ? (s(), 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
- d("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 ? (s(), 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",
@@ -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