@invopop/popui 0.0.11 → 0.0.12

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.
@@ -160,18 +160,20 @@ function selectRange(to) {
160
160
  <th scope="col" class="bg-white sticky top-0 z-10 rounded-tr-md">
161
161
  {#if !hideSelectAll}
162
162
  <button
163
- class="pl-5 pr-3 h-[40px] flex items-center outline-none"
163
+ class="pl-5 pr-3 h-[40px] flex items-center outline-none group"
164
164
  on:click|stopPropagation={() => {
165
165
  toggleAllSelected(!selectedRows.length)
166
166
  }}
167
167
  >
168
- <InputCheckbox
169
- checked={allChecked}
170
- {indeterminate}
171
- on:change={(event) => {
172
- toggleAllSelected(event.detail)
173
- }}
174
- />
168
+ <div class:invisible={!selectedRows.length} class="group-hover:visible">
169
+ <InputCheckbox
170
+ checked={allChecked}
171
+ {indeterminate}
172
+ on:change={(event) => {
173
+ toggleAllSelected(event.detail)
174
+ }}
175
+ />
176
+ </div>
175
177
  </button>
176
178
  {/if}
177
179
  </th>
@@ -37,17 +37,19 @@ $:
37
37
  {#if selectable}
38
38
  <td>
39
39
  <button
40
- class="pl-5 pr-1.5 h-[40px] flex items-center outline-none"
40
+ class="pl-5 pr-1.5 h-[40px] flex items-center outline-none group"
41
41
  on:click|stopPropagation={() => {
42
42
  dispatch('checked', !checked)
43
43
  }}
44
44
  >
45
- <InputCheckbox
46
- {checked}
47
- on:change={(event) => {
48
- dispatch('checked', event.detail)
49
- }}
50
- />
45
+ <div class:invisible={!checked} class="group-hover:visible">
46
+ <InputCheckbox
47
+ {checked}
48
+ on:change={(event) => {
49
+ dispatch('checked', event.detail)
50
+ }}
51
+ />
52
+ </div>
51
53
  </button>
52
54
  </td>
53
55
  {/if}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@invopop/popui",
3
3
  "license": "MIT",
4
- "version": "0.0.11",
4
+ "version": "0.0.12",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && npm run package",