@aurodesignsystem-dev/auro-hyperlink 0.0.0-pr1.0
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/CHANGELOG.md +885 -0
- package/LICENSE +201 -0
- package/NOTICE +2 -0
- package/README.md +144 -0
- package/custom-elements.json +1186 -0
- package/demo/a11y.html +58 -0
- package/demo/a11y.md +161 -0
- package/demo/api.html +57 -0
- package/demo/api.js +21 -0
- package/demo/api.md +694 -0
- package/demo/api.min.js +21 -0
- package/demo/auro-hyperlink.min.js +1291 -0
- package/demo/index.html +57 -0
- package/demo/index.js +23 -0
- package/demo/index.md +294 -0
- package/demo/index.min.js +35 -0
- package/dist/auro-hyperlink-ML2We8vn.js +1227 -0
- package/dist/index.d.ts +123 -0
- package/dist/index.js +6 -0
- package/dist/properties.js +64 -0
- package/dist/properties.jsdoc.js +65 -0
- package/dist/registered.js +8 -0
- package/package.json +90 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merged TypeScript declarations
|
|
3
|
+
* This file combines all component type definitions
|
|
4
|
+
* Generated automatically during build
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { * as Component} from "./index.js";
|
|
8
|
+
import { ComponentProps } from './properties';
|
|
9
|
+
|
|
10
|
+
// ===== properties.d.ts =====
|
|
11
|
+
/**
|
|
12
|
+
* Component properties interface
|
|
13
|
+
* Generated from web component analysis
|
|
14
|
+
*/
|
|
15
|
+
export interface ComponentProps {
|
|
16
|
+
/**
|
|
17
|
+
* Defines the URL of the linked page.
|
|
18
|
+
*/
|
|
19
|
+
href?: string;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Defines the relationship between the current document and the linked document.
|
|
23
|
+
*/
|
|
24
|
+
rel?: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Defines where to open the linked document.
|
|
28
|
+
*/
|
|
29
|
+
target?: string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Defines the type of hyperlink; accepts `nav` or `cta`.
|
|
33
|
+
*/
|
|
34
|
+
type?: string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* If true and `type="cta"`, the hyperlink will have a fluid-width UI.
|
|
38
|
+
*/
|
|
39
|
+
fluid?: string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* If true, sets `strict-origin-when-cross-origin` to control the referrer information sent with requests.
|
|
43
|
+
*/
|
|
44
|
+
referrerpolicy?: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* If true, the linked resource will be downloaded when the hyperlink is clicked.
|
|
48
|
+
*/
|
|
49
|
+
download?: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* If true, the auto URL re-write feature will be disabled.
|
|
53
|
+
*/
|
|
54
|
+
relative?: string;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Sets button variant option.
|
|
58
|
+
*/
|
|
59
|
+
variant?: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* If true, the hyperlink will be styled for use on a dark background.
|
|
63
|
+
*/
|
|
64
|
+
ondark?: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// ===== framework.d.ts =====
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Framework integration declarations for auro-hyperlink
|
|
71
|
+
* Provides type support for React, Svelte, and global HTML elements
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
declare module 'svelte/elements' {
|
|
75
|
+
interface SvelteHTMLElements {
|
|
76
|
+
/**
|
|
77
|
+
* auro-hyperlink component for Svelte
|
|
78
|
+
*/
|
|
79
|
+
'auro-hyperlink': ComponentProps;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare module 'react' {
|
|
84
|
+
namespace JSX {
|
|
85
|
+
interface IntrinsicElements {
|
|
86
|
+
/**
|
|
87
|
+
* auro-hyperlink component for React
|
|
88
|
+
*/
|
|
89
|
+
'auro-hyperlink': ComponentProps;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
declare global {
|
|
95
|
+
interface HTMLElementTagNameMap {
|
|
96
|
+
/**
|
|
97
|
+
* auro-hyperlink web component
|
|
98
|
+
*/
|
|
99
|
+
"auro-hyperlink": Component;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
namespace JSX {
|
|
103
|
+
interface IntrinsicElements {
|
|
104
|
+
/**
|
|
105
|
+
* auro-hyperlink component for JSX
|
|
106
|
+
*/
|
|
107
|
+
'auro-hyperlink': ComponentProps;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
namespace svelteHTML {
|
|
112
|
+
interface IntrinsicElements {
|
|
113
|
+
/**
|
|
114
|
+
* auro-hyperlink component for Svelte HTML
|
|
115
|
+
*/
|
|
116
|
+
'auro-hyperlink': ComponentProps;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
export {};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Base class containing all auro-hyperlink properties with proper JSDoc comments
|
|
5
|
+
* This class can be extended by other components to inherit property definitions
|
|
6
|
+
* Generated from web component analysis
|
|
7
|
+
*/
|
|
8
|
+
export class AuroHyperlinkProperties extends LitElement {
|
|
9
|
+
static get properties() {
|
|
10
|
+
return {
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Defines the URL of the linked page.
|
|
14
|
+
*/
|
|
15
|
+
href: { type: String, attribute: true },
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Defines the relationship between the current document and the linked document.
|
|
19
|
+
*/
|
|
20
|
+
rel: { type: String, attribute: true },
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Defines where to open the linked document.
|
|
24
|
+
*/
|
|
25
|
+
target: { type: String, attribute: true },
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Defines the type of hyperlink; accepts `nav` or `cta`.
|
|
29
|
+
*/
|
|
30
|
+
type: { type: String, attribute: true },
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* If true and `type="cta"`, the hyperlink will have a fluid-width UI.
|
|
34
|
+
*/
|
|
35
|
+
fluid: { type: String, attribute: true },
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* If true, sets `strict-origin-when-cross-origin` to control the referrer information sent with requests.
|
|
39
|
+
*/
|
|
40
|
+
referrerpolicy: { type: String, attribute: true },
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* If true, the linked resource will be downloaded when the hyperlink is clicked.
|
|
44
|
+
*/
|
|
45
|
+
download: { type: String, attribute: true },
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* If true, the auto URL re-write feature will be disabled.
|
|
49
|
+
*/
|
|
50
|
+
relative: { type: String, attribute: true },
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Sets button variant option.
|
|
54
|
+
*/
|
|
55
|
+
variant: { type: String, attribute: true },
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* If true, the hyperlink will be styled for use on a dark background.
|
|
59
|
+
*/
|
|
60
|
+
ondark: { type: String, attribute: true }
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component Properties JSDoc List
|
|
3
|
+
* Copy and paste these JSDoc comments into your component class
|
|
4
|
+
* Generated from web component analysis
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Defines the URL of the linked page.
|
|
9
|
+
* @type {string}
|
|
10
|
+
*/
|
|
11
|
+
href;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Defines the relationship between the current document and the linked document.
|
|
15
|
+
* @type {string}
|
|
16
|
+
*/
|
|
17
|
+
rel;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Defines where to open the linked document.
|
|
21
|
+
* @type {string}
|
|
22
|
+
*/
|
|
23
|
+
target;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Defines the type of hyperlink; accepts `nav` or `cta`.
|
|
27
|
+
* @type {string}
|
|
28
|
+
*/
|
|
29
|
+
type;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* If true and `type="cta"`, the hyperlink will have a fluid-width UI.
|
|
33
|
+
* @type {string}
|
|
34
|
+
*/
|
|
35
|
+
fluid;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* If true, sets `strict-origin-when-cross-origin` to control the referrer information sent with requests.
|
|
39
|
+
* @type {string}
|
|
40
|
+
*/
|
|
41
|
+
referrerpolicy;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* If true, the linked resource will be downloaded when the hyperlink is clicked.
|
|
45
|
+
* @type {string}
|
|
46
|
+
*/
|
|
47
|
+
download;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* If true, the auto URL re-write feature will be disabled.
|
|
51
|
+
* @type {string}
|
|
52
|
+
*/
|
|
53
|
+
relative;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Sets button variant option.
|
|
57
|
+
* @type {string}
|
|
58
|
+
*/
|
|
59
|
+
variant;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* If true, the hyperlink will be styled for use on a dark background.
|
|
63
|
+
* @type {string}
|
|
64
|
+
*/
|
|
65
|
+
ondark;
|
package/package.json
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"//": [
|
|
3
|
+
"================================================================================",
|
|
4
|
+
"# To work within the development environment, run the following tasks",
|
|
5
|
+
" 1. $ npm run dev",
|
|
6
|
+
" 2. Go to http://localhost:8000",
|
|
7
|
+
"================================================================================"
|
|
8
|
+
],
|
|
9
|
+
"name": "@aurodesignsystem-dev/auro-hyperlink",
|
|
10
|
+
"version": "0.0.0-pr1.0",
|
|
11
|
+
"description": "auro-hyperlink HTML custom element",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/AlaskaAirlines/auro-hyperlink"
|
|
15
|
+
},
|
|
16
|
+
"type": "module",
|
|
17
|
+
"main": "dist/registered.js",
|
|
18
|
+
"types": "dist/index.d.ts",
|
|
19
|
+
"license": "Apache-2.0",
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": "^20.x || ^22.x"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"lit": "^3.3.1"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@alaskaairux/icons": "^5.10.0",
|
|
28
|
+
"@aurodesignsystem/auro-button": "^12.0.0",
|
|
29
|
+
"@aurodesignsystem/auro-cli": "^3.0.4",
|
|
30
|
+
"@aurodesignsystem/auro-config": "^1.3.0",
|
|
31
|
+
"@aurodesignsystem/auro-icon": "^9.0.0",
|
|
32
|
+
"@aurodesignsystem/auro-library": "^5.5.3",
|
|
33
|
+
"@aurodesignsystem/design-tokens": "^8.5.0",
|
|
34
|
+
"@aurodesignsystem/webcorestylesheets": "^10.1.1",
|
|
35
|
+
"@custom-elements-manifest/analyzer": "^0.10.10",
|
|
36
|
+
"@custom-elements-manifest/to-markdown": "^0.1.0",
|
|
37
|
+
"husky": "^9.1.7"
|
|
38
|
+
},
|
|
39
|
+
"browserslist": [
|
|
40
|
+
"last 2 Chrome versions",
|
|
41
|
+
"last 2 iOS major versions",
|
|
42
|
+
"last 2 Firefox versions",
|
|
43
|
+
"last 2 Edge versions",
|
|
44
|
+
"last 2 Safari major versions"
|
|
45
|
+
],
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"access": "public"
|
|
48
|
+
},
|
|
49
|
+
"keywords": [
|
|
50
|
+
"alaska airlines",
|
|
51
|
+
"auro",
|
|
52
|
+
"design system",
|
|
53
|
+
"web components"
|
|
54
|
+
],
|
|
55
|
+
"scripts": {
|
|
56
|
+
"build": "auro build",
|
|
57
|
+
"build:version": "node ./scripts/version.mjs",
|
|
58
|
+
"dev": "auro dev -w -s",
|
|
59
|
+
"dev:open": "auro dev -w -s --open",
|
|
60
|
+
"gen:manifest": "cem analyze --litelement --globs src/*.*js --packagejson --dependencies",
|
|
61
|
+
"gen:docs": "node generate-docs.js",
|
|
62
|
+
"lint": "biome check --no-errors-on-unmatched && stylelint \"./src/**/*.scss\"",
|
|
63
|
+
"lint:fix": "biome check --fix --no-errors-on-unmatched && stylelint \"./src/**/*.scss\" --fix",
|
|
64
|
+
"test": "auro test",
|
|
65
|
+
"test:watch": "auro test --watch",
|
|
66
|
+
"test:coverage": "auro test --coverage-report --open",
|
|
67
|
+
"prepare": "husky"
|
|
68
|
+
},
|
|
69
|
+
"exports": {
|
|
70
|
+
"./readme.md": "./README.md",
|
|
71
|
+
".": "./dist/registered.js",
|
|
72
|
+
"./demo/*.md": "./demo/*.md",
|
|
73
|
+
"./demo/*.js": "./demo/*.min.js",
|
|
74
|
+
"./class": {
|
|
75
|
+
"module": "./dist/index.js",
|
|
76
|
+
"types": "./dist/index.d.ts",
|
|
77
|
+
"default": "./dist/index.js"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"files": [
|
|
81
|
+
"dist/**/*",
|
|
82
|
+
"demo/**/*",
|
|
83
|
+
"CHANGELOG.md",
|
|
84
|
+
"README.md",
|
|
85
|
+
"LICENSE",
|
|
86
|
+
"NOTICE",
|
|
87
|
+
"custom-elements.json"
|
|
88
|
+
],
|
|
89
|
+
"customElements": "custom-elements.json"
|
|
90
|
+
}
|