@aurodesignsystem-dev/auro-alert 0.0.0-pr109.1 → 0.0.0-pr110.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/README.md CHANGED
@@ -108,7 +108,7 @@ import { AuroAlert } from '@aurodesignsystem/auro-alert/class';
108
108
  AuroAlert.register('custom-alert');
109
109
  ```
110
110
 
111
- This will create a new custom element <custom-alert> that behaves exactly like <auro-alert>, allowing both to coexist on the same page without interfering with each other.
111
+ This will create a new custom element `<custom-alert>` that behaves exactly like `<auro-alert>`, allowing both to coexist on the same page without interfering with each other.
112
112
  <!-- AURO-GENERATED-CONTENT:END -->
113
113
  <div class="exampleWrapper exampleWrapper--flex">
114
114
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./apiExamples/custom.html) -->
package/demo/api.md CHANGED
@@ -11,7 +11,7 @@
11
11
  | hiddenAudible | hiddenAudible | | boolean | | If present, the component will be hidden from screen readers, but seen visually |
12
12
  | hiddenVisually | hiddenVisually | | boolean | | If present, the component will be hidden visually, but still read by screen readers |
13
13
  | noIcon | noIcon | | boolean | | Removes icon from alert UI when `type` attribute is set |
14
- | type | type | | 'information' \| 'error' \| 'success' \| 'warning' | | Component will render visually based on which type value is set |
14
+ | type | type | | `information` \| `error` \| `success` \| `warning` | | Component will render visually based on which type value is set |
15
15
 
16
16
  ### Methods
17
17
 
@@ -135,18 +135,19 @@ Use the `noIcon` attribute to remove the icon from the alert UI when the `type`
135
135
  </div>
136
136
  <auro-accordion alignRight>
137
137
  <span slot="trigger">See code</span>
138
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/type-noicon.html) -->
139
- <!-- The below code snippet is automatically added from ./../apiExamples/type-noicon.html -->
140
- ```html
141
- <auro-alert noIcon type="error">Transaction failed.</auro-alert>
142
- <br />
143
- <auro-alert noIcon type="information">You are confirmed on Flight 20 to Aruba.</auro-alert>
144
- <br />
145
- <auro-alert noIcon type="success">Your status with flight 20 to Aruba had been updated.</auro-alert>
146
- <br />
147
- <auro-alert noIcon type="warning">Warning. Session timed out. Look for a confirmation email to verify your transaction.</auro-alert>
148
- ```
149
- <!-- AURO-GENERATED-CONTENT:END -->
138
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/type-noicon.html) -->
139
+ <!-- The below code snippet is automatically added from ./../apiExamples/type-noicon.html -->
140
+
141
+ ```html
142
+ <auro-alert noIcon type="error">Transaction failed.</auro-alert>
143
+ <br />
144
+ <auro-alert noIcon type="information">You are confirmed on Flight 20 to Aruba.</auro-alert>
145
+ <br />
146
+ <auro-alert noIcon type="success">Your status with flight 20 to Aruba had been updated.</auro-alert>
147
+ <br />
148
+ <auro-alert noIcon type="warning">Warning. Session timed out. Look for a confirmation email to verify your transaction.</auro-alert>
149
+ ```
150
+ <!-- AURO-GENERATED-CONTENT:END -->
150
151
  </auro-accordion>
151
152
 
152
153
  ### Type
@@ -167,18 +168,19 @@ Use the `type` attribute to apply an icon and border color that match the alert
167
168
  </div>
168
169
  <auro-accordion alignRight>
169
170
  <span slot="trigger">See code</span>
170
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/type.html) -->
171
- <!-- The below code snippet is automatically added from ./../apiExamples/type.html -->
172
- ```html
173
- <auro-alert type="error">Transaction failed.</auro-alert>
174
- <br />
175
- <auro-alert type="information">You are confirmed on Flight 20 to Aruba.</auro-alert>
176
- <br />
177
- <auro-alert type="success">Your status with flight 20 to Aruba had been updated.</auro-alert>
178
- <br />
179
- <auro-alert type="warning">Warning. Session timed out. Look for a confirmation email to verify your transaction.</auro-alert>
180
- ```
181
- <!-- AURO-GENERATED-CONTENT:END -->
171
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/type.html) -->
172
+ <!-- The below code snippet is automatically added from ./../apiExamples/type.html -->
173
+
174
+ ```html
175
+ <auro-alert type="error">Transaction failed.</auro-alert>
176
+ <br />
177
+ <auro-alert type="information">You are confirmed on Flight 20 to Aruba.</auro-alert>
178
+ <br />
179
+ <auro-alert type="success">Your status with flight 20 to Aruba had been updated.</auro-alert>
180
+ <br />
181
+ <auro-alert type="warning">Warning. Session timed out. Look for a confirmation email to verify your transaction.</auro-alert>
182
+ ```
183
+ <!-- AURO-GENERATED-CONTENT:END -->
182
184
  </auro-accordion>
183
185
 
184
186
  ## Common Usage Patterns & Functional Examples
package/dist/index.d.ts CHANGED
@@ -1,42 +1,202 @@
1
- import { html, unsafeStatic, literal } from 'lit/static-html.js';
2
- import { css, LitElement, html as html$1 } from 'lit';
3
- import { classMap } from 'lit/directives/class-map.js';
4
- import { ifDefined } from 'lit/directives/if-defined.js';
5
-
6
- class l{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{});}closestElement(e,t=this,r=(t,a=t&&t.closest(e))=>t&&t!==document&&t!==window?a||r(t.getRootNode().host):null){return r(t)}handleComponentTagRename(e,t){const r=t.toLowerCase();e.tagName.toLowerCase()!==r&&e.setAttribute(r,true);}elementMatch(e,t){const r=t.toLowerCase();return e.tagName.toLowerCase()===r||e.hasAttribute(r)}}class c extends LitElement{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(e){return e?"true":"false"}}const d=new Map,u=(e,t={})=>{const r=t.responseParser||(e=>e.text());return d.has(e)||d.set(e,fetch(e).then(r)),d.get(e)};var p=css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem)!important;width:var(--ds-auro-icon-size, 1.5rem)!important;height:var(--ds-auro-icon-size, 1.5rem)!important}.componentWrapper{display:flex;line-height:var(--ds-auro-icon-size)}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.svgWrapper [part=svg]{display:flex}.labelWrapper{margin-left:var(--ds-size-50, .25rem)}.labelWrapper ::slotted(*){line-height:inherit!important}
7
- `;class h extends c{constructor(){super(),this.onDark=false,this.appearance="default";}static get properties(){return {...c.properties,onDark:{type:Boolean,reflect:true},appearance:{type:String,reflect:true},svg:{attribute:false,reflect:true}}}static get styles(){return p}async fetchIcon(e,t){let r="";return r="logos"===e?await u(`${this.uri}/${e}/${t}.svg`):await u(`${this.uri}/icons/${e}/${t}.svg`),(new DOMParser).parseFromString(r,"text/html").body.querySelector("svg")}async firstUpdated(){try{if(!this.customSvg){const e=await this.fetchIcon(this.category,this.name);if(e)this.svg=e;else if(!e){const e=(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>',"text/html");this.svg=e.body.firstChild;}}}catch(e){this.svg=void 0;}}}css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}:host{display:inline-block;--ds-auro-icon-size: 100%;width:100%;height:100%}:host .logo{color:var(--ds-auro-alaska-color)}:host([onDark]),:host([appearance=inverse]){--ds-auro-alaska-color: #FFF}
8
- `;var v=css`:host{--ds-auro-icon-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color: #02426D;--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}
9
- `,m=css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]),:host(:not([appearance=inverse])[variant=accent1]){--ds-auro-icon-color: var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]),:host(:not([appearance=inverse])[variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]),:host(:not([appearance=inverse])[variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]),:host(:not([appearance=inverse])[variant=statusDefault]){--ds-auro-icon-color: var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]),:host(:not([appearance=inverse])[variant=statusInfo]){--ds-auro-icon-color: var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]),:host(:not([appearance=inverse])[variant=statusSuccess]){--ds-auro-icon-color: var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]),:host(:not([appearance=inverse])[variant=statusWarning]){--ds-auro-icon-color: var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]),:host(:not([appearance=inverse])[variant=statusError]){--ds-auro-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]),:host(:not([appearance=inverse])[variant=statusInfoSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]),:host(:not([appearance=inverse])[variant=statusSuccessSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]),:host(:not([appearance=inverse])[variant=statusWarningSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]),:host(:not([appearance=inverse])[variant=statusErrorSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]),:host(:not([appearance=inverse])[variant=fareBasicEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]),:host(:not([appearance=inverse])[variant=fareBusiness]){--ds-auro-icon-color: var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]),:host(:not([appearance=inverse])[variant=fareEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]),:host(:not([appearance=inverse])[variant=fareFirst]){--ds-auro-icon-color: var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]),:host(:not([appearance=inverse])[variant=farePremiumEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]),:host(:not([appearance=inverse])[variant=tierOneWorldEmerald]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]),:host(:not([appearance=inverse])[variant=tierOneWorldSapphire]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]),:host(:not([appearance=inverse])[variant=tierOneWorldRuby]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]),:host([appearance=inverse]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]),:host([appearance=inverse][variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]),:host([appearance=inverse][variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]),:host([appearance=inverse][variant=statusError]){--ds-auro-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}
10
- `;class f extends h{constructor(){super(),this.variant=void 0,this.privateDefaults();}privateDefaults(){this.uri="https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist",this.runtimeUtils=new l;}static get properties(){return {...h.properties,ariaHidden:{type:String,reflect:true},category:{type:String,reflect:true},customColor:{type:Boolean,reflect:true},customSvg:{type:Boolean},label:{type:Boolean,reflect:true},name:{type:String,reflect:true},variant:{type:String,reflect:true}}}static get styles(){return [h.styles,v,p,m]}static register(e="auro-icon"){l.prototype.registerComponent(e,f);}connectedCallback(){super.connectedCallback(),this.runtimeUtils.handleComponentTagRename(this,"auro-icon");}exposeCssParts(){this.setAttribute("exportparts","svg:iconSvg");}async firstUpdated(){if(await super.firstUpdated(),this.hasAttribute("ariaHidden")&&this.svg){const e=this.svg.querySelector("desc");e&&(e.remove(),this.svg.removeAttribute("aria-labelledby"));}}render(){const e={labelWrapper:true,util_displayHiddenVisually:!this.label};return html$1`
11
- <div class="componentWrapper">
12
- <div
13
- class="${classMap({svgWrapper:true})}"
14
- title="${ifDefined(this.title||void 0)}">
15
- <span aria-hidden="${ifDefined(this.ariaHidden||true)}" part="svg">
16
- ${this.customSvg?html$1`
17
- <slot name="svg"></slot>
18
- `:html$1`
19
- ${this.svg}
20
- `}
21
- </span>
22
- </div>
23
-
24
- <div class="${classMap(e)}" part="label">
25
- <slot></slot>
26
- </div>
27
- </div>
28
- `}}class g{generateElementName(e,t){let r=e;return r+="-",r+=t.replace(/[.]/g,"_"),r}generateTag(r,a,o){const s=this.generateElementName(r,a),i=literal`${unsafeStatic(s)}`;return customElements.get(s)||customElements.define(s,class extends o{}),i}}class b{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{});}closestElement(e,t=this,r=(t,a=t&&t.closest(e))=>t&&t!==document&&t!==window?a||r(t.getRootNode().host):null){return r(t)}handleComponentTagRename(e,t){const r=t.toLowerCase();e.tagName.toLowerCase()!==r&&e.setAttribute(r,true);}elementMatch(e,t){const r=t.toLowerCase();return e.tagName.toLowerCase()===r||e.hasAttribute(r)}getSlotText(e,t){const r=e.shadowRoot?.querySelector(`slot[name="${t}"]`);return (r?.assignedNodes({flatten:true})||[]).map(e=>e.textContent?.trim()).join(" ").trim()||null}}class y extends LitElement{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(e){return e?"true":"false"}}var x=css`.alert{border-color:var(--ds-auro-alert-border-color);background-color:var(--ds-auro-alert-container-color);color:var(--ds-auro-alert-text-color)}[auro-icon]{color:var(--ds-auro-alert-icon-color)}:host([type=error]){--ds-auro-alert-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-alert-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host([type=warning]){--ds-auro-alert-border-color: var(--ds-basic-color-status-warning, #fac200);--ds-auro-alert-icon-color: var(--ds-basic-color-status-warning, #fac200)}:host([type=information]){--ds-auro-alert-border-color: var(--ds-basic-color-status-info, #01426a);--ds-auro-alert-icon-color: var(--ds-basic-color-status-info, #01426a)}:host([type=success]){--ds-auro-alert-border-color: var(--ds-basic-color-status-success, #447a1f);--ds-auro-alert-icon-color: var(--ds-basic-color-status-success, #447a1f)}
29
- `,k=css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.alert{display:flex;padding:var(--ds-size-100, .5rem);padding-right:var(--ds-size-200, 1rem);padding-left:var(--ds-size-150, .75rem);border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, .375rem);border-left-width:var(--ds-size-100, .5rem)}[auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, .5rem)}.content{width:-webkit-fill-available}
30
- `,w=css`:host{--ds-auro-alert-border-color: var(--ds-basic-color-status-default, #afb9c6);--ds-auro-alert-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-alert-icon-color: transparent;--ds-auro-alert-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}
31
- `;class S extends y{constructor(){super();const e=new g;this.iconTag=e.generateTag("auro-icon","9.1.1",f),this.runtimeUtils=new b;}static get properties(){return {...y.properties,hidden:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},iconTag:{type:String},noIcon:{type:Boolean,reflect:true},role:{type:String,reflect:true},type:{type:String,attribute:"type",reflect:true}}}static get styles(){return [k,x,w]}static register(e="auro-alert"){b.prototype.registerComponent(e,S);}firstUpdated(){this.runtimeUtils.handleComponentTagRename(this,"auro-alert");}generateIconHtml(e,t){return this.noIcon?html``:html`<${this.iconTag} customColor category="${e}" name="${t}"></${this.iconTag}>`}render(){let e=html``;switch(this.type){case void 0:break;case "error":e=this.generateIconHtml("alert","error-stroke"),this.role="alert",this.typeStr="Error.";break;case "success":e=this.generateIconHtml("interface","check-stroke"),this.role="alert",this.typeStr="Success.";break;case "warning":e=this.generateIconHtml("alert","warning-stroke"),this.role="alert",this.typeStr="Warning.";break;case "information":e=this.generateIconHtml("alert","information-stroke"),this.typeStr="Informational notice.";}return html`
32
- <div part="alert" class="alert"
33
- aria-hidden="${this.hideAudible(this.hiddenAudible)}">
34
- ${e}
35
- <div part="alert-content" class="content body-lg">
36
- <span class="util_displayHiddenVisually">${this.typeStr}</span>
37
- <slot></slot>
38
- </div>
39
- </div>
40
- `}}
41
-
42
- export { S as AuroAlert };
1
+
2
+ import type { AuroAlertWCA } from "scripts/wca/auro-alert.js";
3
+
4
+ /**
5
+ * This type can be used to create scoped tags for your components.
6
+ *
7
+ * Usage:
8
+ *
9
+ * ```ts
10
+ * import type { ScopedElements } from "path/to/library/jsx-integration";
11
+ *
12
+ * declare module "my-library" {
13
+ * namespace JSX {
14
+ * interface IntrinsicElements
15
+ * extends ScopedElements<'test-', ''> {}
16
+ * }
17
+ * }
18
+ * ```
19
+ *
20
+ * @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.
21
+ */
22
+ export type ScopedElements<
23
+ Prefix extends string = "",
24
+ Suffix extends string = ""
25
+ > = {
26
+ [Key in keyof CustomElements as `${Prefix}${Key}${Suffix}`]: CustomElements[Key];
27
+ };
28
+
29
+ type BaseProps<T extends HTMLElement> = {
30
+
31
+ /** Content added between the opening and closing tags of the element */
32
+ children?: any;
33
+ /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
34
+ class?: string;
35
+ /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
36
+ className?: string;
37
+ /** 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. */
38
+ classList?: Record<string, boolean | undefined>;
39
+ /** Specifies the text direction of the element. */
40
+ dir?: "ltr" | "rtl";
41
+ /** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
42
+ exportparts?: string;
43
+ /** For <label> and <output>, lets you associate the label with some control. */
44
+ htmlFor?: string;
45
+ /** Specifies whether the element should be hidden. */
46
+ hidden?: boolean | string;
47
+ /** A unique identifier for the element. */
48
+ id?: string;
49
+ /** Keys tell React which array item each component corresponds to */
50
+ key?: string | number;
51
+ /** Specifies the language of the element. */
52
+ lang?: string;
53
+ /** 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. */
54
+ part?: string;
55
+ /** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
56
+ ref?: T | ((e: T) => void);
57
+ /** Adds a reference for a custom element slot */
58
+ slot?: string;
59
+ /** Prop for setting inline styles */
60
+ style?: Record<string, string | number>;
61
+ /** Overrides the default Tab button behavior. Avoid using values other than -1 and 0. */
62
+ tabIndex?: number;
63
+ /** Specifies the tooltip text for the element. */
64
+ title?: string;
65
+ /** Passing 'no' excludes the element content from being translated. */
66
+ translate?: "yes" | "no";
67
+ /** The popover global attribute is used to designate an element as a popover element. */
68
+ popover?: "auto" | "hint" | "manual";
69
+ /** Turns an element element into a popover control button; takes the ID of the popover element to control as its value. */
70
+ popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
71
+ /** Specifies the action to be performed on a popover element being controlled by a control element. */
72
+ popovertargetaction?: "show" | "hide" | "toggle";
73
+
74
+ } ;
75
+
76
+ type BaseEvents = {
77
+
78
+
79
+ };
80
+
81
+
82
+
83
+ export type AuroAlertWCAProps = {
84
+ /** If present, the component will be hidden both visually and from screen readers */
85
+ "hidden"?: AuroAlertWCA['hidden'];
86
+ /** If present, the component will be hidden from screen readers, but seen visually */
87
+ "hiddenAudible"?: AuroAlertWCA['hiddenAudible'];
88
+ /** If present, the component will be hidden visually, but still read by screen readers */
89
+ "hiddenVisually"?: AuroAlertWCA['hiddenVisually'];
90
+ /** */
91
+ "iconTag"?: AuroAlertWCA['iconTag'];
92
+ /** Removes icon from alert UI when `type` attribute is set */
93
+ "noIcon"?: AuroAlertWCA['noIcon'];
94
+ /** */
95
+ "role"?: AuroAlertWCA['role'];
96
+ /** Component will render visually based on which type value is set */
97
+ "type"?: AuroAlertWCA['type'];
98
+
99
+
100
+ }
101
+
102
+ export type CustomElements = {
103
+
104
+
105
+ /**
106
+ *
107
+ *
108
+ * ## Attributes & Properties
109
+ *
110
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
111
+ *
112
+ * - `hidden`: If present, the component will be hidden both visually and from screen readers
113
+ * - `hiddenAudible`: If present, the component will be hidden from screen readers, but seen visually
114
+ * - `hiddenVisually`: If present, the component will be hidden visually, but still read by screen readers
115
+ * - `iconTag`: undefined
116
+ * - `noIcon`: Removes icon from alert UI when `type` attribute is set
117
+ * - `role`: undefined
118
+ * - `type`: Component will render visually based on which type value is set
119
+ *
120
+ * ## Slots
121
+ *
122
+ * Areas where markup can be added to the component.
123
+ *
124
+ * - `(default)`: Provide text for the alert. If using multiple lines, separate each line with `<p>` tags.
125
+ *
126
+ * ## Methods
127
+ *
128
+ * Methods that can be called to access component functionality.
129
+ *
130
+ * - `register(name?: string = "auro-alert") => void`: This will register this element with the browser.
131
+ *
132
+ * ## CSS Parts
133
+ *
134
+ * Custom selectors for styling elements within the component.
135
+ *
136
+ * - `alert`: Use for customizing the style of the alert container
137
+ * - `alert-content`: Use for customizing the style of the alert content
138
+ */
139
+ "auro-alert": Partial<AuroAlertWCAProps & BaseProps<AuroAlertWCA> & BaseEvents>;
140
+ }
141
+
142
+ export type CustomCssProperties = {
143
+
144
+ }
145
+
146
+
147
+ declare module 'react' {
148
+ namespace JSX {
149
+ interface IntrinsicElements extends CustomElements {}
150
+ }
151
+
152
+ }
153
+
154
+ declare module 'preact' {
155
+ namespace JSX {
156
+ interface IntrinsicElements extends CustomElements {}
157
+ }
158
+
159
+ }
160
+
161
+ declare module '@builder.io/qwik' {
162
+ namespace JSX {
163
+ interface IntrinsicElements extends CustomElements {}
164
+ }
165
+
166
+ }
167
+
168
+ declare module '@stencil/core' {
169
+ namespace JSX {
170
+ interface IntrinsicElements extends CustomElements {}
171
+ }
172
+
173
+ }
174
+
175
+ declare module 'hono/jsx' {
176
+ namespace JSX {
177
+ interface IntrinsicElements extends CustomElements {}
178
+ }
179
+
180
+ }
181
+
182
+ declare module 'react-native' {
183
+ namespace JSX {
184
+ interface IntrinsicElements extends CustomElements {}
185
+ }
186
+
187
+ }
188
+
189
+ declare global {
190
+ namespace JSX {
191
+ interface IntrinsicElements extends CustomElements {}
192
+ }
193
+
194
+ }
195
+ declare global {
196
+ namespace svelteHTML {
197
+ interface IntrinsicElements extends CustomElements {}
198
+ }
199
+ }
200
+
201
+
202
+ export { AuroAlert } from "./index.js";
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "================================================================================"
9
9
  ],
10
10
  "name": "@aurodesignsystem-dev/auro-alert",
11
- "version": "0.0.0-pr109.1",
11
+ "version": "0.0.0-pr110.1",
12
12
  "description": "auro-alert HTML custom element",
13
13
  "repository": {
14
14
  "type": "git",
@@ -25,7 +25,7 @@
25
25
  "lit": "^3.3.1"
26
26
  },
27
27
  "devDependencies": {
28
- "@aurodesignsystem/auro-cli": "^3.3.1",
28
+ "@aurodesignsystem/auro-cli": "^3.4.1",
29
29
  "@aurodesignsystem/auro-config": "^1.3.1",
30
30
  "@aurodesignsystem/auro-icon": "^9.1.1",
31
31
  "@aurodesignsystem/auro-library": "^5.5.4",