@proximus/lavender-link 2.0.0-alpha.23 → 2.0.0-alpha.230
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/dist/Link.d.ts +107 -39
- package/dist/LinkWrapper.d.ts +17 -0
- package/dist/custom-elements.json +1697 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +257 -246
- package/dist/vscode.css-custom-data.json +6 -0
- package/dist/vscode.html-custom-data.json +182 -0
- package/dist/web-types.json +314 -0
- package/package.json +2 -2
package/dist/Link.d.ts
CHANGED
|
@@ -3,54 +3,122 @@ import type { Icon } from '@proximus/lavender-icon';
|
|
|
3
3
|
export declare const linktextsizesValues: string[];
|
|
4
4
|
export declare const linkVariantValues: string[];
|
|
5
5
|
export declare const linkShapeValues: string[];
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @summary A link component.
|
|
8
|
+
* @slot before - Content to be placed before the link text.
|
|
9
|
+
* @slot after - Content to be placed after the link text.
|
|
10
|
+
* @attr {string} href - The URL that the hyperlink points to.
|
|
11
|
+
* @attr {string} target - Where to display the linked URL.
|
|
12
|
+
* @attr {string} rel - The relationship of the linked URL as space-separated link types.
|
|
13
|
+
* @attr {string} download - Prompts the user to save the linked URL instead of navigating to it.
|
|
14
|
+
*/
|
|
15
|
+
export declare class Link extends PxElement<HTMLAnchorElement> {
|
|
16
|
+
protected static readonly template: HTMLTemplateElement;
|
|
7
17
|
static nativeName: string;
|
|
8
|
-
|
|
18
|
+
static nativeProperties: Omit<{
|
|
19
|
+
text: "writable";
|
|
20
|
+
shape: "writable";
|
|
21
|
+
origin: "readonly";
|
|
22
|
+
}, "shape">;
|
|
23
|
+
static nativeMethods: "toString"[];
|
|
24
|
+
static nativeAttributes: {
|
|
25
|
+
href: ("search" | "href" | "hash" | "host" | "hostname" | "password" | "pathname" | "port" | "protocol" | "username")[];
|
|
26
|
+
target: "target"[];
|
|
27
|
+
rel: ("rel" | "relList")[];
|
|
28
|
+
download: "download"[];
|
|
29
|
+
hreflang: "hreflang"[];
|
|
30
|
+
type: "type"[];
|
|
31
|
+
ping: "ping"[];
|
|
32
|
+
referrerpolicy: "referrerPolicy"[];
|
|
33
|
+
title: "title"[];
|
|
34
|
+
charset: "charset"[];
|
|
35
|
+
coords: "coords"[];
|
|
36
|
+
name: "name"[];
|
|
37
|
+
rev: "rev"[];
|
|
38
|
+
};
|
|
9
39
|
constructor();
|
|
10
40
|
static get observedAttributes(): string[];
|
|
11
41
|
connectedCallback(): void;
|
|
42
|
+
disconnectedCallback(): void;
|
|
12
43
|
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
|
|
13
|
-
configureBeforeAfterIcon(icon:
|
|
44
|
+
configureBeforeAfterIcon(icon: HTMLElement): void;
|
|
14
45
|
_toggleClassList(value: string): void;
|
|
15
46
|
updateVariant(oldValue: string, newValue: string): void;
|
|
16
47
|
updateShape(attrName: string, newValue: string, attrValue: string[]): void;
|
|
17
48
|
updateTypography(attrName: string, oldValue: string, newValue: string, attrValue: string[]): void;
|
|
18
49
|
updateExtended(attributeName: string, newValue: string): void;
|
|
19
|
-
get $before(): HTMLSlotElement;
|
|
20
|
-
get $after(): HTMLSlotElement;
|
|
50
|
+
get $before(): HTMLSlotElement | null;
|
|
51
|
+
get $after(): HTMLSlotElement | null;
|
|
21
52
|
get $iconNotBeforeAfter(): Icon;
|
|
22
|
-
get disabled():
|
|
23
|
-
set disabled(value:
|
|
24
|
-
get variant(): string;
|
|
25
|
-
set variant(value: string);
|
|
26
|
-
get shape(): string;
|
|
27
|
-
set shape(value: string);
|
|
28
|
-
get shapeMobile(): string;
|
|
29
|
-
set shapeMobile(value: string);
|
|
30
|
-
get shapeTablet(): string;
|
|
31
|
-
set shapeTablet(value: string);
|
|
32
|
-
get shapeLaptop(): string;
|
|
33
|
-
set shapeLaptop(value: string);
|
|
34
|
-
get shapeDesktop(): string;
|
|
35
|
-
set shapeDesktop(value: string);
|
|
36
|
-
get extended():
|
|
37
|
-
set extended(value:
|
|
38
|
-
get extendedMobile():
|
|
39
|
-
set extendedMobile(value:
|
|
40
|
-
get extendedTablet():
|
|
41
|
-
set extendedTablet(value:
|
|
42
|
-
get extendedLaptop():
|
|
43
|
-
set extendedLaptop(value:
|
|
44
|
-
get extendedDesktop():
|
|
45
|
-
set extendedDesktop(value:
|
|
46
|
-
get inverted():
|
|
47
|
-
set inverted(value:
|
|
48
|
-
get fontsize(): string;
|
|
49
|
-
set fontsize(value: string);
|
|
50
|
-
get color(): string;
|
|
51
|
-
set color(value: string);
|
|
52
|
-
get fontweight(): string;
|
|
53
|
-
set fontweight(value: string);
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
get disabled(): boolean;
|
|
54
|
+
set disabled(value: boolean);
|
|
55
|
+
get variant(): string | null;
|
|
56
|
+
set variant(value: string | null);
|
|
57
|
+
get shape(): string | null;
|
|
58
|
+
set shape(value: string | null);
|
|
59
|
+
get shapeMobile(): string | null;
|
|
60
|
+
set shapeMobile(value: string | null);
|
|
61
|
+
get shapeTablet(): string | null;
|
|
62
|
+
set shapeTablet(value: string | null);
|
|
63
|
+
get shapeLaptop(): string | null;
|
|
64
|
+
set shapeLaptop(value: string | null);
|
|
65
|
+
get shapeDesktop(): string | null;
|
|
66
|
+
set shapeDesktop(value: string | null);
|
|
67
|
+
get extended(): boolean;
|
|
68
|
+
set extended(value: boolean);
|
|
69
|
+
get extendedMobile(): boolean;
|
|
70
|
+
set extendedMobile(value: boolean);
|
|
71
|
+
get extendedTablet(): boolean;
|
|
72
|
+
set extendedTablet(value: boolean);
|
|
73
|
+
get extendedLaptop(): boolean;
|
|
74
|
+
set extendedLaptop(value: boolean);
|
|
75
|
+
get extendedDesktop(): boolean;
|
|
76
|
+
set extendedDesktop(value: boolean);
|
|
77
|
+
get inverted(): boolean;
|
|
78
|
+
set inverted(value: boolean);
|
|
79
|
+
get fontsize(): string | null;
|
|
80
|
+
set fontsize(value: string | null);
|
|
81
|
+
get color(): string | null;
|
|
82
|
+
set color(value: string | null);
|
|
83
|
+
get fontweight(): string | null;
|
|
84
|
+
set fontweight(value: string | null);
|
|
85
|
+
/** @attr {string} charset - The legacy character encoding hint. */
|
|
86
|
+
charset: string;
|
|
87
|
+
/** @attr {string} coords - The legacy image-map coordinates. */
|
|
88
|
+
coords: string;
|
|
89
|
+
/** @attr {string} name - The native element name. */
|
|
90
|
+
name: string;
|
|
91
|
+
/** @attr {string} rev - The legacy reverse link relationship. */
|
|
92
|
+
rev: string;
|
|
93
|
+
/** @attr href - The destination URL; relative URLs remain relative in attributes. */
|
|
94
|
+
href: string;
|
|
95
|
+
/** @attr target - Where to open the destination. */
|
|
96
|
+
target: string;
|
|
97
|
+
/** @attr rel - The relationship to the destination. */
|
|
98
|
+
rel: string;
|
|
99
|
+
readonly relList: DOMTokenList;
|
|
100
|
+
/** @attr download - The suggested download filename; an empty value is valid. */
|
|
101
|
+
download: string;
|
|
102
|
+
/** @attr hreflang - The language of the destination. */
|
|
103
|
+
hreflang: string;
|
|
104
|
+
/** @attr type - The destination MIME type. */
|
|
105
|
+
type: string;
|
|
106
|
+
/** @attr ping - Space-separated tracking URLs. */
|
|
107
|
+
ping: string;
|
|
108
|
+
/** @attr referrerpolicy - The referrer policy for navigation. */
|
|
109
|
+
referrerPolicy: string;
|
|
110
|
+
/** @attr title - The tooltip, retained on both host and native anchor. */
|
|
111
|
+
title: string;
|
|
112
|
+
protocol: string;
|
|
113
|
+
username: string;
|
|
114
|
+
password: string;
|
|
115
|
+
host: string;
|
|
116
|
+
hostname: string;
|
|
117
|
+
port: string;
|
|
118
|
+
pathname: string;
|
|
119
|
+
search: string;
|
|
120
|
+
hash: string;
|
|
121
|
+
text: string;
|
|
122
|
+
readonly origin: string;
|
|
123
|
+
readonly toString: HTMLAnchorElement['toString'];
|
|
56
124
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Link } from './Link';
|
|
2
|
+
/**
|
|
3
|
+
* @summary A wrapper link that propagates interactive states (hover/focus) to child components.
|
|
4
|
+
* @slot before - Content to be placed before the link text.
|
|
5
|
+
* @slot after - Content to be placed after the link text.
|
|
6
|
+
* @attr {string} href - The URL that the hyperlink points to.
|
|
7
|
+
* @attr {string} target - Where to display the linked URL.
|
|
8
|
+
* @attr {string} rel - The relationship of the linked URL as space-separated link types.
|
|
9
|
+
* @attr {string} download - Prompts the user to save the linked URL instead of navigating to it.
|
|
10
|
+
*/
|
|
11
|
+
export declare class LinkWrapper extends Link {
|
|
12
|
+
#private;
|
|
13
|
+
constructor();
|
|
14
|
+
connectedCallback(): void;
|
|
15
|
+
disconnectedCallback(): void;
|
|
16
|
+
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
|
|
17
|
+
}
|