@aurodesignsystem/auro-tail 1.0.0-rc-7.1
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 +24 -0
- package/LICENSE +201 -0
- package/NOTICE +2 -0
- package/README.md +138 -0
- package/custom-elements.json +699 -0
- package/demo/api.html +53 -0
- package/demo/api.js +1 -0
- package/demo/api.md +490 -0
- package/demo/api.min.js +4 -0
- package/demo/auro-tail-group.min.js +834 -0
- package/demo/index.html +53 -0
- package/demo/index.js +7 -0
- package/demo/index.md +115 -0
- package/demo/index.min.js +7 -0
- package/dist/auro-tail-group-DPP1Aw94.js +188 -0
- package/dist/index.d.ts +205 -0
- package/dist/index.js +1 -0
- package/dist/registered.js +1 -0
- package/package.json +92 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
|
|
2
|
+
import type { default as AuroTailGroup } from "src/auro-tail-group.js";
|
|
3
|
+
import type { default as AuroTail } from "src/auro-tail.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* This type can be used to create scoped tags for your components.
|
|
7
|
+
*
|
|
8
|
+
* Usage:
|
|
9
|
+
*
|
|
10
|
+
* ```ts
|
|
11
|
+
* import type { ScopedElements } from "path/to/library/jsx-integration";
|
|
12
|
+
*
|
|
13
|
+
* declare module "my-library" {
|
|
14
|
+
* namespace JSX {
|
|
15
|
+
* interface IntrinsicElements
|
|
16
|
+
* extends ScopedElements<'test-', ''> {}
|
|
17
|
+
* }
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @deprecated Runtime scoped elements result in duplicate types and can confusing for developers. It is recommended to use the `prefix` and `suffix` options to generate new types instead.
|
|
22
|
+
*/
|
|
23
|
+
export type ScopedElements<
|
|
24
|
+
Prefix extends string = "",
|
|
25
|
+
Suffix extends string = ""
|
|
26
|
+
> = {
|
|
27
|
+
[Key in keyof CustomElements as `${Prefix}${Key}${Suffix}`]: CustomElements[Key];
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
type BaseProps<T extends HTMLElement> = {
|
|
31
|
+
|
|
32
|
+
/** Content added between the opening and closing tags of the element */
|
|
33
|
+
children?: any;
|
|
34
|
+
/** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
|
|
35
|
+
class?: string;
|
|
36
|
+
/** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
|
|
37
|
+
className?: string;
|
|
38
|
+
/** Takes an object where the key is the class name(s) and the value is a boolean expression. When true, the class is applied, and when false, it is removed. */
|
|
39
|
+
classList?: Record<string, boolean | undefined>;
|
|
40
|
+
/** Specifies the text direction of the element. */
|
|
41
|
+
dir?: "ltr" | "rtl";
|
|
42
|
+
/** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
|
|
43
|
+
exportparts?: string;
|
|
44
|
+
/** For <label> and <output>, lets you associate the label with some control. */
|
|
45
|
+
htmlFor?: string;
|
|
46
|
+
/** Specifies whether the element should be hidden. */
|
|
47
|
+
hidden?: boolean | string;
|
|
48
|
+
/** A unique identifier for the element. */
|
|
49
|
+
id?: string;
|
|
50
|
+
/** Keys tell React which array item each component corresponds to */
|
|
51
|
+
key?: string | number;
|
|
52
|
+
/** Specifies the language of the element. */
|
|
53
|
+
lang?: string;
|
|
54
|
+
/** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
|
|
55
|
+
part?: string;
|
|
56
|
+
/** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
|
|
57
|
+
ref?: T | ((e: T) => void);
|
|
58
|
+
/** Adds a reference for a custom element slot */
|
|
59
|
+
slot?: string;
|
|
60
|
+
/** Prop for setting inline styles */
|
|
61
|
+
style?: Record<string, string | number>;
|
|
62
|
+
/** Overrides the default Tab button behavior. Avoid using values other than -1 and 0. */
|
|
63
|
+
tabIndex?: number;
|
|
64
|
+
/** Specifies the tooltip text for the element. */
|
|
65
|
+
title?: string;
|
|
66
|
+
/** Passing 'no' excludes the element content from being translated. */
|
|
67
|
+
translate?: "yes" | "no";
|
|
68
|
+
/** The popover global attribute is used to designate an element as a popover element. */
|
|
69
|
+
popover?: "auto" | "hint" | "manual";
|
|
70
|
+
/** Turns an element element into a popover control button; takes the ID of the popover element to control as its value. */
|
|
71
|
+
popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
|
|
72
|
+
/** Specifies the action to be performed on a popover element being controlled by a control element. */
|
|
73
|
+
popovertargetaction?: "show" | "hide" | "toggle";
|
|
74
|
+
|
|
75
|
+
} ;
|
|
76
|
+
|
|
77
|
+
type BaseEvents = {
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
export type AuroTailGroupProps = {
|
|
85
|
+
/** Sets the layout direction for the group. */
|
|
86
|
+
"layout"?: AuroTailGroup['layout'];
|
|
87
|
+
/** Sets the size for all child tails in the group. */
|
|
88
|
+
"size"?: AuroTailGroup['size'];
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
export type AuroTailProps = {
|
|
95
|
+
/** Sets the badge type to display (e.g., `oneworld`). */
|
|
96
|
+
"badge"?: AuroTail['badge'];
|
|
97
|
+
/** Sets the href for the tail. */
|
|
98
|
+
"href"?: AuroTail['href'];
|
|
99
|
+
/** Sets the size of the tail. */
|
|
100
|
+
"size"?: AuroTail['size'];
|
|
101
|
+
/** Sets the airline tail based on the tail codes used in auro-icon (e.g., `AS`, `HA`, `PR`). */
|
|
102
|
+
"tail"?: AuroTail['tail'];
|
|
103
|
+
/** Sets the visual variant of the tail. */
|
|
104
|
+
"variant"?: AuroTail['variant'];
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type CustomElements = {
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
*
|
|
115
|
+
* ## Attributes & Properties
|
|
116
|
+
*
|
|
117
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
118
|
+
*
|
|
119
|
+
* - `layout`: Sets the layout direction for the group.
|
|
120
|
+
* - `size`: Sets the size for all child tails in the group.
|
|
121
|
+
*
|
|
122
|
+
* ## Methods
|
|
123
|
+
*
|
|
124
|
+
* Methods that can be called to access component functionality.
|
|
125
|
+
*
|
|
126
|
+
* - `register(name?: string = "auro-tail-group") => void`: This will register this element with the browser.
|
|
127
|
+
*/
|
|
128
|
+
"auro-tail-group": Partial<AuroTailGroupProps & BaseProps<AuroTailGroup> & BaseEvents>;
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
*
|
|
134
|
+
* ## Attributes & Properties
|
|
135
|
+
*
|
|
136
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
137
|
+
*
|
|
138
|
+
* - `badge`: Sets the badge type to display (e.g., `oneworld`).
|
|
139
|
+
* - `href`: Sets the href for the tail.
|
|
140
|
+
* - `size`: Sets the size of the tail.
|
|
141
|
+
* - `tail`: Sets the airline tail based on the tail codes used in auro-icon (e.g., `AS`, `HA`, `PR`).
|
|
142
|
+
* - `variant`: Sets the visual variant of the tail.
|
|
143
|
+
*
|
|
144
|
+
* ## Methods
|
|
145
|
+
*
|
|
146
|
+
* Methods that can be called to access component functionality.
|
|
147
|
+
*
|
|
148
|
+
* - `register(name?: string = "auro-tail") => void`: This will register this element with the browser.
|
|
149
|
+
*/
|
|
150
|
+
"auro-tail": Partial<AuroTailProps & BaseProps<AuroTail> & BaseEvents>;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export type CustomCssProperties = {
|
|
154
|
+
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
declare module 'react' {
|
|
159
|
+
namespace JSX {
|
|
160
|
+
interface IntrinsicElements extends CustomElements {}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
declare module 'preact' {
|
|
166
|
+
namespace JSX {
|
|
167
|
+
interface IntrinsicElements extends CustomElements {}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
declare module '@builder.io/qwik' {
|
|
173
|
+
namespace JSX {
|
|
174
|
+
interface IntrinsicElements extends CustomElements {}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
declare module '@stencil/core' {
|
|
180
|
+
namespace JSX {
|
|
181
|
+
interface IntrinsicElements extends CustomElements {}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
declare module 'hono/jsx' {
|
|
187
|
+
namespace JSX {
|
|
188
|
+
interface IntrinsicElements extends CustomElements {}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
declare module 'react-native' {
|
|
194
|
+
namespace JSX {
|
|
195
|
+
interface IntrinsicElements extends CustomElements {}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
declare global {
|
|
201
|
+
namespace JSX {
|
|
202
|
+
interface IntrinsicElements extends CustomElements {}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{A as AuroTail,a as AuroTailGroup}from"./auro-tail-group-DPP1Aw94.js";import"lit/static-html.js";import"lit";import"lit/directives/if-defined.js";import"lit/directives/class-map.js";import"lit/directives/ref.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as i,a as t}from"./auro-tail-group-DPP1Aw94.js";import"lit/static-html.js";import"lit";import"lit/directives/if-defined.js";import"lit/directives/class-map.js";import"lit/directives/ref.js";i.register(),t.register();
|
package/package.json
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
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/auro-tail",
|
|
10
|
+
"version": "1.0.0-rc-7.1",
|
|
11
|
+
"description": "auro-tail HTML custom element",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/AlaskaAirlines/auro-tail"
|
|
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"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"lit": "^3.3.1"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@aurodesignsystem/auro-cli": "^3.4.0",
|
|
28
|
+
"@aurodesignsystem/auro-config": "^1.3.1",
|
|
29
|
+
"@aurodesignsystem/auro-hyperlink": "^8.0.0",
|
|
30
|
+
"@aurodesignsystem/auro-icon": "^9.1.1",
|
|
31
|
+
"@aurodesignsystem/auro-library": "^5.5.4",
|
|
32
|
+
"@aurodesignsystem/design-tokens": "^8.7.0",
|
|
33
|
+
"@aurodesignsystem/webcorestylesheets": "10.1.4",
|
|
34
|
+
"husky": "^9.1.7"
|
|
35
|
+
},
|
|
36
|
+
"browserslist": [
|
|
37
|
+
"last 2 Chrome versions",
|
|
38
|
+
"last 2 iOS major versions",
|
|
39
|
+
"last 2 Firefox versions",
|
|
40
|
+
"last 2 Edge versions",
|
|
41
|
+
"last 2 Safari major versions"
|
|
42
|
+
],
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public",
|
|
45
|
+
"provenance": true
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"alaska airlines",
|
|
49
|
+
"auro",
|
|
50
|
+
"design system",
|
|
51
|
+
"web components"
|
|
52
|
+
],
|
|
53
|
+
"scripts": {
|
|
54
|
+
"build": "auro build",
|
|
55
|
+
"build:version": "node ./scripts/version.mjs",
|
|
56
|
+
"dev": "auro dev -w -s",
|
|
57
|
+
"dev:open": "auro dev -w -s --open",
|
|
58
|
+
"lint": "biome check --no-errors-on-unmatched && stylelint \"./src/**/*.scss\"",
|
|
59
|
+
"lint:fix": "biome check --fix --no-errors-on-unmatched && stylelint \"./src/**/*.scss\" --fix",
|
|
60
|
+
"test": "auro test",
|
|
61
|
+
"test:watch": "auro test --watch",
|
|
62
|
+
"test:coverage": "auro test --coverage-report --open",
|
|
63
|
+
"prepare": "husky"
|
|
64
|
+
},
|
|
65
|
+
"exports": {
|
|
66
|
+
"./package.json": "./package.json",
|
|
67
|
+
"./custom-elements.json": "./custom-elements.json",
|
|
68
|
+
"./readme.md": "./README.md",
|
|
69
|
+
"./demo/*.md": "./demo/*.md",
|
|
70
|
+
"./demo/*.js": "./demo/*.min.js",
|
|
71
|
+
"./class": {
|
|
72
|
+
"module": "./dist/index.js",
|
|
73
|
+
"types": "./dist/index.d.ts",
|
|
74
|
+
"default": "./dist/index.js"
|
|
75
|
+
},
|
|
76
|
+
".": {
|
|
77
|
+
"module": "./dist/registered.js",
|
|
78
|
+
"types": "./dist/index.d.ts",
|
|
79
|
+
"default": "./dist/registered.js"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"files": [
|
|
83
|
+
"custom-elements.json",
|
|
84
|
+
"dist/**/*",
|
|
85
|
+
"demo/**/*",
|
|
86
|
+
"CHANGELOG.md",
|
|
87
|
+
"README.md",
|
|
88
|
+
"LICENSE",
|
|
89
|
+
"NOTICE"
|
|
90
|
+
],
|
|
91
|
+
"customElements": "custom-elements.json"
|
|
92
|
+
}
|