@coyalabs/bts-style 1.3.21 → 1.3.22

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.
@@ -10,7 +10,7 @@
10
10
 
11
11
  /** @typedef {import('../Base/variantTypes.js').BaseContainerVariant} BaseContainerVariant */
12
12
 
13
- /** @type {{ name: string, type: 'file' | 'folder' | 'custom', children?: any[], data?: any, variant?: BaseContainerVariant, suffixIcon?: string, isPending?: boolean }[]} */
13
+ /** @type {{ name: string, type: 'file' | 'folder' | 'custom', children?: any[], data?: any, variant?: BaseContainerVariant, icon?: string, suffixIcon?: string, isPending?: boolean }[]} */
14
14
  export let items = [];
15
15
 
16
16
  /** @type {boolean} */
@@ -331,7 +331,7 @@
331
331
  >
332
332
  <Button
333
333
  theme={item.variant || VARIANT_SECONDARY}
334
- icon={itemIcon}
334
+ icon={item.icon || itemIcon}
335
335
  correctTextOffset={true}
336
336
  actionIconSize="15px"
337
337
  borderRadiusTopLeft={isNested ? '18px' : '25px'}
@@ -6,6 +6,7 @@ type TreeDirectory = SvelteComponent<{
6
6
  children?: any[] | undefined;
7
7
  data?: any;
8
8
  variant?: BaseContainerVariant | undefined;
9
+ icon?: string | undefined;
9
10
  suffixIcon?: string | undefined;
10
11
  isPending?: boolean | undefined;
11
12
  }[] | undefined;
@@ -34,6 +35,7 @@ type TreeDirectory = SvelteComponent<{
34
35
  children?: any[] | undefined;
35
36
  data?: any;
36
37
  variant?: BaseContainerVariant | undefined;
38
+ icon?: string | undefined;
37
39
  suffixIcon?: string | undefined;
38
40
  isPending?: boolean | undefined;
39
41
  };
@@ -56,6 +58,7 @@ declare const TreeDirectory: $$__sveltets_2_IsomorphicComponent<{
56
58
  children?: any[];
57
59
  data?: any;
58
60
  variant?: import("../Base/variantTypes.js").BaseContainerVariant;
61
+ icon?: string;
59
62
  suffixIcon?: string;
60
63
  isPending?: boolean;
61
64
  }[] | undefined;
@@ -84,6 +87,7 @@ declare const TreeDirectory: $$__sveltets_2_IsomorphicComponent<{
84
87
  children?: any[];
85
88
  data?: any;
86
89
  variant?: import("../Base/variantTypes.js").BaseContainerVariant;
90
+ icon?: string;
87
91
  suffixIcon?: string;
88
92
  isPending?: boolean;
89
93
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coyalabs/bts-style",
3
- "version": "1.3.21",
3
+ "version": "1.3.22",
4
4
  "description": "BTS Theme Svelte component templates",
5
5
  "type": "module",
6
6
  "exports": {