@14ch/svelte-ui 0.0.53 → 0.0.55

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.
@@ -385,8 +385,10 @@
385
385
  <div class="button__loading">
386
386
  <LoadingSpinner size={18} strokeWidth={2} color="currentColor" />
387
387
  </div>
388
- {:else if icon && iconPosition === 'left'}
389
- <div class="button__icon button__icon--left">
388
+ {/if}
389
+
390
+ {#if icon && iconPosition === 'left'}
391
+ <div class="button__icon button__icon--left" class:button__icon--hidden={loading}>
390
392
  {@render iconContent()}
391
393
  </div>
392
394
  {/if}
@@ -395,14 +397,14 @@
395
397
  {@render children()}
396
398
  </div>
397
399
 
398
- {#if icon && iconPosition === 'right' && !loading}
399
- <div class="button__icon button__icon--right">
400
+ {#if icon && iconPosition === 'right'}
401
+ <div class="button__icon button__icon--right" class:button__icon--hidden={loading}>
400
402
  {@render iconContent()}
401
403
  </div>
402
404
  {/if}
403
405
 
404
- {#if popup && !loading}
405
- <div class="button__popup-icon">
406
+ {#if popup}
407
+ <div class="button__popup-icon" class:button__popup-icon--hidden={loading}>
406
408
  <Icon>arrow_drop_down</Icon>
407
409
  </div>
408
410
  {/if}
@@ -560,7 +562,9 @@
560
562
  transition-duration: var(--svelte-ui-transition-duration);
561
563
  }
562
564
 
563
- .button__label--hidden {
565
+ .button__label--hidden,
566
+ .button__icon--hidden,
567
+ .button__popup-icon--hidden {
564
568
  opacity: 0;
565
569
  }
566
570
 
@@ -361,6 +361,7 @@
361
361
  vertical-align: top;
362
362
  contain: layout;
363
363
  cursor: pointer;
364
+ font-weight: inherit;
364
365
  }
365
366
 
366
367
  .checkbox input[type='checkbox'] {
@@ -366,8 +366,10 @@
366
366
  <div class="fab__loading">
367
367
  <LoadingSpinner size={24} strokeWidth={2} color="currentColor" />
368
368
  </div>
369
- {:else if icon && iconPosition === 'left'}
370
- <div class="fab__icon fab__icon--left">
369
+ {/if}
370
+
371
+ {#if icon && iconPosition === 'left'}
372
+ <div class="fab__icon fab__icon--left" class:fab__icon--hidden={loading}>
371
373
  {@render iconContent()}
372
374
  </div>
373
375
  {/if}
@@ -378,8 +380,8 @@
378
380
  </div>
379
381
  {/if}
380
382
 
381
- {#if icon && iconPosition === 'right' && !loading}
382
- <div class="fab__icon fab__icon--right">
383
+ {#if icon && iconPosition === 'right'}
384
+ <div class="fab__icon fab__icon--right" class:fab__icon--hidden={loading}>
383
385
  {@render iconContent()}
384
386
  </div>
385
387
  {/if}
@@ -513,7 +515,8 @@
513
515
  transition-property: opacity;
514
516
  transition-duration: var(--svelte-ui-transition-duration);
515
517
  }
516
- .fab .fab__label--hidden {
518
+ .fab .fab__label--hidden,
519
+ .fab .fab__icon--hidden {
517
520
  opacity: 0;
518
521
  }
519
522
 
@@ -391,6 +391,7 @@
391
391
  vertical-align: top;
392
392
  contain: layout;
393
393
  cursor: pointer;
394
+ font-weight: inherit;
394
395
  }
395
396
 
396
397
  .radio input[type='radio'] {
@@ -352,6 +352,7 @@
352
352
  min-height: var(--svelte-ui-switch-min-height);
353
353
  contain: layout;
354
354
  cursor: pointer;
355
+ font-weight: inherit;
355
356
  }
356
357
 
357
358
  .switch--full-width {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@14ch/svelte-ui",
3
3
  "description": "Modern Svelte UI components library with TypeScript support",
4
4
  "private": false,
5
- "version": "0.0.53",
5
+ "version": "0.0.55",
6
6
  "type": "module",
7
7
  "keywords": [
8
8
  "svelte",