@polarityio/pi-external-link 1.0.2 → 1.0.3
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 +12 -12
- package/dist/component-registry.json +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -41,25 +41,25 @@ import '@polarityio/pi-external-link';
|
|
|
41
41
|
|
|
42
42
|
### Properties
|
|
43
43
|
|
|
44
|
-
| Property
|
|
45
|
-
|
|
|
46
|
-
| `href`
|
|
47
|
-
| `text`
|
|
48
|
-
| `noIcon`
|
|
49
|
-
| `tooltipText` | `string`
|
|
50
|
-
| `noTooltip`
|
|
44
|
+
| Property | Type | Default | Description |
|
|
45
|
+
| ------------- | --------- | ------- | --------------------------------------------------------------- |
|
|
46
|
+
| `href` | `string` | `''` | The destination URL. Component renders nothing when empty. |
|
|
47
|
+
| `text` | `string` | `''` | Display text for the link. Falls back to `href` if empty. |
|
|
48
|
+
| `noIcon` | `boolean` | `false` | Hides the external-link icon when `true` |
|
|
49
|
+
| `tooltipText` | `string` | `''` | Custom tooltip text. Defaults to showing the `href` when empty. |
|
|
50
|
+
| `noTooltip` | `boolean` | `false` | Hides the tooltip entirely when `true` |
|
|
51
51
|
|
|
52
52
|
### Slots
|
|
53
53
|
|
|
54
|
-
| Slot Name | Description
|
|
55
|
-
|
|
|
54
|
+
| Slot Name | Description |
|
|
55
|
+
| --------- | ---------------------------------------------------------------------------------- |
|
|
56
56
|
| `tooltip` | Custom tooltip content. Overrides both `tooltipText` and the default href tooltip. |
|
|
57
57
|
|
|
58
58
|
### CSS Custom Properties
|
|
59
59
|
|
|
60
|
-
| Property
|
|
61
|
-
|
|
|
62
|
-
| `--pi-external-link-icon-size`
|
|
60
|
+
| Property | Default | Description |
|
|
61
|
+
| ------------------------------- | -------------- | ------------------------------- |
|
|
62
|
+
| `--pi-external-link-icon-size` | `0.85em` | Size of the external-link icon |
|
|
63
63
|
| `--pi-external-link-icon-color` | `currentColor` | Color of the external-link icon |
|
|
64
64
|
|
|
65
65
|
## Theming
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { faUpRightFromSquare } from "@fortawesome/free-solid-svg-icons";
|
|
|
5
5
|
import { defineCustomElementOnce, libraryCustomElementName } from "@polarityio/pi-shared";
|
|
6
6
|
import { CUSTOM_ELEMENT_NAME as CUSTOM_ELEMENT_NAME$1, PiIcon } from "@polarityio/pi-icon";
|
|
7
7
|
import { CUSTOM_ELEMENT_NAME as CUSTOM_ELEMENT_NAME$2, PiTooltip } from "@polarityio/pi-tooltip";
|
|
8
|
-
const version = "1.0.
|
|
8
|
+
const version = "1.0.3";
|
|
9
9
|
const packageJson = {
|
|
10
10
|
version
|
|
11
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polarityio/pi-external-link",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "External link component that opens in a new tab with icon and tooltip",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@fortawesome/free-solid-svg-icons": "^7.0.0",
|
|
32
|
-
"@polarityio/pi-shared": "1.0.
|
|
33
|
-
"@polarityio/pi-icon": "1.0.
|
|
34
|
-
"@polarityio/pi-tooltip": "1.0.
|
|
32
|
+
"@polarityio/pi-shared": "1.0.3",
|
|
33
|
+
"@polarityio/pi-icon": "1.0.3",
|
|
34
|
+
"@polarityio/pi-tooltip": "1.0.4"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"lit": "^3.0.0"
|