vueless 1.3.9-beta.15 → 1.3.9-beta.16

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "1.3.9-beta.15",
3
+ "version": "1.3.9-beta.16",
4
4
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
5
5
  "author": "Johnny Grid <hello@vueless.com> (https://vueless.com)",
6
6
  "homepage": "https://vueless.com",
@@ -57,7 +57,7 @@
57
57
  "@vue/eslint-config-typescript": "^14.6.0",
58
58
  "@vue/test-utils": "^2.4.6",
59
59
  "@vue/tsconfig": "^0.7.0",
60
- "@vueless/storybook": "^1.4.9",
60
+ "@vueless/storybook": "^1.4.10",
61
61
  "eslint": "^9.32.0",
62
62
  "eslint-plugin-storybook": "^10.0.2",
63
63
  "eslint-plugin-vue": "^10.3.0",
@@ -121,10 +121,6 @@ function onChange() {
121
121
  emit("input", newModelValue);
122
122
  }
123
123
 
124
- function onIconClick() {
125
- document.getElementById(elementId)?.click();
126
- }
127
-
128
124
  /**
129
125
  * Get element / nested component attributes for each config token ✨
130
126
  * Applies: `class`, `config`, redefined default `props` and dev `vl-...` attributes.
@@ -185,10 +181,10 @@ const {
185
181
  @change="onChange"
186
182
  />
187
183
 
188
- <div
184
+ <label
189
185
  v-if="isChecked"
190
186
  v-bind="partial ? partiallyCheckedAttrs : checkedAttrs"
191
- @click="onIconClick"
187
+ :for="elementId"
192
188
  >
193
189
  <UIcon
194
190
  v-if="partial"
@@ -198,7 +194,7 @@ const {
198
194
  />
199
195
 
200
196
  <UIcon v-else :name="config.defaults.checkedIcon" color="inherit" v-bind="checkedIconAttrs" />
201
- </div>
197
+ </label>
202
198
 
203
199
  <template #bottom>
204
200
  <!-- @slot Use it to add something below the checkbox. -->