@reshape-biotech/design-system 2.7.29 → 2.7.30

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.
@@ -546,7 +546,7 @@
546
546
 
547
547
  {#snippet UndoResetControls()}
548
548
  <div
549
- class="border-static-inverse bg-base-inverse absolute right-2 top-2 z-20 flex items-center gap-1 rounded-xl border p-1 opacity-0 transition-opacity duration-200 group-hover:opacity-100"
549
+ class="absolute right-2 top-2 z-20 flex items-center gap-1 rounded-xl border border-static-inverse bg-base-inverse p-1 opacity-0 transition-opacity duration-200 group-hover:opacity-100"
550
550
  >
551
551
  <IconButton
552
552
  variant="transparent-inverse"
@@ -573,14 +573,14 @@
573
573
 
574
574
  {#snippet ZoomControls()}
575
575
  <div
576
- class="border-static-inverse bg-base-inverse absolute bottom-2 right-2 z-20 flex flex-col items-center gap-1 rounded-xl border p-1 opacity-0 transition-opacity duration-200 group-hover:opacity-100"
576
+ class="absolute bottom-2 right-2 z-20 flex flex-col items-center gap-1 rounded-xl border border-static-inverse bg-base-inverse p-1 opacity-0 transition-opacity duration-200 group-hover:opacity-100"
577
577
  >
578
578
  <IconButton
579
579
  variant="transparent-inverse"
580
580
  rounded={false}
581
581
  onclick={zoomIn}
582
582
  aria-label="Zoom In"
583
- disabled={transform.scale >= MAX_ZOOM || disabled}
583
+ disabled={transform.scale >= MAX_ZOOM}
584
584
  >
585
585
  <Icon icon={Plus} />
586
586
  </IconButton>
@@ -589,7 +589,7 @@
589
589
  rounded={false}
590
590
  onclick={zoomOut}
591
591
  aria-label="Zoom Out"
592
- disabled={transform.scale <= MIN_ZOOM || disabled}
592
+ disabled={transform.scale <= MIN_ZOOM}
593
593
  >
594
594
  <Icon icon={Minus} />
595
595
  </IconButton>
@@ -600,8 +600,8 @@
600
600
  <div bind:this={container} class="group relative flex-1 overflow-hidden rounded-xl bg-black">
601
601
  {#if !hideMarkers && !disabled}
602
602
  {@render UndoResetControls()}
603
- {@render ZoomControls()}
604
603
  {/if}
604
+ {@render ZoomControls()}
605
605
 
606
606
  <!--
607
607
  We need to use SVG for this interactive component.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reshape-biotech/design-system",
3
- "version": "2.7.29",
3
+ "version": "2.7.30",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",