@coyalabs/bts-style 1.3.5 → 1.3.7

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.
@@ -17,7 +17,8 @@
17
17
  @import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@900&display=swap');
18
18
  @import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap');
19
19
  .text {
20
- display: inline-block;
20
+ display: inline-flex;
21
+ align-items: center;
21
22
  font-family: 'Satoshi', sans-serif;
22
23
  }
23
24
  /* Title variant */
@@ -2,6 +2,7 @@
2
2
  import { slide } from 'svelte/transition';
3
3
  import { createEventDispatcher, onMount } from 'svelte';
4
4
  import Button from './Button.svelte';
5
+ import BaseIcon from '../Base/BaseIcon.svelte';
5
6
  import { icons } from '../icons.js';
6
7
  import { VARIANT_PRIMARY, VARIANT_SECONDARY } from '../Base/variantTypes.js';
7
8
 
@@ -262,7 +263,15 @@
262
263
  borderRadiusTopRight={isNested ? '15px' : '25px'}
263
264
  borderRadiusBottomRight="15px"
264
265
  >
265
- {item.name}{#if showCount && item.children} <span class="count">({countItems(item.children)})</span>{/if}{#if item.suffixIcon}<span class="suffix-icon">{@html item.suffixIcon}</span>{/if}
266
+ {item.name}
267
+ {#if showCount && item.children}
268
+ <span class="count">({countItems(item.children)})</span>
269
+ {/if}
270
+ {#if item.suffixIcon}
271
+ <span class="suffix-icon">
272
+ <BaseIcon svg={item.suffixIcon} size="15px" />
273
+ </span>
274
+ {/if}
266
275
  </Button>
267
276
  </div>
268
277
  {#if open && item.children}
@@ -301,7 +310,12 @@
301
310
  borderRadiusBottomLeft={isNested && !isLast ? '15px' : '25px'}
302
311
  borderRadiusBottomRight={isNested && !isLast ? '15px' : '25px'}
303
312
  >
304
- {item.name}{#if item.suffixIcon}<span class="suffix-icon">{@html item.suffixIcon}</span>{/if}
313
+ {item.name}
314
+ {#if item.suffixIcon}
315
+ <span class="suffix-icon">
316
+ <BaseIcon svg={item.suffixIcon} size="15px" />
317
+ </span>
318
+ {/if}
305
319
  </Button>
306
320
  </div>
307
321
  {/if}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coyalabs/bts-style",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "description": "BTS Theme Svelte component templates",
5
5
  "type": "module",
6
6
  "exports": {