@aurodesignsystem/auro-skeleton 2.1.5 → 3.0.0-beta.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/.husky/commit-msg CHANGED
@@ -1,4 +1 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
1
  npx --no-install commitlint --edit "$1"
package/.husky/pre-commit CHANGED
@@ -1,4 +1 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
1
  ./node_modules/.bin/npm-run-all preCommit test linters postinstall
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # Semantic Release Automated Changelog
2
2
 
3
+ # [3.0.0-beta.1](https://github.com/AlaskaAirlines/auro-skeleton/compare/v2.2.0-beta.1...v3.0.0-beta.1) (2024-09-27)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * resolve minor color theming issues ([894b6fd](https://github.com/AlaskaAirlines/auro-skeleton/commit/894b6fdb1291e3e1e71fc7cbe75b1aec6d07400d))
9
+
10
+
11
+ ### Features
12
+
13
+ * add tag name as attribute when custom registered ([d8c3f71](https://github.com/AlaskaAirlines/auro-skeleton/commit/d8c3f7118403265723841a54b5f255f396f9af80))
14
+
15
+
16
+ ### Performance Improvements
17
+
18
+ * refactor custom component registration config ([147af17](https://github.com/AlaskaAirlines/auro-skeleton/commit/147af17a0872d461579250175f7f4a16b7c29b06))
19
+ * update dependencies ([438c6b1](https://github.com/AlaskaAirlines/auro-skeleton/commit/438c6b18befb197a11c493f7d9fadb24ef989ea7))
20
+
21
+
22
+ ### BREAKING CHANGES
23
+
24
+ * trigger major release for color theme support #31
25
+
26
+ # [2.2.0-beta.1](https://github.com/AlaskaAirlines/auro-skeleton/compare/v2.1.5...v2.2.0-beta.1) (2024-07-09)
27
+
28
+
29
+ ### Features
30
+
31
+ * refactor color token structure with tier 3 tokens [#31](https://github.com/AlaskaAirlines/auro-skeleton/issues/31) ([577c0cc](https://github.com/AlaskaAirlines/auro-skeleton/commit/577c0ccd8010011757de3d418b4e23a836d5b87d))
32
+
3
33
  ## [2.1.5](https://github.com/AlaskaAirlines/auro-skeleton/compare/v2.1.4...v2.1.5) (2024-02-20)
4
34
 
5
35
 
package/README.md CHANGED
@@ -62,15 +62,6 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
62
62
 
63
63
  <!-- AURO-GENERATED-CONTENT:END -->
64
64
 
65
- ### CSS Custom Property fallbacks
66
-
67
- <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/cssFallbacks.md) -->
68
- [CSS custom properties](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) are [not supported](https://auro.alaskaair.com/support/custom-properties) in older browsers. For this, fallback properties are pre-generated and included with the npm.
69
-
70
- Any update to the Auro Design Tokens will be immediately reflected with browsers that support CSS custom properties, legacy browsers will require updated components with pre-generated fallback properties.
71
-
72
- <!-- AURO-GENERATED-CONTENT:END -->
73
-
74
65
  ### Define dependency in project component
75
66
 
76
67
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/componentImportDescription.md) -->
@@ -109,9 +100,9 @@ In cases where the project is not able to process JS assets, there are pre-proce
109
100
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/bundleUseModBrowsers.md) -->
110
101
 
111
102
  ```html
112
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.3.0/dist/tokens/CSSCustomProperties.css" />
113
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.0.6/dist/bundled/essentials.css" />
114
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-skeleton@2.1.5/dist/auro-skeleton__bundled.js" type="module"></script>
103
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.9.2/dist/tokens/CSSCustomProperties.css" />
104
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
105
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-skeleton@3.0.0-beta.1/dist/auro-skeleton__bundled.js" type="module"></script>
115
106
  ```
116
107
 
117
108
  <!-- AURO-GENERATED-CONTENT:END -->
package/demo/api.md CHANGED
@@ -78,4 +78,22 @@ The `<auro-skeleton>` element makes use of a single `shape` enumerated attribute
78
78
  <auro-skeleton shape="rectangle" style="width: 800px; height: 300px"></auro-skeleton>
79
79
  ```
80
80
  <!-- AURO-GENERATED-CONTENT:END -->
81
- </auro-accordion>
81
+ </auro-accordion>
82
+
83
+ ### Theme Support
84
+
85
+ The component may be restyled using the following code sample and changing the values of the following token(s).
86
+
87
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../src/tokens.scss) -->
88
+ <!-- The below code snippet is automatically added from ./../../src/tokens.scss -->
89
+
90
+ ```scss
91
+ @import './../node_modules/@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables';
92
+
93
+ :host {
94
+ --ds-auro-skeleton-container-color: var(--ds-color-container-subtle-default, #{$ds-color-container-subtle-default});
95
+ --ds-auro-skeleton-container-gradient-color-one: var(--ds-color-container-subtle-default, #{$ds-color-container-subtle-default});
96
+ --ds-auro-skeleton-container-gradient-color-two: var(--ds-color-container-tertiary-default, #{$ds-color-container-tertiary-default});
97
+ }
98
+ ```
99
+ <!-- AURO-GENERATED-CONTENT:END -->
package/demo/index.md CHANGED
@@ -129,8 +129,10 @@ There are two important parts of every Auro component. The <a href="https://deve
129
129
  To protect from versioning conflicts with other instances of the component being loaded, it is recommended to use our `registerComponent(name)` method and pass in a unique name.
130
130
 
131
131
  ```js
132
- import './node_modules/@aurodesignsystem/auro-skeleton';
133
- registerComponent('custom-skeleton');
132
+ import { AuroSkeleton } from './src/auro-skeleton.js';
133
+ import * as RuntimeUtils from '@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs';
134
+
135
+ RuntimeUtils.default.prototype.registerComponent('custom-skeleton', AuroSkeleton);
134
136
  ```
135
137
 
136
138
  This will create a new custom element that you can use in your HTML that will function identically to the `<auro-skeleton>` element.
@@ -6,6 +6,11 @@
6
6
  export class AuroSkeleton extends LitElement {
7
7
  static get properties(): {};
8
8
  static get styles(): import("lit").CSSResult[];
9
+ /**
10
+ * @private
11
+ */
12
+ private runtimeUtils;
13
+ firstUpdated(): void;
9
14
  render(): import("lit-html").TemplateResult<1>;
10
15
  }
11
16
  import { LitElement } from "lit";
@@ -1 +1 @@
1
- {"version":3,"file":"auro-skeleton.d.ts","sourceRoot":"","sources":["../src/auro-skeleton.js"],"names":[],"mappings":"AAWA;;;;GAIG;AAGH;IAME,4BAIC;IAED,+CAEC;IAMD,+CAIC;CACF;2BArCgC,KAAK"}
1
+ {"version":3,"file":"auro-skeleton.d.ts","sourceRoot":"","sources":["../src/auro-skeleton.js"],"names":[],"mappings":"AAeA;;;;GAIG;AAGH;IAWE,4BAIC;IAED,+CAMC;IAnBC;;OAEG;IACH,qBAAiD;IAkBnD,qBAGC;IAMD,+CAIC;CACF;2BAvDgC,KAAK"}
@@ -3,28 +3,102 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const t$1=globalThis,e$2=t$1.ShadowRoot&&(void 0===t$1.ShadyCSS||t$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2=Symbol(),o$2=new WeakMap;let n$2 = class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s$2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$2&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$2.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$2.set(s,t));}return t}toString(){return this.cssText}};const r$3=t=>new n$2("string"==typeof t?t:t+"",void 0,s$2),i$2=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$2(o,t,s$2)},S$1=(s,o)=>{if(e$2)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$1.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2=e$2?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3(e)})(t):t;
6
+ const t=globalThis,e$1=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o$1=new WeakMap;let n$2 = class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$1&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$1.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$1.set(s,t));}return t}toString(){return this.cssText}};const r$1=t=>new n$2("string"==typeof t?t:t+"",void 0,s),i$1=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$2(o,t,s)},S$1=(s,o)=>{if(e$1)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2=e$1?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$1(e)})(t):t;
7
7
 
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2017 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
- */const{is:i$1,defineProperty:e$1,getOwnPropertyDescriptor:r$2,getOwnPropertyNames:h$1,getOwnPropertySymbols:o$1,getPrototypeOf:n$1}=Object,a$1=globalThis,c$1=a$1.trustedTypes,l$1=c$1?c$1.emptyScript:"",p$1=a$1.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$1={toAttribute(t,s){switch(s){case Boolean:t=t?l$1:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1=(t,s)=>!i$1(t,s),y$1={attribute:!0,type:String,converter:u$1,reflect:!1,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$1.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$1){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$1(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$2(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$1}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$1(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...h$1(t),...o$1(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return !1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$1).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$1;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$1)(this[t],s))return;this.P(t,s,i);}!1===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=!0;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t)!0!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return !0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d$1("elementProperties")]=new Map,b[d$1("finalized")]=new Map,p$1?.({ReactiveElement:b}),(a$1.reactiveElementVersions??=[]).push("2.0.4");
12
+ */const{is:i,defineProperty:e,getOwnPropertyDescriptor:r,getOwnPropertyNames:h$2,getOwnPropertySymbols:o,getPrototypeOf:n$1}=Object,a=globalThis,c$1=a.trustedTypes,l=c$1?c$1.emptyScript:"",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$2=(t,s)=>!i(t,s),y={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:f$2};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(d("elementProperties")))return;const t=n$1(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d("properties"))){const t=this.properties,s=[...h$2(t),...o(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return !1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$2)(this[t],s))return;this.P(t,s,i);}!1===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=!0;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t)!0!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return !0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d("elementProperties")]=new Map,b[d("finalized")]=new Map,p?.({ReactiveElement:b}),(a.reactiveElementVersions??=[]).push("2.0.4");
13
13
 
14
14
  /**
15
15
  * @license
16
16
  * Copyright 2017 Google LLC
17
17
  * SPDX-License-Identifier: BSD-3-Clause
18
18
  */
19
- const t=globalThis,i=t.trustedTypes,s$1=i?i.createPolicy("lit-html",{createHTML:t=>t}):void 0,e="$lit$",h=`lit$${(Math.random()+"").slice(9)}$`,o="?"+h,n=`<${o}>`,r$1=document,l=()=>r$1.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a=Array.isArray,u=t=>a(t)||"function"==typeof t?.[Symbol.iterator],d="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),w=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),A=new WeakMap,E=r$1.createTreeWalker(r$1,129);function C(t,i){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$1?s$1.createHTML(i):i}const P=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":"",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?"!--"===u[1]?c=v:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m):void 0!==u[3]&&(c=m):c===m?">"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m:'"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=void 0);const x=c===m&&t[i+1].startsWith("/>")?" ":"";l+=c===f?s+n:d>=0?(o.push(a),s.slice(0,d)+e+s.slice(d)+h+x):s+h+(-2===d?i:x);}return [C(t,l+(t[s]||"<?>")+(2===i?"</svg>":"")),o]};class V{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=P(t,s);if(this.el=V.createElement(f,n),E.currentNode=this.el.content,2===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=E.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e)){const i=v[a++],s=r.getAttribute(t).split(h),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?k:"?"===e[1]?H:"@"===e[1]?I:R}),r.removeAttribute(t);}else t.startsWith(h)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i?i.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l()),E.nextNode(),d.push({type:2,index:++c});r.append(t[s],l());}}}else if(8===r.nodeType)if(r.data===o)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1;}c++;}}static createElement(t,i){const s=r$1.createElement("template");return s.innerHTML=t,s}}function N(t,i,s=t,e){if(i===w)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=N(t,h._$AS(t,i.values),h,e)),i}class S{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$1).importNode(i,!0);E.currentNode=e;let h=E.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new M(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new L(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=E.nextNode(),o++);}return E.currentNode=r$1,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class M{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=N(this,t,i),c(t)?t===T||null==t||""===t?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==w&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u(t)?this.k(t):this._(t);}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t));}_(t){this._$AH!==T&&c(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=V.createElement(C(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new S(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new V(t)),i}k(t){a(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new M(this.S(l()),this.S(l()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class R{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=T;}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=N(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==w,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=N(this,e[s+n],i,n),r===w&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===T?t=T:t!==T&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class k extends R{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===T?void 0:t;}}class H extends R{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==T);}}class I extends R{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=N(this,t,i,0)??T)===w)return;const s=this._$AH,e=t===T&&s!==T||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==T&&(s===T||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class L{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){N(this,t);}}const Z=t.litHtmlPolyfillSupport;Z?.(V,M),(t.litHtmlVersions??=[]).push("3.1.2");const j=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new M(i.insertBefore(l(),t),t,void 0,s??{});}return h._$AI(t),h};
19
+ const n=globalThis,c=n.trustedTypes,h$1=c?c.createPolicy("lit-html",{createHTML:t=>t}):void 0,f$1="$lit$",v=`lit$${Math.random().toFixed(9).slice(2)}$`,m="?"+v,_=`<${m}>`,w=document,lt=()=>w.createComment(""),st=t=>null===t||"object"!=typeof t&&"function"!=typeof t,g=Array.isArray,$=t=>g(t)||"function"==typeof t?.[Symbol.iterator],x="[ \t\n\f\r]",T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E=/-->/g,k=/>/g,O=RegExp(`>|${x}(?:([^\\s"'>=/]+)(${x}*=${x}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),S=/'/g,j=/"/g,M=/^(?:script|style|textarea|title)$/i,P=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),ke=P(1),R=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),V=new WeakMap,I=w.createTreeWalker(w,129);function N(t,i){if(!g(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==h$1?h$1.createHTML(i):i}const U=(t,i)=>{const s=t.length-1,e=[];let h,o=2===i?"<svg>":3===i?"<math>":"",n=T;for(let i=0;i<s;i++){const s=t[i];let r,l,c=-1,a=0;for(;a<s.length&&(n.lastIndex=a,l=n.exec(s),null!==l);)a=n.lastIndex,n===T?"!--"===l[1]?n=E:void 0!==l[1]?n=k:void 0!==l[2]?(M.test(l[2])&&(h=RegExp("</"+l[2],"g")),n=O):void 0!==l[3]&&(n=O):n===O?">"===l[0]?(n=h??T,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,r=l[1],n=void 0===l[3]?O:'"'===l[3]?j:S):n===j||n===S?n=O:n===E||n===k?n=T:(n=O,h=void 0);const u=n===O&&t[i+1].startsWith("/>")?" ":"";o+=n===T?s+_:c>=0?(e.push(r),s.slice(0,c)+f$1+s.slice(c)+v+u):s+v+(-2===c?i:u);}return [N(t,o+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),e]};class B{constructor({strings:t,_$litType$:i},s){let e;this.parts=[];let h=0,o=0;const n=t.length-1,r=this.parts,[l,a]=U(t,i);if(this.el=B.createElement(l,s),I.currentNode=this.el.content,2===i||3===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(e=I.nextNode())&&r.length<n;){if(1===e.nodeType){if(e.hasAttributes())for(const t of e.getAttributeNames())if(t.endsWith(f$1)){const i=a[o++],s=e.getAttribute(t).split(v),n=/([.?@])?(.*)/.exec(i);r.push({type:1,index:h,name:n[2],strings:s,ctor:"."===n[1]?Y:"?"===n[1]?Z:"@"===n[1]?q:G}),e.removeAttribute(t);}else t.startsWith(v)&&(r.push({type:6,index:h}),e.removeAttribute(t));if(M.test(e.tagName)){const t=e.textContent.split(v),i=t.length-1;if(i>0){e.textContent=c?c.emptyScript:"";for(let s=0;s<i;s++)e.append(t[s],lt()),I.nextNode(),r.push({type:2,index:++h});e.append(t[i],lt());}}}else if(8===e.nodeType)if(e.data===m)r.push({type:2,index:h});else {let t=-1;for(;-1!==(t=e.data.indexOf(v,t+1));)r.push({type:7,index:h}),t+=v.length-1;}h++;}}static createElement(t,i){const s=w.createElement("template");return s.innerHTML=t,s}}function z(t,i,s=t,e){if(i===R)return i;let h=void 0!==e?s.o?.[e]:s.l;const o=st(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s.o??=[])[e]=h:s.l=h),void 0!==h&&(i=z(t,h._$AS(t,i.values),h,e)),i}class F{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??w).importNode(i,!0);I.currentNode=e;let h=I.nextNode(),o=0,n=0,r=s[0];for(;void 0!==r;){if(o===r.index){let i;2===r.type?i=new et(h,h.nextSibling,this,t):1===r.type?i=new r.ctor(h,r.name,r.strings,this,t):6===r.type&&(i=new K(h,this,t)),this._$AV.push(i),r=s[++n];}o!==r?.index&&(h=I.nextNode(),o++);}return I.currentNode=w,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class et{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,i,s,e){this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this.v=e?.isConnected??!0;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=z(this,t,i),st(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==R&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):$(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==D&&st(this._$AH)?this._$AA.nextSibling.data=t:this.T(w.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=B.createElement(N(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new F(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=V.get(t.strings);return void 0===i&&V.set(t.strings,i=new B(t)),i}k(t){g(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new et(this.O(lt()),this.O(lt()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){void 0===this._$AM&&(this.v=t,this._$AP?.(t));}}class G{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=D;}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=z(this,t,i,0),o=!st(t)||t!==this._$AH&&t!==R,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=z(this,e[s+n],i,n),r===R&&(r=this._$AH[n]),o||=!st(r)||r!==this._$AH[n],r===D?t=D:t!==D&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class Y extends G{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===D?void 0:t;}}class Z extends G{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==D);}}class q extends G{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=z(this,t,i,0)??D)===R)return;const s=this._$AH,e=t===D&&s!==D||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==D&&(s===D||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class K{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){z(this,t);}}const Re=n.litHtmlPolyfillSupport;Re?.(B,et),(n.litHtmlVersions??=[]).push("3.2.0");const Q=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new et(i.insertBefore(lt(),t),t,void 0,s??{});}return h._$AI(t),h};
20
20
 
21
21
  /**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */class s extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=j(i,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1);}render(){return w}}s._$litElement$=!0,s[("finalized")]=!0,globalThis.litElementHydrateSupport?.({LitElement:s});const r=globalThis.litElementPolyfillSupport;r?.({LitElement:s});(globalThis.litElementVersions??=[]).push("4.0.4");
25
+ */class h extends b{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=Q(e,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0);}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1);}render(){return R}}h._$litElement$=!0,h["finalized"]=!0,globalThis.litElementHydrateSupport?.({LitElement:h});const f=globalThis.litElementPolyfillSupport;f?.({LitElement:h});(globalThis.litElementVersions??=[]).push("4.1.0");
26
26
 
27
- var styleCss = i$2`:root{--ds-asset-font-circular-family-name:"AS Circular";--ds-asset-font-circular-filename:"ASCircularWeb";--ds-asset-font-circular-weight-light:"-Light";--ds-asset-font-circular-weight-medium:"-Medium";--ds-asset-font-circular-weight-book:"-Book";--ds-border-radius:0.375rem;--ds-size-25:0.125rem;--ds-size-50:0.25rem;--ds-size-100:0.5rem;--ds-size-150:0.75rem;--ds-size-200:1rem;--ds-size-300:1.5rem;--ds-size-400:2rem;--ds-size-500:2.5rem;--ds-size-600:3rem;--ds-size-700:3.5rem;--ds-size-800:4rem;--ds-size-900:4.5rem;--ds-size-1000:5rem;--ds-unitless-scale-20:0.25;--ds-unitless-scale-50:0.5;--ds-unitless-scale-100:1;--ds-unitless-scale-140:1.4;--ds-unitless-scale-150:1.5;--ds-unitless-scale-200:2;--ds-unitless-scale-300:3;--ds-unitless-scale-350:3.5;--ds-animation-default-property:all;--ds-animation-default-duration:0.3s;--ds-animation-default-timing:ease-out;--ds-depth-overlay:200;--ds-depth-modal:400;--ds-depth-tooltip:300;--ds-elevation-100:0px 0px 5px rgba(0, 0, 0, 0.15);--ds-elevation-200:0px 0px 10px rgba(0, 0, 0, 0.15);--ds-elevation-300:0px 0px 15px rgba(0, 0, 0, 0.2);--ds-grid-breakpoint-xs:320px;--ds-grid-breakpoint-sm:576px;--ds-grid-breakpoint-md:768px;--ds-grid-breakpoint-lg:1024px;--ds-grid-breakpoint-xl:1232px;--ds-grid-column-xs:6;--ds-grid-column-sm:12;--ds-grid-column-md:12;--ds-grid-column-lg:12;--ds-grid-column-xl:12;--ds-grid-gutter-xs:0.5rem;--ds-grid-gutter-sm:1rem;--ds-grid-gutter-md:1.5rem;--ds-grid-gutter-lg:1.5rem;--ds-grid-gutter-xl:2rem;--ds-grid-margin-xs:1rem;--ds-grid-margin-sm:1rem;--ds-grid-margin-md:1.5rem;--ds-grid-margin-lg:2rem;--ds-grid-margin-xl:2rem;--ds-font-family-default:"AS Circular", Helvetica Neue, Arial, sans-serif;--ds-font-family-mono:Menlo, Monaco, Consolas, "Courier New", monospace;--ds-text-heading-300-weight:300;--ds-text-heading-300-px:18px;--ds-text-heading-300-size:1.125rem;--ds-text-heading-300-height:1.625rem;--ds-text-heading-300-height-px:26px;--ds-text-heading-400-weight:300;--ds-text-heading-400-px:20px;--ds-text-heading-400-size:1.25rem;--ds-text-heading-400-height:1.625rem;--ds-text-heading-400-height-px:26px;--ds-text-heading-500-weight:300;--ds-text-heading-500-px-breakpoint-sm:22px;--ds-text-heading-500-px-breakpoint-md:24px;--ds-text-heading-500-px-breakpoint-lg:24px;--ds-text-heading-500-size-breakpoint-sm:1.375rem;--ds-text-heading-500-size-breakpoint-md:1.5rem;--ds-text-heading-500-size-breakpoint-lg:1.5rem;--ds-text-heading-500-height-breakpoint-sm:1.625rem;--ds-text-heading-500-height-breakpoint-px-sm:26px;--ds-text-heading-500-height-breakpoint-md:1.875rem;--ds-text-heading-500-height-breakpoint-px-md:30px;--ds-text-heading-500-height-breakpoint-lg:2rem;--ds-text-heading-500-height-breakpoint-px-lg:32px;--ds-text-heading-600-weight:300;--ds-text-heading-600-px-breakpoint-sm:26px;--ds-text-heading-600-px-breakpoint-md:28px;--ds-text-heading-600-px-breakpoint-lg:28px;--ds-text-heading-600-size-breakpoint-sm:1.625rem;--ds-text-heading-600-size-breakpoint-md:1.75rem;--ds-text-heading-600-size-breakpoint-lg:1.75rem;--ds-text-heading-600-height-breakpoint-sm:1.875rem;--ds-text-heading-600-height-breakpoint-px-sm:30px;--ds-text-heading-600-height-breakpoint-md:2.125rem;--ds-text-heading-600-height-breakpoint-px-md:34px;--ds-text-heading-600-height-breakpoint-lg:2.25rem;--ds-text-heading-600-height-breakpoint-px-lg:36px;--ds-text-heading-700-weight:500;--ds-text-heading-700-px-breakpoint-sm:28px;--ds-text-heading-700-px-breakpoint-md:32px;--ds-text-heading-700-px-breakpoint-lg:36px;--ds-text-heading-700-size-breakpoint-sm:1.75rem;--ds-text-heading-700-size-breakpoint-md:2rem;--ds-text-heading-700-size-breakpoint-lg:2.25rem;--ds-text-heading-700-height-breakpoint-sm:2.125rem;--ds-text-heading-700-height-breakpoint-px-sm:34px;--ds-text-heading-700-height-breakpoint-md:2.375rem;--ds-text-heading-700-height-breakpoint-px-md:38px;--ds-text-heading-700-height-breakpoint-lg:2.75rem;--ds-text-heading-700-height-breakpoint-px-lg:44px;--ds-text-heading-800-weight:500;--ds-text-heading-800-px-breakpoint-sm:32px;--ds-text-heading-800-px-breakpoint-md:36px;--ds-text-heading-800-px-breakpoint-lg:40px;--ds-text-heading-800-size-breakpoint-sm:2rem;--ds-text-heading-800-size-breakpoint-md:2.25rem;--ds-text-heading-800-size-breakpoint-lg:2.5rem;--ds-text-heading-800-height-breakpoint-sm:2.375rem;--ds-text-heading-800-height-breakpoint-px-sm:38px;--ds-text-heading-800-height-breakpoint-md:2.625rem;--ds-text-heading-800-height-breakpoint-px-md:42px;--ds-text-heading-800-height-breakpoint-lg:3rem;--ds-text-heading-800-height-breakpoint-px-lg:48px;--ds-text-heading-default-weight:500;--ds-text-heading-default-margin:0;--ds-text-heading-default-spacing:-0.2px;--ds-text-heading-medium-weight:300;--ds-text-heading-display-weight:100;--ds-text-heading-display-px-breakpoint-sm:44px;--ds-text-heading-display-px-breakpoint-md:48px;--ds-text-heading-display-px-breakpoint-lg:56px;--ds-text-heading-display-size-breakpoint-sm:2.75rem;--ds-text-heading-display-size-breakpoint-md:3rem;--ds-text-heading-display-size-breakpoint-lg:3.5rem;--ds-text-heading-display-height-breakpoint-sm:3.375rem;--ds-text-heading-display-height-breakpoint-px-sm:54px;--ds-text-heading-display-height-breakpoint-md:3.75rem;--ds-text-heading-display-height-breakpoint-px-md:60px;--ds-text-heading-display-height-breakpoint-lg:4.25rem;--ds-text-heading-display-height-breakpoint-px-lg:68px;--ds-text-body-default-weight:500;--ds-text-body-size-xxs:0.625rem;--ds-text-body-size-xs:0.75rem;--ds-text-body-size-sm:0.875rem;--ds-text-body-size-default:1rem;--ds-text-body-size-lg:1.125rem;--ds-text-body-height-xs:1rem;--ds-text-body-height-sm:1.25rem;--ds-text-body-height-default:1.5rem;--ds-text-body-height-lg:1.625rem;--ds-color-alert-notification-default:#0074c8;--ds-color-alert-warning-default:#de750c;--ds-color-alert-error-default:#df0b37;--ds-color-alert-success-default:#00805d;--ds-color-alert-advisory-default:#fff0cd;--ds-color-alert-bkg-success-default:#ddf6e8;--ds-color-alert-bkg-error-default:#ffedf1;--ds-color-background-lightest:#ffffff;--ds-color-background-lighter:#f8f8f8;--ds-color-background-darker:#01426a;--ds-color-background-darkest:#00274a;--ds-color-background-gradient-default:linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5));--ds-color-base-white:#ffffff;--ds-color-base-white-opacity-50:rgba(255, 255, 255, 0.5);--ds-color-base-white-opacity-40:rgba(255, 255, 255, 0.4);--ds-color-base-white-opacity-0:rgba(255, 255, 255, 0);--ds-color-base-black:#000000;--ds-color-base-black-opacity-15:rgba(0, 0, 0, 0.15);--ds-color-state-error-100:#ff999b;--ds-color-state-error-500:#df0b37;--ds-color-state-success-100:#69cf96;--ds-color-state-success-500:#00805d;--ds-color-state-warning-500:#de750c;--ds-color-border-primary-default:#626b79;--ds-color-border-primary-inverse:#9fabbb;--ds-color-border-active-default:#0074c8;--ds-color-border-active-inverse:#00cff0;--ds-color-border-error-default:#df0b37;--ds-color-border-disabled-default:#dbdbdb;--ds-color-border-focus-default:#222222;--ds-color-border-divider-default:rgba(0, 0, 0, 0.15);--ds-color-border-divider-inverse:#ffffff;--ds-color-brand-midnight-100:#c1daf0;--ds-color-brand-midnight-200:#569ed7;--ds-color-brand-midnight-300:#156fad;--ds-color-brand-midnight-400:#01426a;--ds-color-brand-midnight-500:#00274a;--ds-color-brand-atlas-100:#cde6ff;--ds-color-brand-atlas-200:#6bb7fb;--ds-color-brand-atlas-300:#2492eb;--ds-color-brand-atlas-400:#0074c8;--ds-color-brand-atlas-500:#054687;--ds-color-brand-breeze-100:#c0f7ff;--ds-color-brand-breeze-200:#5de3f7;--ds-color-brand-breeze-300:#00cff0;--ds-color-brand-breeze-400:#099dc5;--ds-color-brand-breeze-500:#0b5575;--ds-color-brand-tropical-100:#e2ffcd;--ds-color-brand-tropical-200:#d0fba6;--ds-color-brand-tropical-300:#c0e585;--ds-color-brand-tropical-400:#91be62;--ds-color-brand-tropical-500:#5e8741;--ds-color-brand-alpine-100:#bcaae6;--ds-color-brand-alpine-200:#9e73ea;--ds-color-brand-alpine-300:#8439ef;--ds-color-brand-alpine-400:#631db8;--ds-color-brand-alpine-500:#39115c;--ds-color-brand-flamingo-100:#ffebee;--ds-color-brand-flamingo-200:#ffc0ca;--ds-color-brand-flamingo-300:#ff94a7;--ds-color-brand-flamingo-400:#f65b7b;--ds-color-brand-flamingo-500:#b82b47;--ds-color-brand-canyon-100:#ffcab6;--ds-color-brand-canyon-200:#f99574;--ds-color-brand-canyon-300:#f26135;--ds-color-brand-canyon-400:#de3e09;--ds-color-brand-canyon-500:#b83302;--ds-color-brand-goldcoast-100:#fff0cd;--ds-color-brand-goldcoast-200:#ffdb67;--ds-color-brand-goldcoast-300:#ffd200;--ds-color-brand-goldcoast-400:#e5ad07;--ds-color-brand-goldcoast-500:#b88624;--ds-color-brand-neutral-100:#f9fbfc;--ds-color-brand-neutral-200:#e2eaef;--ds-color-brand-neutral-300:#cbd8e2;--ds-color-brand-neutral-400:#9fabbb;--ds-color-brand-neutral-500:#626b79;--ds-color-brand-gray-100:#f8f8f8;--ds-color-brand-gray-200:#dbdbdb;--ds-color-brand-gray-300:#b2b2b2;--ds-color-brand-gray-400:#767676;--ds-color-brand-gray-500:#222222;--ds-color-brand-goldgray-100:#c5c1bf;--ds-color-brand-goldgray-200:#726e6c;--ds-color-brand-gold-100:#ccbc94;--ds-color-brand-gold-200:#7f682e;--ds-color-brand-emerald:#139142;--ds-color-brand-sapphire:#015daa;--ds-color-brand-ruby:#a41d4a;--ds-color-icon-primary-default:#626b79;--ds-color-icon-primary-inverse:#9fabbb;--ds-color-icon-emphasis-default:#222222;--ds-color-icon-emphasis-inverse:#ffffff;--ds-color-icon-accent-default:#0074c8;--ds-color-icon-disabled-default:rgba(0, 0, 0, 0.15);--ds-color-text-primary-default:#222222;--ds-color-text-primary-inverse:#ffffff;--ds-color-text-secondary-default:#626b79;--ds-color-text-secondary-inverse:#9fabbb;--ds-color-text-link-default:#0074c8;--ds-color-text-link-inverse:#00cff0;--ds-color-text-error-default:#df0b37;--ds-color-text-error-inverse:#ff999b;--ds-color-text-disabled-default:#dbdbdb;--ds-color-text-emphasis-default:#01426a;--ds-color-text-emphasis-inverse:#c1daf0;--ds-color-tier-alaska-mvp-default:#726e6c;--ds-color-tier-alaska-mvp-inverse:#c5c1bf;--ds-color-tier-alaska-mvpgold-default:#7f682e;--ds-color-tier-alaska-mvpgold-inverse:#ccbc94;--ds-color-tier-oneworld-emerald:#139142;--ds-color-tier-oneworld-sapphire:#015daa;--ds-color-tier-oneworld-ruby:#a41d4a;--ds-color-ui-default-default:#0074c8;--ds-color-ui-default-inverse:#00cff0;--ds-color-ui-hover-default:#054687;--ds-color-ui-hover-inverse:#5de3f7;--ds-color-ui-active-default:#054687;--ds-color-ui-active-inverse:#5de3f7;--ds-color-ui-disabled-default:rgba(0, 116, 200, 0.2);--ds-color-ui-bkg-default-default:rgba(0, 0, 0, 0.03);--ds-color-ui-bkg-default-inverse:rgba(255, 255, 255, 0.03);--ds-color-ui-bkg-hover-default:rgba(0, 0, 0, 0.06);--ds-color-ui-bkg-hover-inverse:rgba(255, 255, 255, 0.06)}*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;animation-duration:2s;animation-fill-mode:backwards;animation-iteration-count:infinite;animation-name:place-holder-shimmer;animation-timing-function:linear;background-color:var(--ds-color-brand-neutral-100, #f9fbfc);background-image:linear-gradient(to right, var(--ds-color-brand-neutral-100, #f9fbfc) 10%, var(--ds-color-brand-neutral-200, #e2eaef) 40%, var(--ds-color-brand-neutral-100, #f9fbfc) 60%);background-repeat:no-repeat;background-size:1000px 100%}:host([shape=circle]){width:auto;border-radius:50%}:host([shape=oval]){border-radius:9999px}:host([shape=rectangle]){border-radius:var(--ds-border-radius, 0.375rem)}@keyframes place-holder-shimmer{from{background-position:-1000px 0}to{background-position:1000px 0}}`;
27
+ var styleCss = i$1`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;animation-duration:2s;animation-fill-mode:backwards;animation-iteration-count:infinite;animation-name:place-holder-shimmer;animation-timing-function:linear;background-repeat:no-repeat;background-size:1000px 100%}:host([shape=circle]){width:auto;border-radius:50%}:host([shape=oval]){border-radius:9999px}:host([shape=rectangle]){border-radius:var(--ds-border-radius, 0.375rem)}@keyframes place-holder-shimmer{from{background-position:-1000px 0}to{background-position:1000px 0}}`;
28
+
29
+ var colorCss = i$1`:host{background-color:var(--ds-auro-skeleton-container-color);background-image:linear-gradient(to right, var(--ds-auro-skeleton-container-gradient-color-one) 10%, var(--ds-auro-skeleton-container-gradient-color-two) 40%, var(--ds-auro-skeleton-container-gradient-color-one) 60%)}`;
30
+
31
+ var tokensCss = i$1`:host{--ds-auro-skeleton-container-color: var(--ds-color-container-subtle-default, #f7f8fa);--ds-auro-skeleton-container-gradient-color-one: var(--ds-color-container-subtle-default, #f7f8fa);--ds-auro-skeleton-container-gradient-color-two: var(--ds-color-container-tertiary-default, rgba(0, 0, 0, 0.03))}`;
32
+
33
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
34
+ // See LICENSE in the project root for license information.
35
+
36
+ // ---------------------------------------------------------------------
37
+
38
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
39
+
40
+ class AuroLibraryRuntimeUtils {
41
+
42
+ /* eslint-disable jsdoc/require-param */
43
+
44
+ /**
45
+ * This will register a new custom element with the browser.
46
+ * @param {String} name - The name of the custom element.
47
+ * @param {Object} componentClass - The class to register as a custom element.
48
+ * @returns {void}
49
+ */
50
+ registerComponent(name, componentClass) {
51
+ if (!customElements.get(name)) {
52
+ customElements.define(name, class extends componentClass {});
53
+ }
54
+ }
55
+
56
+ /**
57
+ * Finds and returns the closest HTML Element based on a selector.
58
+ * @returns {void}
59
+ */
60
+ closestElement(
61
+ selector, // selector like in .closest()
62
+ base = this, // extra functionality to skip a parent
63
+ __Closest = (el, found = el && el.closest(selector)) =>
64
+ !el || el === document || el === window
65
+ ? null // standard .closest() returns null for non-found selectors also
66
+ : found
67
+ ? found // found a selector INside this element
68
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
69
+ ) {
70
+ return __Closest(base);
71
+ }
72
+ /* eslint-enable jsdoc/require-param */
73
+
74
+ /**
75
+ * If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
76
+ * @param {Object} elem - The element to check.
77
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
78
+ * @returns {void}
79
+ */
80
+ handleComponentTagRename(elem, tagName) {
81
+ const tag = tagName.toLowerCase();
82
+ const elemTag = elem.tagName.toLowerCase();
83
+
84
+ if (elemTag !== tag) {
85
+ elem.setAttribute(tag, true);
86
+ }
87
+ }
88
+
89
+ /**
90
+ * Validates if an element is a specific Auro component.
91
+ * @param {Object} elem - The element to validate.
92
+ * @param {String} tagName - The name of the Auro component to check against.
93
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
94
+ */
95
+ elementMatch(elem, tagName) {
96
+ const tag = tagName.toLowerCase();
97
+ const elemTag = elem.tagName.toLowerCase();
98
+
99
+ return elemTag === tag || elem.hasAttribute(tag);
100
+ }
101
+ }
28
102
 
29
103
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
30
104
  // See LICENSE in the project root for license information.
@@ -38,10 +112,15 @@ var styleCss = i$2`:root{--ds-asset-font-circular-family-name:"AS Circular";--ds
38
112
  */
39
113
 
40
114
  // build the component class
41
- class AuroSkeleton extends s {
42
- // constructor() {
43
- // super();
44
- // }
115
+ class AuroSkeleton extends h {
116
+ constructor() {
117
+ super();
118
+
119
+ /**
120
+ * @private
121
+ */
122
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
123
+ }
45
124
 
46
125
  // function to define props used within the scope of this component
47
126
  static get properties() {
@@ -51,7 +130,16 @@ class AuroSkeleton extends s {
51
130
  }
52
131
 
53
132
  static get styles() {
54
- return [styleCss];
133
+ return [
134
+ styleCss,
135
+ colorCss,
136
+ tokensCss
137
+ ];
138
+ }
139
+
140
+ firstUpdated() {
141
+ // Add the tag name as an attribute if it is different than the component name
142
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-skeleton');
55
143
  }
56
144
 
57
145
  // When using auroElement, use the following attribute and function when hiding content from screen readers.
@@ -59,7 +147,7 @@ class AuroSkeleton extends s {
59
147
 
60
148
  // function that renders the HTML and CSS into the scope of the component
61
149
  render() {
62
- return x`
150
+ return ke`
63
151
  <span class="util_displayHiddenVisually">Loading...</span>
64
152
  `;
65
153
  }
@@ -71,16 +159,4 @@ if (!customElements.get("auro-skeleton")) {
71
159
  customElements.define("auro-skeleton", AuroSkeleton);
72
160
  }
73
161
 
74
- /**
75
- * Register Custom Element.
76
- * @param {Object} name - Name to use for custom element.
77
- * @returns {void}
78
- */
79
- const registerComponent = (name = 'custom-skeleton') => {
80
- // alias definition
81
- if (!customElements.get(name)) {
82
- customElements.define(name, class extends AuroSkeleton {});
83
- }
84
- };
85
-
86
- export { registerComponent };
162
+ AuroLibraryRuntimeUtils.prototype.registerComponent('custom-skeleton', AuroSkeleton);
@@ -0,0 +1,3 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
3
+ //# sourceMappingURL=color-css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-css.d.ts","sourceRoot":"","sources":["../src/color-css.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
3
+ //# sourceMappingURL=tokens-css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens-css.d.ts","sourceRoot":"","sources":["../src/tokens-css.js"],"names":[],"mappings":""}
package/index.js CHANGED
@@ -1,15 +1,4 @@
1
1
  import { AuroSkeleton } from './src/auro-skeleton.js';
2
+ import * as RuntimeUtils from '@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs';
2
3
 
3
- /**
4
- * Register Custom Element.
5
- * @param {Object} name - Name to use for custom element.
6
- * @returns {void}
7
- */
8
- const registerComponent = (name = 'custom-skeleton') => {
9
- // alias definition
10
- if (!customElements.get(name)) {
11
- customElements.define(name, class extends AuroSkeleton {});
12
- }
13
- }
14
-
15
- export { registerComponent }
4
+ RuntimeUtils.default.prototype.registerComponent('custom-skeleton', AuroSkeleton);
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "================================================================================"
8
8
  ],
9
9
  "name": "@aurodesignsystem/auro-skeleton",
10
- "version": "2.1.5",
10
+ "version": "3.0.0-beta.1",
11
11
  "description": "auro-skeleton HTML custom element",
12
12
  "repository": {
13
13
  "type": "git",
@@ -21,53 +21,53 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "chalk": "^5.3.0",
24
- "lit": "^3.1.2"
24
+ "lit": "^3.2.0"
25
25
  },
26
26
  "peerDependencies": {
27
- "@aurodesignsystem/design-tokens": "^4.3.0",
28
- "@aurodesignsystem/webcorestylesheets": "^5.0.6"
27
+ "@aurodesignsystem/design-tokens": "^4.9.2",
28
+ "@aurodesignsystem/webcorestylesheets": "^5.1.2"
29
29
  },
30
30
  "devDependencies": {
31
- "@aurodesignsystem/auro-library": "^2.5.1",
32
- "@aurodesignsystem/design-tokens": "^4.3.0",
33
- "@aurodesignsystem/eslint-config": "^1.3.1",
34
- "@aurodesignsystem/webcorestylesheets": "^5.0.8",
35
- "@commitlint/cli": "^18.6.1",
36
- "@commitlint/config-conventional": "^18.6.2",
31
+ "@aurodesignsystem/auro-library": "^2.8.0",
32
+ "@aurodesignsystem/design-tokens": "^4.9.2",
33
+ "@aurodesignsystem/eslint-config": "^1.3.2",
34
+ "@aurodesignsystem/webcorestylesheets": "^5.1.2",
35
+ "@commitlint/cli": "^19.5.0",
36
+ "@commitlint/config-conventional": "^19.5.0",
37
37
  "@open-wc/testing": "^4.0.0",
38
- "@rollup/plugin-node-resolve": "^15.2.3",
38
+ "@rollup/plugin-node-resolve": "^15.3.0",
39
39
  "@semantic-release/changelog": "^6.0.3",
40
40
  "@semantic-release/git": "^10.0.1",
41
- "@semantic-release/npm": "^11.0.2",
42
- "@web/dev-server": "^0.4.1",
43
- "@web/test-runner": "^0.18.0",
44
- "autoprefixer": "^10.4.17",
41
+ "@semantic-release/npm": "^12.0.1",
42
+ "@web/dev-server": "^0.4.5",
43
+ "@web/test-runner": "^0.19.0",
44
+ "autoprefixer": "^10.4.20",
45
45
  "compression": "^1.7.4",
46
46
  "concat": "^1.0.3",
47
- "concurrently": "^8.2.2",
47
+ "concurrently": "^9.0.1",
48
48
  "copyfiles": "^2.4.1",
49
- "core-js": "^3.36.0",
50
- "eslint": "^8.56.0",
51
- "eslint-plugin-jsdoc": "^48.1.0",
52
- "husky": "^9.0.11",
49
+ "core-js": "^3.38.1",
50
+ "eslint": "^9.11.1",
51
+ "eslint-plugin-jsdoc": "^50.3.0",
52
+ "husky": "^9.1.6",
53
53
  "lodash": "^4.17.21",
54
54
  "markdown-magic": "^2.6.1",
55
- "nodemon": "^3.0.3",
55
+ "nodemon": "^3.1.7",
56
56
  "npm-run-all": "^4.1.5",
57
- "postcss": "^8.4.35",
58
- "postcss-discard-comments": "^6.0.1",
57
+ "postcss": "^8.4.47",
58
+ "postcss-discard-comments": "^7.0.3",
59
59
  "postcss-selector-replace": "^1.0.2",
60
- "rollup": "^4.11.0",
60
+ "rollup": "^4.22.5",
61
61
  "rollup-plugin-serve": "^1.1.1",
62
- "sass": "^1.70.0",
63
- "semantic-release": "^23.0.2",
64
- "stylelint": "^16.2.1",
62
+ "sass": "^1.79.3",
63
+ "semantic-release": "^24.1.2",
64
+ "stylelint": "^16.9.0",
65
65
  "stylelint-config-idiomatic-order": "^10.0.0",
66
66
  "stylelint-config-standard": "^36.0.0",
67
- "stylelint-config-standard-scss": "^13.0.0",
67
+ "stylelint-config-standard-scss": "^13.1.0",
68
68
  "stylelint-order": "^6.0.4",
69
- "stylelint-scss": "^6.1.0",
70
- "typescript": "^5.3.3",
69
+ "stylelint-scss": "^6.7.0",
70
+ "typescript": "^5.6.2",
71
71
  "wc-sass-render": "^1.4.0",
72
72
  "web-component-analyzer": "^2.0.0",
73
73
  "whatwg-fetch": "^3.6.20",
@@ -93,7 +93,13 @@
93
93
  },
94
94
  "release": {
95
95
  "branches": [
96
- "main"
96
+ {
97
+ "name": "main"
98
+ },
99
+ {
100
+ "name": "beta",
101
+ "prerelease": true
102
+ }
97
103
  ],
98
104
  "plugins": [
99
105
  "@semantic-release/commit-analyzer",
@@ -132,11 +138,13 @@
132
138
  "web components"
133
139
  ],
134
140
  "scripts": {
135
- "build": "npm-run-all build:sass sass:render scssLint dist:js bundler postinstall build:api types build:docs",
136
- "build:ci": "npm-run-all sweep build",
141
+ "build": "npm-run-all build:sass sass:render types",
142
+ "build:test": "npm-run-all test linters",
143
+ "build:release": "npm-run-all build build:test build:api build:docs bundler postinstall",
144
+ "build:ci": "npm-run-all sweep build:release",
137
145
  "build:api": "wca analyze 'src/auro-skeleton.js' --outFiles docs/api.md",
138
146
  "build:dev:assets": "npm-run-all build:sass:component postCss:component sass:render build:docs",
139
- "build:docs": "node scripts/generateDocs.mjs",
147
+ "build:docs": "node ./node_modules/@aurodesignsystem/auro-library/scripts/build/generateDocs.mjs",
140
148
  "build:sass": "npm-run-all build:sass:component postCss:component sass:render",
141
149
  "build:sass:component": "sass --no-source-map src:src",
142
150
  "build:watch": "nodemon -e scss,js,html --watch src --watch apiExamples/**/* --exec npm run build:dev:assets",
@@ -147,10 +155,10 @@
147
155
  "dist:js": "copyfiles -u 1 -V './src/**/*.js' ./dist",
148
156
  "esLint": "./node_modules/.bin/eslint src/**/*.js",
149
157
  "linters": "npm-run-all scssLint esLint",
150
- "preCommit": "node scripts/pre-commit.mjs",
151
- "postCss:component": "node scripts/postCss.mjs",
158
+ "preCommit": "node ./node_modules/@aurodesignsystem/auro-library/scripts/build/pre-commit.mjs",
159
+ "postCss:component": "node ./node_modules/@aurodesignsystem/auro-library/scripts/build/postCss.mjs",
152
160
  "postinstall": "node packageScripts/postinstall.mjs",
153
- "sass:render": "sass-render src/*.css -t ./scripts/staticStyles-template.js",
161
+ "sass:render": "sass-render src/*.css -t ./node_modules/@aurodesignsystem/auro-library/scripts/build/staticStyles-template.js",
154
162
  "serve": "web-dev-server --open demo/ --node-resolve --watch",
155
163
  "sweep": "rm -rf ./demo/css ./dist | rm ./src/*.css ./src/*-css.js",
156
164
  "test": "wtr --coverage",
@@ -7,6 +7,10 @@
7
7
  import { LitElement, html } from "lit";
8
8
 
9
9
  import styleCss from "./style-css.js";
10
+ import colorCss from "./color-css.js";
11
+ import tokensCss from "./tokens-css.js";
12
+
13
+ import AuroLibraryRuntimeUtils from '@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs';
10
14
 
11
15
  // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
12
16
  /**
@@ -17,9 +21,14 @@ import styleCss from "./style-css.js";
17
21
 
18
22
  // build the component class
19
23
  export class AuroSkeleton extends LitElement {
20
- // constructor() {
21
- // super();
22
- // }
24
+ constructor() {
25
+ super();
26
+
27
+ /**
28
+ * @private
29
+ */
30
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
31
+ }
23
32
 
24
33
  // function to define props used within the scope of this component
25
34
  static get properties() {
@@ -29,7 +38,16 @@ export class AuroSkeleton extends LitElement {
29
38
  }
30
39
 
31
40
  static get styles() {
32
- return [styleCss];
41
+ return [
42
+ styleCss,
43
+ colorCss,
44
+ tokensCss
45
+ ];
46
+ }
47
+
48
+ firstUpdated() {
49
+ // Add the tag name as an attribute if it is different than the component name
50
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-skeleton');
33
51
  }
34
52
 
35
53
  // When using auroElement, use the following attribute and function when hiding content from screen readers.
@@ -0,0 +1,2 @@
1
+ import { css } from 'lit';
2
+ export default css`:host{background-color:var(--ds-auro-skeleton-container-color);background-image:linear-gradient(to right, var(--ds-auro-skeleton-container-gradient-color-one) 10%, var(--ds-auro-skeleton-container-gradient-color-two) 40%, var(--ds-auro-skeleton-container-gradient-color-one) 60%)}`;
package/src/style-css.js CHANGED
@@ -1,2 +1,2 @@
1
- import {css} from 'lit';
2
- export default css`:root{--ds-asset-font-circular-family-name:"AS Circular";--ds-asset-font-circular-filename:"ASCircularWeb";--ds-asset-font-circular-weight-light:"-Light";--ds-asset-font-circular-weight-medium:"-Medium";--ds-asset-font-circular-weight-book:"-Book";--ds-border-radius:0.375rem;--ds-size-25:0.125rem;--ds-size-50:0.25rem;--ds-size-100:0.5rem;--ds-size-150:0.75rem;--ds-size-200:1rem;--ds-size-300:1.5rem;--ds-size-400:2rem;--ds-size-500:2.5rem;--ds-size-600:3rem;--ds-size-700:3.5rem;--ds-size-800:4rem;--ds-size-900:4.5rem;--ds-size-1000:5rem;--ds-unitless-scale-20:0.25;--ds-unitless-scale-50:0.5;--ds-unitless-scale-100:1;--ds-unitless-scale-140:1.4;--ds-unitless-scale-150:1.5;--ds-unitless-scale-200:2;--ds-unitless-scale-300:3;--ds-unitless-scale-350:3.5;--ds-animation-default-property:all;--ds-animation-default-duration:0.3s;--ds-animation-default-timing:ease-out;--ds-depth-overlay:200;--ds-depth-modal:400;--ds-depth-tooltip:300;--ds-elevation-100:0px 0px 5px rgba(0, 0, 0, 0.15);--ds-elevation-200:0px 0px 10px rgba(0, 0, 0, 0.15);--ds-elevation-300:0px 0px 15px rgba(0, 0, 0, 0.2);--ds-grid-breakpoint-xs:320px;--ds-grid-breakpoint-sm:576px;--ds-grid-breakpoint-md:768px;--ds-grid-breakpoint-lg:1024px;--ds-grid-breakpoint-xl:1232px;--ds-grid-column-xs:6;--ds-grid-column-sm:12;--ds-grid-column-md:12;--ds-grid-column-lg:12;--ds-grid-column-xl:12;--ds-grid-gutter-xs:0.5rem;--ds-grid-gutter-sm:1rem;--ds-grid-gutter-md:1.5rem;--ds-grid-gutter-lg:1.5rem;--ds-grid-gutter-xl:2rem;--ds-grid-margin-xs:1rem;--ds-grid-margin-sm:1rem;--ds-grid-margin-md:1.5rem;--ds-grid-margin-lg:2rem;--ds-grid-margin-xl:2rem;--ds-font-family-default:"AS Circular", Helvetica Neue, Arial, sans-serif;--ds-font-family-mono:Menlo, Monaco, Consolas, "Courier New", monospace;--ds-text-heading-300-weight:300;--ds-text-heading-300-px:18px;--ds-text-heading-300-size:1.125rem;--ds-text-heading-300-height:1.625rem;--ds-text-heading-300-height-px:26px;--ds-text-heading-400-weight:300;--ds-text-heading-400-px:20px;--ds-text-heading-400-size:1.25rem;--ds-text-heading-400-height:1.625rem;--ds-text-heading-400-height-px:26px;--ds-text-heading-500-weight:300;--ds-text-heading-500-px-breakpoint-sm:22px;--ds-text-heading-500-px-breakpoint-md:24px;--ds-text-heading-500-px-breakpoint-lg:24px;--ds-text-heading-500-size-breakpoint-sm:1.375rem;--ds-text-heading-500-size-breakpoint-md:1.5rem;--ds-text-heading-500-size-breakpoint-lg:1.5rem;--ds-text-heading-500-height-breakpoint-sm:1.625rem;--ds-text-heading-500-height-breakpoint-px-sm:26px;--ds-text-heading-500-height-breakpoint-md:1.875rem;--ds-text-heading-500-height-breakpoint-px-md:30px;--ds-text-heading-500-height-breakpoint-lg:2rem;--ds-text-heading-500-height-breakpoint-px-lg:32px;--ds-text-heading-600-weight:300;--ds-text-heading-600-px-breakpoint-sm:26px;--ds-text-heading-600-px-breakpoint-md:28px;--ds-text-heading-600-px-breakpoint-lg:28px;--ds-text-heading-600-size-breakpoint-sm:1.625rem;--ds-text-heading-600-size-breakpoint-md:1.75rem;--ds-text-heading-600-size-breakpoint-lg:1.75rem;--ds-text-heading-600-height-breakpoint-sm:1.875rem;--ds-text-heading-600-height-breakpoint-px-sm:30px;--ds-text-heading-600-height-breakpoint-md:2.125rem;--ds-text-heading-600-height-breakpoint-px-md:34px;--ds-text-heading-600-height-breakpoint-lg:2.25rem;--ds-text-heading-600-height-breakpoint-px-lg:36px;--ds-text-heading-700-weight:500;--ds-text-heading-700-px-breakpoint-sm:28px;--ds-text-heading-700-px-breakpoint-md:32px;--ds-text-heading-700-px-breakpoint-lg:36px;--ds-text-heading-700-size-breakpoint-sm:1.75rem;--ds-text-heading-700-size-breakpoint-md:2rem;--ds-text-heading-700-size-breakpoint-lg:2.25rem;--ds-text-heading-700-height-breakpoint-sm:2.125rem;--ds-text-heading-700-height-breakpoint-px-sm:34px;--ds-text-heading-700-height-breakpoint-md:2.375rem;--ds-text-heading-700-height-breakpoint-px-md:38px;--ds-text-heading-700-height-breakpoint-lg:2.75rem;--ds-text-heading-700-height-breakpoint-px-lg:44px;--ds-text-heading-800-weight:500;--ds-text-heading-800-px-breakpoint-sm:32px;--ds-text-heading-800-px-breakpoint-md:36px;--ds-text-heading-800-px-breakpoint-lg:40px;--ds-text-heading-800-size-breakpoint-sm:2rem;--ds-text-heading-800-size-breakpoint-md:2.25rem;--ds-text-heading-800-size-breakpoint-lg:2.5rem;--ds-text-heading-800-height-breakpoint-sm:2.375rem;--ds-text-heading-800-height-breakpoint-px-sm:38px;--ds-text-heading-800-height-breakpoint-md:2.625rem;--ds-text-heading-800-height-breakpoint-px-md:42px;--ds-text-heading-800-height-breakpoint-lg:3rem;--ds-text-heading-800-height-breakpoint-px-lg:48px;--ds-text-heading-default-weight:500;--ds-text-heading-default-margin:0;--ds-text-heading-default-spacing:-0.2px;--ds-text-heading-medium-weight:300;--ds-text-heading-display-weight:100;--ds-text-heading-display-px-breakpoint-sm:44px;--ds-text-heading-display-px-breakpoint-md:48px;--ds-text-heading-display-px-breakpoint-lg:56px;--ds-text-heading-display-size-breakpoint-sm:2.75rem;--ds-text-heading-display-size-breakpoint-md:3rem;--ds-text-heading-display-size-breakpoint-lg:3.5rem;--ds-text-heading-display-height-breakpoint-sm:3.375rem;--ds-text-heading-display-height-breakpoint-px-sm:54px;--ds-text-heading-display-height-breakpoint-md:3.75rem;--ds-text-heading-display-height-breakpoint-px-md:60px;--ds-text-heading-display-height-breakpoint-lg:4.25rem;--ds-text-heading-display-height-breakpoint-px-lg:68px;--ds-text-body-default-weight:500;--ds-text-body-size-xxs:0.625rem;--ds-text-body-size-xs:0.75rem;--ds-text-body-size-sm:0.875rem;--ds-text-body-size-default:1rem;--ds-text-body-size-lg:1.125rem;--ds-text-body-height-xs:1rem;--ds-text-body-height-sm:1.25rem;--ds-text-body-height-default:1.5rem;--ds-text-body-height-lg:1.625rem;--ds-color-alert-notification-default:#0074c8;--ds-color-alert-warning-default:#de750c;--ds-color-alert-error-default:#df0b37;--ds-color-alert-success-default:#00805d;--ds-color-alert-advisory-default:#fff0cd;--ds-color-alert-bkg-success-default:#ddf6e8;--ds-color-alert-bkg-error-default:#ffedf1;--ds-color-background-lightest:#ffffff;--ds-color-background-lighter:#f8f8f8;--ds-color-background-darker:#01426a;--ds-color-background-darkest:#00274a;--ds-color-background-gradient-default:linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5));--ds-color-base-white:#ffffff;--ds-color-base-white-opacity-50:rgba(255, 255, 255, 0.5);--ds-color-base-white-opacity-40:rgba(255, 255, 255, 0.4);--ds-color-base-white-opacity-0:rgba(255, 255, 255, 0);--ds-color-base-black:#000000;--ds-color-base-black-opacity-15:rgba(0, 0, 0, 0.15);--ds-color-state-error-100:#ff999b;--ds-color-state-error-500:#df0b37;--ds-color-state-success-100:#69cf96;--ds-color-state-success-500:#00805d;--ds-color-state-warning-500:#de750c;--ds-color-border-primary-default:#626b79;--ds-color-border-primary-inverse:#9fabbb;--ds-color-border-active-default:#0074c8;--ds-color-border-active-inverse:#00cff0;--ds-color-border-error-default:#df0b37;--ds-color-border-disabled-default:#dbdbdb;--ds-color-border-focus-default:#222222;--ds-color-border-divider-default:rgba(0, 0, 0, 0.15);--ds-color-border-divider-inverse:#ffffff;--ds-color-brand-midnight-100:#c1daf0;--ds-color-brand-midnight-200:#569ed7;--ds-color-brand-midnight-300:#156fad;--ds-color-brand-midnight-400:#01426a;--ds-color-brand-midnight-500:#00274a;--ds-color-brand-atlas-100:#cde6ff;--ds-color-brand-atlas-200:#6bb7fb;--ds-color-brand-atlas-300:#2492eb;--ds-color-brand-atlas-400:#0074c8;--ds-color-brand-atlas-500:#054687;--ds-color-brand-breeze-100:#c0f7ff;--ds-color-brand-breeze-200:#5de3f7;--ds-color-brand-breeze-300:#00cff0;--ds-color-brand-breeze-400:#099dc5;--ds-color-brand-breeze-500:#0b5575;--ds-color-brand-tropical-100:#e2ffcd;--ds-color-brand-tropical-200:#d0fba6;--ds-color-brand-tropical-300:#c0e585;--ds-color-brand-tropical-400:#91be62;--ds-color-brand-tropical-500:#5e8741;--ds-color-brand-alpine-100:#bcaae6;--ds-color-brand-alpine-200:#9e73ea;--ds-color-brand-alpine-300:#8439ef;--ds-color-brand-alpine-400:#631db8;--ds-color-brand-alpine-500:#39115c;--ds-color-brand-flamingo-100:#ffebee;--ds-color-brand-flamingo-200:#ffc0ca;--ds-color-brand-flamingo-300:#ff94a7;--ds-color-brand-flamingo-400:#f65b7b;--ds-color-brand-flamingo-500:#b82b47;--ds-color-brand-canyon-100:#ffcab6;--ds-color-brand-canyon-200:#f99574;--ds-color-brand-canyon-300:#f26135;--ds-color-brand-canyon-400:#de3e09;--ds-color-brand-canyon-500:#b83302;--ds-color-brand-goldcoast-100:#fff0cd;--ds-color-brand-goldcoast-200:#ffdb67;--ds-color-brand-goldcoast-300:#ffd200;--ds-color-brand-goldcoast-400:#e5ad07;--ds-color-brand-goldcoast-500:#b88624;--ds-color-brand-neutral-100:#f9fbfc;--ds-color-brand-neutral-200:#e2eaef;--ds-color-brand-neutral-300:#cbd8e2;--ds-color-brand-neutral-400:#9fabbb;--ds-color-brand-neutral-500:#626b79;--ds-color-brand-gray-100:#f8f8f8;--ds-color-brand-gray-200:#dbdbdb;--ds-color-brand-gray-300:#b2b2b2;--ds-color-brand-gray-400:#767676;--ds-color-brand-gray-500:#222222;--ds-color-brand-goldgray-100:#c5c1bf;--ds-color-brand-goldgray-200:#726e6c;--ds-color-brand-gold-100:#ccbc94;--ds-color-brand-gold-200:#7f682e;--ds-color-brand-emerald:#139142;--ds-color-brand-sapphire:#015daa;--ds-color-brand-ruby:#a41d4a;--ds-color-icon-primary-default:#626b79;--ds-color-icon-primary-inverse:#9fabbb;--ds-color-icon-emphasis-default:#222222;--ds-color-icon-emphasis-inverse:#ffffff;--ds-color-icon-accent-default:#0074c8;--ds-color-icon-disabled-default:rgba(0, 0, 0, 0.15);--ds-color-text-primary-default:#222222;--ds-color-text-primary-inverse:#ffffff;--ds-color-text-secondary-default:#626b79;--ds-color-text-secondary-inverse:#9fabbb;--ds-color-text-link-default:#0074c8;--ds-color-text-link-inverse:#00cff0;--ds-color-text-error-default:#df0b37;--ds-color-text-error-inverse:#ff999b;--ds-color-text-disabled-default:#dbdbdb;--ds-color-text-emphasis-default:#01426a;--ds-color-text-emphasis-inverse:#c1daf0;--ds-color-tier-alaska-mvp-default:#726e6c;--ds-color-tier-alaska-mvp-inverse:#c5c1bf;--ds-color-tier-alaska-mvpgold-default:#7f682e;--ds-color-tier-alaska-mvpgold-inverse:#ccbc94;--ds-color-tier-oneworld-emerald:#139142;--ds-color-tier-oneworld-sapphire:#015daa;--ds-color-tier-oneworld-ruby:#a41d4a;--ds-color-ui-default-default:#0074c8;--ds-color-ui-default-inverse:#00cff0;--ds-color-ui-hover-default:#054687;--ds-color-ui-hover-inverse:#5de3f7;--ds-color-ui-active-default:#054687;--ds-color-ui-active-inverse:#5de3f7;--ds-color-ui-disabled-default:rgba(0, 116, 200, 0.2);--ds-color-ui-bkg-default-default:rgba(0, 0, 0, 0.03);--ds-color-ui-bkg-default-inverse:rgba(255, 255, 255, 0.03);--ds-color-ui-bkg-hover-default:rgba(0, 0, 0, 0.06);--ds-color-ui-bkg-hover-inverse:rgba(255, 255, 255, 0.06)}*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;animation-duration:2s;animation-fill-mode:backwards;animation-iteration-count:infinite;animation-name:place-holder-shimmer;animation-timing-function:linear;background-color:var(--ds-color-brand-neutral-100, #f9fbfc);background-image:linear-gradient(to right, var(--ds-color-brand-neutral-100, #f9fbfc) 10%, var(--ds-color-brand-neutral-200, #e2eaef) 40%, var(--ds-color-brand-neutral-100, #f9fbfc) 60%);background-repeat:no-repeat;background-size:1000px 100%}:host([shape=circle]){width:auto;border-radius:50%}:host([shape=oval]){border-radius:9999px}:host([shape=rectangle]){border-radius:var(--ds-border-radius, 0.375rem)}@keyframes place-holder-shimmer{from{background-position:-1000px 0}to{background-position:1000px 0}}`;
1
+ import { css } from 'lit';
2
+ export default css`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;animation-duration:2s;animation-fill-mode:backwards;animation-iteration-count:infinite;animation-name:place-holder-shimmer;animation-timing-function:linear;background-repeat:no-repeat;background-size:1000px 100%}:host([shape=circle]){width:auto;border-radius:50%}:host([shape=oval]){border-radius:9999px}:host([shape=rectangle]){border-radius:var(--ds-border-radius, 0.375rem)}@keyframes place-holder-shimmer{from{background-position:-1000px 0}to{background-position:1000px 0}}`;
@@ -0,0 +1,2 @@
1
+ import { css } from 'lit';
2
+ export default css`:host{--ds-auro-skeleton-container-color: var(--ds-color-container-subtle-default, #f7f8fa);--ds-auro-skeleton-container-gradient-color-one: var(--ds-color-container-subtle-default, #f7f8fa);--ds-auro-skeleton-container-gradient-color-two: var(--ds-color-container-tertiary-default, rgba(0, 0, 0, 0.03))}`;