@invopop/popui 0.0.96 → 0.0.97

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.
@@ -13,7 +13,7 @@ const dispatch = createEventDispatcher();
13
13
  <a href={breadcrumb.url}>
14
14
  <span class:text-neutral-400={i < breadcrumbs.length - 1}>{breadcrumb.label}</span>
15
15
  </a>
16
- {:else}
16
+ {:else if breadcrumb.copiable}
17
17
  <button
18
18
  class={i < breadcrumbs.length - 1 ? 'text-neutral-400' : 'font-medium'}
19
19
  on:click|stopPropagation={async () => {
@@ -23,6 +23,10 @@ const dispatch = createEventDispatcher();
23
23
  >
24
24
  {breadcrumb.label}
25
25
  </button>
26
+ {:else}
27
+ <span class={i < breadcrumbs.length - 1 ? 'text-neutral-400' : 'font-medium'}>
28
+ {breadcrumb.label}
29
+ </span>
26
30
  {/if}
27
31
  {#if breadcrumb.country}
28
32
  <BaseFlag country={breadcrumb.country} width={14} />
package/dist/types.d.ts CHANGED
@@ -134,6 +134,7 @@ export type Breadcrumb = {
134
134
  label: string;
135
135
  url?: string;
136
136
  country?: string;
137
+ copiable?: boolean;
137
138
  };
138
139
  export type StepIcon = {
139
140
  name: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@invopop/popui",
3
3
  "license": "MIT",
4
- "version": "0.0.96",
4
+ "version": "0.0.97",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && npm run package",