framework7-svelte 7.1.2 → 7.1.4

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.
@@ -38,16 +38,26 @@
38
38
  }
39
39
 
40
40
  $: if (themeIcon) {
41
+ classes = {
42
+ icon: true,
43
+ };
41
44
  const parts = themeIcon.split(':');
42
45
  const prop = parts[0];
43
46
  const value = parts[1];
44
47
  if (prop === 'material' || prop === 'f7') {
45
48
  classes['material-icons'] = prop === 'material';
46
49
  classes['f7-icons'] = prop === 'f7';
47
- }
48
-
49
- if (prop === 'icon') {
50
- classes[value] = true;
50
+ if (prop === 'icon') {
51
+ classes[value] = true;
52
+ }
53
+ } else {
54
+ if (themeIcon.includes(':')) {
55
+ themeIcon = themeIcon
56
+ .split(' ')
57
+ .map((el) => el.replace('icon:', ''))
58
+ .join(' ');
59
+ }
60
+ classes[themeIcon] = true;
51
61
  }
52
62
  } else {
53
63
  classes = {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 Svelte 7.1.2
2
+ * Framework7 Svelte 7.1.4
3
3
  * Build full featured iOS & Android apps using Framework7 & Svelte
4
4
  * https://framework7.io/svelte/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: January 18, 2023
10
+ * Released on: February 2, 2023
11
11
  */
12
12
  import Framework7Svelte from './shared/plugin.js';
13
13
  import { f7, f7ready, theme, app } from './shared/f7.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framework7-svelte",
3
- "version": "7.1.2",
3
+ "version": "7.1.4",
4
4
  "description": "Build full featured iOS & Android apps using Framework7 & Svelte",
5
5
  "type": "module",
6
6
  "svelte": "./framework7-svelte.js",