@imput/helium-prism 0.1.3 → 0.1.4

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.
@@ -94,10 +94,11 @@
94
94
  .dropdown {
95
95
  --dropdown-padding-inline: 16px;
96
96
  --dropdown-icon-size: 18px;
97
+ --dropdown-height: 40px;
97
98
  position: relative;
98
99
  width: fit-content;
99
100
  max-width: 100%;
100
- min-height: 40px;
101
+ min-height: var(--dropdown-height);
101
102
  cursor: pointer;
102
103
  }
103
104
 
@@ -105,7 +106,7 @@
105
106
  cursor: inherit;
106
107
  font-size: 16px;
107
108
  line-height: 122%;
108
- height: 100%;
109
+ min-height: var(--dropdown-height);
109
110
  padding-inline: var(--dropdown-padding-inline);
110
111
  padding-right: calc(var(--dropdown-padding-inline) + var(--dropdown-icon-size) + 9px);
111
112
  user-select: none;
@@ -16,7 +16,9 @@
16
16
  rel: relProp,
17
17
  ...rest
18
18
  }: Props = $props();
19
- let target = $derived(targetProp ?? (href.startsWith("#") ? undefined : "_blank"));
19
+ let url = $derived(new URL(href, document.location.href));
20
+ let isLocalHref = $derived(url.origin === document.location.origin);
21
+ let target = $derived(targetProp ?? (isLocalHref ? undefined : "_blank"));
20
22
  let rel = $derived(relProp ?? (target ? "noopener noreferrer" : undefined));
21
23
  </script>
22
24
 
@@ -1 +1 @@
1
- {"version":3,"file":"OuterLink.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/components/OuterLink.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAGpE,KAAK,KAAK,GAAG,IAAI,CAAC,oBAAoB,EAAE,OAAO,GAAG,MAAM,CAAC,GAAG;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACrB,CAAC;AA0BN,QAAA,MAAM,SAAS,2CAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"OuterLink.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/components/OuterLink.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAGpE,KAAK,KAAK,GAAG,IAAI,CAAC,oBAAoB,EAAE,OAAO,GAAG,MAAM,CAAC,GAAG;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACrB,CAAC;AA4BN,QAAA,MAAM,SAAS,2CAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
package/dist/styles.css CHANGED
@@ -34,8 +34,6 @@
34
34
  --gap-2: 8px;
35
35
  --gap-3: 12px;
36
36
  --gap-4: 20px;
37
- --content-padding: 32px;
38
- --section-padding: 48px;
39
37
 
40
38
  --mid-border-radius: 12px;
41
39
  --card-border-radius: 20px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imput/helium-prism",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Shared UI components of Helium web interfaces for Svelte",
5
5
  "type": "module",
6
6
  "license": "GPL-3.0-only",