@likable-hair/svelte 0.0.9 → 0.0.10

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.
@@ -13,7 +13,6 @@ $: cssVariables = Object.entries({
13
13
  return `${css}${key}: ${value};`;
14
14
  }, '');
15
15
  import Icon from '../media/Icon.svelte';
16
- import '$lib/common/tailwind.css';
17
16
  </script>
18
17
 
19
18
  <div
@@ -1,5 +1,4 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import '$lib/common/tailwind.css';
3
2
  declare const __propDef: {
4
3
  props: {
5
4
  type?: 'default' | 'text' | 'icon';
package/media/Icon.svelte CHANGED
@@ -1,15 +1,7 @@
1
1
  <script >export let name, size = 15, color = '';
2
2
  let clazz = '';
3
3
  export { clazz as class };
4
- $: cssVariables = Object.entries({
5
- '--size': size + 'pt',
6
- '--color': color
7
- }).filter(([key]) => key.startsWith('--'))
8
- .reduce((css, [key, value]) => {
9
- return `${css}${key}: ${value};`;
10
- }, '');
11
4
  import '../common/materialDesign.css';
12
- import '$lib/common/tailwind.css';
13
5
  </script>
14
6
 
15
7
  <style>
@@ -20,7 +12,8 @@ import '$lib/common/tailwind.css';
20
12
  </style>
21
13
 
22
14
  <span
23
- style={cssVariables}
15
+ style:font-size={size + 'pt'}
16
+ style:color={color}
24
17
  class="icon mdi {name} {clazz}"
25
18
  ></span>
26
19
 
@@ -1,6 +1,5 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  import '../common/materialDesign.css';
3
- import '$lib/common/tailwind.css';
4
3
  declare const __propDef: {
5
4
  props: {
6
5
  name: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@likable-hair/svelte",
3
3
  "description": "A Svelte component for likablehair",
4
- "version": "0.0.9",
4
+ "version": "0.0.10",
5
5
  "devDependencies": {
6
6
  "@sveltejs/adapter-auto": "next",
7
7
  "@sveltejs/kit": "next",