spaper 0.7.6 → 0.8.6

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.
@@ -1,9 +1,9 @@
1
1
  {#if isLink || href}
2
- <a {...attr}
3
- class:disabled
2
+ <a class:disabled
4
3
  role="button"
5
4
  href={href ?? 'javascript:void(0);'}
6
- target={external ? '_blank' : '_self'}
5
+ target={external ? '_blank' : null}
6
+ {...attr}
7
7
  on:click>
8
8
  <slot />
9
9
  </a>
@@ -1,15 +1,4 @@
1
- {#if label}
2
- <label>
3
- {label}
4
- <input type="radio"
5
- {value}
6
- {...$$restProps}
7
- bind:group
8
- on:focus
9
- on:blur
10
- on:change />
11
- </label>
12
- {:else}
1
+ <label class="paper-radio">
13
2
  <input type="radio"
14
3
  {value}
15
4
  {...$$restProps}
@@ -17,9 +6,15 @@
17
6
  on:focus
18
7
  on:blur
19
8
  on:change />
20
- {/if}
9
+ <span>{label}</span>
10
+ </label>
21
11
 
22
12
  <script >export let label = '';
23
13
  export let value = '';
24
14
  export let group = '';
25
15
  </script>
16
+
17
+ <style >input[disabled] + span::before, input[disabled] ~ span {
18
+ opacity: 0.5;
19
+ cursor: not-allowed;
20
+ }</style>
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "papercss",
9
9
  "components"
10
10
  ],
11
- "version": "0.7.6",
11
+ "version": "0.8.6",
12
12
  "repository": {
13
13
  "type": "git",
14
14
  "url": "git+https://github.com/Oli8/spaper.git"