@reshape-biotech/design-system 2.7.23 → 2.7.24

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.
package/README.md CHANGED
@@ -1,19 +1,27 @@
1
1
 
2
2
  ## Local development flow with downstream consumer:
3
3
 
4
- `bun link` will give you a soft link you can install in your consuming project's `node_modules` directory.
4
+ First run
5
+ ```sh
6
+ bun link
7
+ ```
8
+ To create a soft link you can install in your consuming project's `node_modules`.
5
9
 
6
10
  Add this to your consumer's `package.json`:
7
11
  ```sh
8
12
  "@reshape-biotech/design-system": "link:@reshape-biotech/design-system"
9
13
  ```
10
14
 
15
+ or run this:
16
+ ```sh
17
+ bun link @reshape-biotech/design-system
18
+ ```
11
19
 
12
- If you then keep updating the design system, run
20
+ Now, to have the package buidling watch for changes:
13
21
  ```sh
14
22
  bun run package --watch
15
23
  ```
16
- to keep updating the exported components.
24
+
17
25
 
18
26
  ## Publishing
19
27
 
@@ -545,56 +545,35 @@
545
545
  </script>
546
546
 
547
547
  {#snippet UndoResetControls()}
548
- {#if marks.length > 0}
549
- <div class="flex items-center gap-2">
550
- <IconButton
551
- variant="transparent-inverse"
552
- rounded={false}
553
- onclick={undo}
554
- disabled={marks.length === 0 || disabled}
555
- aria-label="Undo last mark"
556
- >
557
- <Icon icon={ArrowUUpLeft} />
558
- </IconButton>
559
- <Divider vertical inverse class="!h-4" />
560
- <Button
561
- variant="transparent-inverse"
562
- size="sm"
563
- onClick={reset}
564
- disabled={marks.length === 0 || disabled}
565
- accessibilityLabel="Reset all marks"
566
- class="!text-primary-inverse"
567
- >
568
- Clear all
569
- </Button>
570
- </div>
571
- {/if}
572
- {/snippet}
573
-
574
- {#snippet TopLeftActions()}
575
- {#if activeMarkerName && !hideMarkers && !disabled}
576
- <div class="flex h-10 items-center justify-between rounded-lg px-2 py-2">
577
- <div class="flex items-center gap-3">
578
- <div
579
- class="flex !h-6 !w-6 shrink-0 items-center justify-center rounded-md"
580
- style="background-color: {resolvedActiveMarkerColor()}"
581
- >
582
- <Icon color="primary-inverse" icon={CursorClick} />
583
- </div>
584
-
585
- <span class="text-sm text-primary-inverse">
586
- Click to count each object in <strong>{activeMarkerName}</strong>
587
- </span>
588
- </div>
589
-
590
- {@render UndoResetControls()}
591
- </div>
592
- {/if}
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"
550
+ >
551
+ <IconButton
552
+ variant="transparent-inverse"
553
+ rounded={false}
554
+ onclick={undo}
555
+ disabled={marks.length === 0 || disabled}
556
+ aria-label="Undo last mark"
557
+ >
558
+ <Icon icon={ArrowUUpLeft} />
559
+ </IconButton>
560
+ <Divider vertical inverse class="!h-4" />
561
+ <Button
562
+ variant="transparent-inverse"
563
+ size="sm"
564
+ onClick={reset}
565
+ disabled={marks.length === 0 || disabled}
566
+ accessibilityLabel="Reset all marks"
567
+ class="!text-primary-inverse"
568
+ >
569
+ Clear all
570
+ </Button>
571
+ </div>
593
572
  {/snippet}
594
573
 
595
574
  {#snippet ZoomControls()}
596
575
  <div
597
- 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"
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"
598
577
  >
599
578
  <IconButton
600
579
  variant="transparent-inverse"
@@ -618,12 +597,9 @@
618
597
  {/snippet}
619
598
 
620
599
  <div class="flex h-full w-full flex-col gap-1 p-1" data-testid="manual-cfu-counter">
621
- {#if !hideMarkers && !disabled}
622
- {@render TopLeftActions()}
623
- {/if}
624
-
625
600
  <div bind:this={container} class="group relative flex-1 overflow-hidden rounded-xl bg-black">
626
601
  {#if !hideMarkers && !disabled}
602
+ {@render UndoResetControls()}
627
603
  {@render ZoomControls()}
628
604
  {/if}
629
605
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reshape-biotech/design-system",
3
- "version": "2.7.23",
3
+ "version": "2.7.24",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",