@cypress-design/vue-checkbox 0.4.0 → 0.4.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/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @cypress-design/vue-checkbox
2
2
 
3
+ ## 0.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#71](https://github.com/cypress-io/cypress-design/pull/71) [`379079e`](https://github.com/cypress-io/cypress-design/commit/379079e08802b6c3fae243925e3b9e8881e8ef54) Thanks [@elevatebart](https://github.com/elevatebart)! - allow users to click the checkbox instead of the label
8
+
9
+ ## 0.4.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#68](https://github.com/cypress-io/cypress-design/pull/68) [`8c577fb`](https://github.com/cypress-io/cypress-design/commit/8c577fb0c6a0411cf8218dfe78281834df3d6f13) Thanks [@elevatebart](https://github.com/elevatebart)! - feat: publish `.mjs` files for esm intead of `.js`
14
+
15
+ - Updated dependencies [[`8c577fb`](https://github.com/cypress-io/cypress-design/commit/8c577fb0c6a0411cf8218dfe78281834df3d6f13)]:
16
+ - @cypress-design/vue-icon@0.5.2
17
+
18
+ ## 0.4.1
19
+
20
+ ### Patch Changes
21
+
22
+ - [`2afa4d5`](https://github.com/cypress-io/cypress-design/commit/2afa4d54a2373692f82bee35ae40446bc9bb3f91) Thanks [@elevatebart](https://github.com/elevatebart)! - avoid duplicate ids in checkboxes
23
+
3
24
  ## 0.4.0
4
25
 
5
26
  ### Minor Changes
package/Checkbox.vue CHANGED
@@ -37,19 +37,17 @@ const props = withDefaults(
37
37
  disabled?: boolean
38
38
  modelValue?: boolean
39
39
  /**
40
- * Label for the checkbox.
40
+ * Label for the checkbox.
41
41
  * It is very important to set this to make the checkbox accessible.
42
42
  */
43
43
  label?: string
44
44
  }>(),
45
45
  {
46
- id: uid(),
46
+ id: () => uid(),
47
47
  color: 'indigo',
48
48
  }
49
49
  )
50
50
 
51
-
52
-
53
51
  const localChecked = ref(props.modelValue || props.checked)
54
52
 
55
53
  const emit = defineEmits<{
@@ -66,26 +64,41 @@ const checkboxClasses = computed(() => [
66
64
  props.disabled
67
65
  ? 'border-gray-200 bg-gray-100'
68
66
  : localChecked.value
69
- ? {
67
+ ? {
70
68
  'border-indigo-500 bg-indigo-400': props.color === 'indigo',
71
69
  'border-jade-500 bg-jade-400': props.color === 'jade',
72
70
  'border-red-500 bg-red-400': props.color === 'red',
73
71
  }
74
- : 'border-gray-200 bg-white']
75
- )
76
-
72
+ : 'border-gray-200 bg-white',
73
+ ])
77
74
  </script>
78
75
 
79
76
  <template>
80
77
  <div class="relative flex items-center">
81
- <input :id="id" class="absolute inset-0 w-0 h-0 opacity-0" :name="name || id" type="checkbox" @change="updated"
82
- :disabled="props.disabled" :checked="localChecked" />
83
- <IconCheckmarkSmall v-if="localChecked" strokeColor="white" class="absolute" />
84
- <span :class="checkboxClasses" />
85
- <label class="block" :for="id">
78
+ <input
79
+ :id="id"
80
+ class="absolute inset-0 w-0 h-0 opacity-0"
81
+ :name="name || id"
82
+ type="checkbox"
83
+ @change="updated"
84
+ :disabled="props.disabled"
85
+ :checked="localChecked"
86
+ />
87
+ <label className="flex items-center" :for="id">
88
+ <IconCheckmarkSmall
89
+ v-if="localChecked"
90
+ strokeColor="white"
91
+ class="absolute"
92
+ />
93
+ <span :class="checkboxClasses" />
86
94
  <slot name="label">
87
- <span v-if="label"
88
- :class="['ml-2 text-16px leading-normal font-light select-none', disabled ? 'text-gray-500' : 'text-gray-800']">
95
+ <span
96
+ v-if="label"
97
+ :class="[
98
+ 'ml-2 text-16px leading-normal font-light select-none',
99
+ disabled ? 'text-gray-500' : 'text-gray-800',
100
+ ]"
101
+ >
89
102
  {{ label }}
90
103
  </span>
91
104
  </slot>
@@ -5,7 +5,7 @@ import { mount } from 'cypress/vue'
5
5
  import Checkbox from './Checkbox.vue'
6
6
 
7
7
  describe('<Checkbox />', () => {
8
- it('renders', () => {
8
+ it('changes when the label is clicked', () => {
9
9
  mount(() => {
10
10
  return (
11
11
  <Checkbox
@@ -22,6 +22,23 @@ describe('<Checkbox />', () => {
22
22
  cy.get('input[type="checkbox"]').should('not.be.checked')
23
23
  })
24
24
 
25
+ it('changes when checkbox is clicked', () => {
26
+ mount(() => {
27
+ return (
28
+ <Checkbox
29
+ label="Welcome guide settings"
30
+ id="welcome-opt-out"
31
+ checked
32
+ class="m-2 px-2 py-1 border-1 border-gray-300 rounded"
33
+ />
34
+ )
35
+ })
36
+
37
+ cy.get('input[type="checkbox"]').should('be.checked')
38
+ cy.get('svg').click()
39
+ cy.get('input[type="checkbox"]').should('not.be.checked')
40
+ })
41
+
25
42
  it('renders vModel', () => {
26
43
  const isChecked = ref(false)
27
44
  mount(() => {
@@ -1,4 +1,156 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{
6
+ id: string;
7
+ color: 'red' | 'indigo' | 'jade';
8
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ /**
10
+ * A unique identifier for the checkbox on the whole page.
11
+ * It will be used to give match label with input for a11y.
12
+ */
13
+ id?: string | undefined;
14
+ /**
15
+ * Name attribute of the <input type="checkbox"/>.
16
+ */
17
+ name?: string | undefined;
18
+ /**
19
+ * Is the checkbox checked when it is first rendered.
20
+ */
21
+ checked?: boolean | undefined;
22
+ /**
23
+ * The color of the background in the checkbox.
24
+ * The checkmark will always be white.
25
+ */
26
+ color?: "indigo" | "red" | "jade" | undefined;
27
+ /**
28
+ * If the checkbox is disabled, it will not be clickable.
29
+ */
30
+ disabled?: boolean | undefined;
31
+ modelValue?: boolean | undefined;
32
+ /**
33
+ * Label for the checkbox.
34
+ * It is very important to set this to make the checkbox accessible.
35
+ */
36
+ label?: string | undefined;
37
+ }>, {
38
+ id: () => string;
39
+ color: string;
40
+ }>>> & {
41
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
42
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "id" | "color">;
43
+ $attrs: {
44
+ [x: string]: unknown;
45
+ };
46
+ $refs: {
47
+ [x: string]: unknown;
48
+ };
49
+ $slots: Readonly<{
50
+ [name: string]: import("vue").Slot | undefined;
51
+ }>;
52
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
53
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
54
+ $emit: (event: "update:modelValue", value: boolean) => void;
55
+ $el: any;
56
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
57
+ /**
58
+ * A unique identifier for the checkbox on the whole page.
59
+ * It will be used to give match label with input for a11y.
60
+ */
61
+ id?: string | undefined;
62
+ /**
63
+ * Name attribute of the <input type="checkbox"/>.
64
+ */
65
+ name?: string | undefined;
66
+ /**
67
+ * Is the checkbox checked when it is first rendered.
68
+ */
69
+ checked?: boolean | undefined;
70
+ /**
71
+ * The color of the background in the checkbox.
72
+ * The checkmark will always be white.
73
+ */
74
+ color?: "indigo" | "red" | "jade" | undefined;
75
+ /**
76
+ * If the checkbox is disabled, it will not be clickable.
77
+ */
78
+ disabled?: boolean | undefined;
79
+ modelValue?: boolean | undefined;
80
+ /**
81
+ * Label for the checkbox.
82
+ * It is very important to set this to make the checkbox accessible.
83
+ */
84
+ label?: string | undefined;
85
+ }>, {
86
+ id: () => string;
87
+ color: string;
88
+ }>>> & {
89
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
90
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
91
+ "update:modelValue": (value: boolean) => void;
92
+ }, string, {
93
+ id: string;
94
+ color: 'red' | 'indigo' | 'jade';
95
+ }> & {
96
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
97
+ created?: ((() => void) | (() => void)[]) | undefined;
98
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
99
+ mounted?: ((() => void) | (() => void)[]) | undefined;
100
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
101
+ updated?: ((() => void) | (() => void)[]) | undefined;
102
+ activated?: ((() => void) | (() => void)[]) | undefined;
103
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
104
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
105
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
106
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
107
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
108
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
109
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
110
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
111
+ };
112
+ $forceUpdate: () => void;
113
+ $nextTick: typeof import("vue").nextTick;
114
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
115
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
116
+ /**
117
+ * A unique identifier for the checkbox on the whole page.
118
+ * It will be used to give match label with input for a11y.
119
+ */
120
+ id?: string | undefined;
121
+ /**
122
+ * Name attribute of the <input type="checkbox"/>.
123
+ */
124
+ name?: string | undefined;
125
+ /**
126
+ * Is the checkbox checked when it is first rendered.
127
+ */
128
+ checked?: boolean | undefined;
129
+ /**
130
+ * The color of the background in the checkbox.
131
+ * The checkmark will always be white.
132
+ */
133
+ color?: "indigo" | "red" | "jade" | undefined;
134
+ /**
135
+ * If the checkbox is disabled, it will not be clickable.
136
+ */
137
+ disabled?: boolean | undefined;
138
+ modelValue?: boolean | undefined;
139
+ /**
140
+ * Label for the checkbox.
141
+ * It is very important to set this to make the checkbox accessible.
142
+ */
143
+ label?: string | undefined;
144
+ }>, {
145
+ id: () => string;
146
+ color: string;
147
+ }>>> & {
148
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
149
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
150
+ __isFragment?: undefined;
151
+ __isTeleport?: undefined;
152
+ __isSuspense?: undefined;
153
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
154
  /**
3
155
  * A unique identifier for the checkbox on the whole page.
4
156
  * It will be used to give match label with input for a11y.
@@ -28,48 +180,20 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
28
180
  */
29
181
  label?: string | undefined;
30
182
  }>, {
31
- id: string;
32
- color: string;
33
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
- "update:modelValue": (value: boolean) => void;
35
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
36
- /**
37
- * A unique identifier for the checkbox on the whole page.
38
- * It will be used to give match label with input for a11y.
39
- */
40
- id?: string | undefined;
41
- /**
42
- * Name attribute of the <input type="checkbox"/>.
43
- */
44
- name?: string | undefined;
45
- /**
46
- * Is the checkbox checked when it is first rendered.
47
- */
48
- checked?: boolean | undefined;
49
- /**
50
- * The color of the background in the checkbox.
51
- * The checkmark will always be white.
52
- */
53
- color?: "indigo" | "red" | "jade" | undefined;
54
- /**
55
- * If the checkbox is disabled, it will not be clickable.
56
- */
57
- disabled?: boolean | undefined;
58
- modelValue?: boolean | undefined;
59
- /**
60
- * Label for the checkbox.
61
- * It is very important to set this to make the checkbox accessible.
62
- */
63
- label?: string | undefined;
64
- }>, {
65
- id: string;
183
+ id: () => string;
66
184
  color: string;
67
185
  }>>> & {
68
186
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
69
- }, {
187
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
188
+ "update:modelValue": (value: boolean) => void;
189
+ }, string, {
70
190
  id: string;
71
191
  color: 'red' | 'indigo' | 'jade';
72
- }>;
192
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
193
+ $slots: {
194
+ label: (_: {}) => any;
195
+ };
196
+ });
73
197
  export default _default;
74
198
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
75
199
  declare type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.vue.d.ts","sourceRoot":"","sources":["../Checkbox.vue.ts"],"names":[],"mappings":";IAiFI;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;OAEG;;;IAGH;;;OAGG;;;;;;;;IA1BH;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;OAEG;;;IAGH;;;OAGG;;;;;;;;QAtBE,MAAM;WAaH,KAAK,GAAG,QAAQ,GAAG,MAAM;;AAvFrC,wBAoJK;AACL,aAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,aAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,aAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE5B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG;QACzD,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,GAAG,CAAC,CAAC,CAAC,CAAC;CACR,CAAC"}
1
+ {"version":3,"file":"Checkbox.vue.d.ts","sourceRoot":"","sources":["../Checkbox.vue.ts"],"names":[],"mappings":";;;;;gBAkFS,MAAM;mBAaH,KAAK,GAAG,QAAQ,GAAG,MAAM;;YAjBjC;;;eAGG;;YAEH;;eAEG;;YAEH;;eAEG;;YAEH;;;eAGG;;YAEH;;eAEG;;;YAGH;;;eAGG;;;;;;;;;;;;;;;;;;;;;;YA1BH;;;eAGG;;YAEH;;eAEG;;YAEH;;eAEG;;YAEH;;;eAGG;;YAEH;;eAEG;;;YAGH;;;eAGG;;;;;;;;;;gBAtBE,MAAM;mBAaH,KAAK,GAAG,QAAQ,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;QAjBjC;;;WAGG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;;WAGG;;QAEH;;WAEG;;;QAGH;;;WAGG;;;;;;;;;;;;IA1BH;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;OAEG;;;IAGH;;;OAGG;;;;;;;;;;QAtBE,MAAM;WAaH,KAAK,GAAG,QAAQ,GAAG,MAAM;;;;;;AApFrC,wBAgHK;AACL,aAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,aAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,aAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE3B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG;QACzD,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,GAAG,CAAC,CAAC,CAAC,CAAC;CACR,CAAC"}
@@ -1,4 +1,4 @@
1
- import { h as k, defineComponent as p, ref as f, computed as y, openBlock as i, createElementBlock as b, createElementVNode as s, createBlock as C, unref as m, 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 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";
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, i) => (S.includes(i) || (u[i] = a[i]), u), {}), r = {
13
13
  width: o,
14
14
  height: o,
15
15
  fill: "none",
@@ -30,13 +30,13 @@ const j = ({
30
30
  compiledClasses: o
31
31
  }));
32
32
  }, B = { class: "relative flex items-center" }, O = ["id", "name", "disabled", "checked"], V = ["for"];
33
- function E() {
33
+ function N() {
34
34
  return String(Date.now().toString(32) + Math.random().toString(16)).replace(/\./g, "");
35
35
  }
36
36
  const D = /* @__PURE__ */ p({
37
37
  __name: "Checkbox",
38
38
  props: {
39
- id: { default: E() },
39
+ id: { default: () => N() },
40
40
  name: null,
41
41
  checked: { type: Boolean },
42
42
  color: { default: "indigo" },
@@ -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(), b("div", B, [
62
- s("input", {
61
+ return (n, r) => (s(), m("div", B, [
62
+ d("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,22 +68,25 @@ const D = /* @__PURE__ */ p({
68
68
  disabled: o.disabled,
69
69
  checked: l.value
70
70
  }, null, 40, O),
71
- l.value ? (i(), C(m(z), {
72
- key: 0,
73
- strokeColor: "white",
74
- class: "absolute"
75
- })) : h("", !0),
76
- s("span", {
77
- class: g(m(a))
78
- }, null, 2),
79
- s("label", {
80
- class: "block",
71
+ d("label", {
72
+ className: "flex items-center",
81
73
  for: e.id
82
74
  }, [
75
+ l.value ? (s(), C(b(z), {
76
+ key: 0,
77
+ strokeColor: "white",
78
+ class: "absolute"
79
+ })) : h("", !0),
80
+ d("span", {
81
+ class: g(b(a))
82
+ }, null, 2),
83
83
  v(n.$slots, "label", {}, () => [
84
- e.label ? (i(), b("span", {
84
+ e.label ? (s(), m("span", {
85
85
  key: 0,
86
- class: g(["ml-2 text-16px leading-normal font-light select-none", e.disabled ? "text-gray-500" : "text-gray-800"])
86
+ class: g([
87
+ "ml-2 text-16px leading-normal font-light select-none",
88
+ e.disabled ? "text-gray-500" : "text-gray-800"
89
+ ])
87
90
  }, x(e.label), 3)) : h("", !0)
88
91
  ])
89
92
  ], 8, V)
@@ -93,6 +96,6 @@ const D = /* @__PURE__ */ p({
93
96
  export {
94
97
  D as default
95
98
  };
96
- /* <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"> */
97
99
 
98
- //# sourceMappingURL=index.es.js.map
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"> */
101
+ //# sourceMappingURL=index.es.mjs.map