@aurodesignsystem/auro-skeleton 1.0.8 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -155,4 +155,4 @@ found at http://polymer.github.io/PATENTS.txt
155
155
  * subject to an additional IP rights grant found at
156
156
  * http://polymer.github.io/PATENTS.txt
157
157
  */
158
- (window.litElementVersions||(window.litElementVersions=[])).push("2.5.1");const F={};class q extends M{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const t=this.getStyles();if(Array.isArray(t)){const e=(t,s)=>t.reduceRight(((t,s)=>Array.isArray(s)?e(s,t):(t.add(s),t)),s),s=e(t,new Set),i=[];s.forEach((t=>i.unshift(t))),this._styles=i}else this._styles=void 0===t?[]:[t];this._styles=this._styles.map((t=>{if(t instanceof CSSStyleSheet&&!$){const e=Array.prototype.slice.call(t.cssRules).reduce(((t,e)=>t+e.cssText),"");return new j(String(e),I)}return t}))}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow(this.constructor.shadowRootOptions)}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?$?this.renderRoot.adoptedStyleSheets=t.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map((t=>t.cssText)),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){const e=this.render();super.update(t),e!==F&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)})))}render(){return F}}q.finalized=!0,q.render=(t,e,s)=>{let n=U.get(e);void 0===n&&(i(e,e.firstChild),U.set(e,n=new S(Object.assign({templateFactory:L},s))),n.appendInto(e)),n.setValue(t),n.commit()},q.shadowRootOptions={mode:"open"},function(){function t(t){var e=!0,s=!1,i=null,n={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function r(t){return!!(t&&t!==document&&"HTML"!==t.nodeName&&"BODY"!==t.nodeName&&"classList"in t&&"contains"in t.classList)}function o(t){t.classList.contains("focus-visible")||(t.classList.add("focus-visible"),t.setAttribute("data-focus-visible-added",""))}function a(t){e=!1}function d(){document.addEventListener("mousemove",l),document.addEventListener("mousedown",l),document.addEventListener("mouseup",l),document.addEventListener("pointermove",l),document.addEventListener("pointerdown",l),document.addEventListener("pointerup",l),document.addEventListener("touchmove",l),document.addEventListener("touchstart",l),document.addEventListener("touchend",l)}function l(t){t.target.nodeName&&"html"===t.target.nodeName.toLowerCase()||(e=!1,document.removeEventListener("mousemove",l),document.removeEventListener("mousedown",l),document.removeEventListener("mouseup",l),document.removeEventListener("pointermove",l),document.removeEventListener("pointerdown",l),document.removeEventListener("pointerup",l),document.removeEventListener("touchmove",l),document.removeEventListener("touchstart",l),document.removeEventListener("touchend",l))}document.addEventListener("keydown",(function(s){s.metaKey||s.altKey||s.ctrlKey||(r(t.activeElement)&&o(t.activeElement),e=!0)}),!0),document.addEventListener("mousedown",a,!0),document.addEventListener("pointerdown",a,!0),document.addEventListener("touchstart",a,!0),document.addEventListener("visibilitychange",(function(t){"hidden"===document.visibilityState&&(s&&(e=!0),d())}),!0),d(),t.addEventListener("focus",(function(t){var s,i,a;r(t.target)&&(e||(i=(s=t.target).type,"INPUT"===(a=s.tagName)&&n[i]&&!s.readOnly||"TEXTAREA"===a&&!s.readOnly||s.isContentEditable))&&o(t.target)}),!0),t.addEventListener("blur",(function(t){var e;r(t.target)&&(t.target.classList.contains("focus-visible")||t.target.hasAttribute("data-focus-visible-added"))&&(s=!0,window.clearTimeout(i),i=window.setTimeout((function(){s=!1}),100),(e=t.target).hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added")))}),!0),t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host?t.host.setAttribute("data-js-focus-visible",""):t.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var e;window.applyFocusVisiblePolyfill=t;try{e=new CustomEvent("focus-visible-polyfill-ready")}catch(t){(e=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(e)}"undefined"!=typeof document&&t(document)}();var B=z`*,:after,:before{box-sizing:border-box}@media (prefers-reduced-motion:reduce){*,:after,:before{transition:none!important;animation:none!important}}:focus-visible{outline:0}:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.js-focus-visible :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:placeHolderShimmer;animation-timing-function:linear;background-color:#f9fbfc;background-color:var(--auro-color-brand-neutral-100);background-image:linear-gradient(to right,#f9fbfc 5%,#fff 25%,#f9fbfc 35%);background-image:linear-gradient(to right,var(--auro-color-brand-neutral-100) 5%,var(--auro-color-background-lightest) 25%,var(--auro-color-brand-neutral-100) 35%);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:.375rem;border-radius:var(--auro-border-radius)}@keyframes placeHolderShimmer{from{background-position:-1000px 0}to{background-position:1000px 0}}`;class D extends q{static get properties(){return{}}static get styles(){return z`${B}`}render(){return H`<span class="util_displayHiddenVisually">Loading...</span>`}}customElements.get("auro-skeleton")||customElements.define("auro-skeleton",D);
158
+ (window.litElementVersions||(window.litElementVersions=[])).push("2.5.1");const F={};class q extends M{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const t=this.getStyles();if(Array.isArray(t)){const e=(t,s)=>t.reduceRight(((t,s)=>Array.isArray(s)?e(s,t):(t.add(s),t)),s),s=e(t,new Set),i=[];s.forEach((t=>i.unshift(t))),this._styles=i}else this._styles=void 0===t?[]:[t];this._styles=this._styles.map((t=>{if(t instanceof CSSStyleSheet&&!$){const e=Array.prototype.slice.call(t.cssRules).reduce(((t,e)=>t+e.cssText),"");return new j(String(e),I)}return t}))}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow(this.constructor.shadowRootOptions)}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?$?this.renderRoot.adoptedStyleSheets=t.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map((t=>t.cssText)),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){const e=this.render();super.update(t),e!==F&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)})))}render(){return F}}q.finalized=!0,q.render=(t,e,s)=>{let n=U.get(e);void 0===n&&(i(e,e.firstChild),U.set(e,n=new S(Object.assign({templateFactory:L},s))),n.appendInto(e)),n.setValue(t),n.commit()},q.shadowRootOptions={mode:"open"},function(){function t(t){var e=!0,s=!1,i=null,n={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function r(t){return!!(t&&t!==document&&"HTML"!==t.nodeName&&"BODY"!==t.nodeName&&"classList"in t&&"contains"in t.classList)}function o(t){t.classList.contains("focus-visible")||(t.classList.add("focus-visible"),t.setAttribute("data-focus-visible-added",""))}function a(t){e=!1}function d(){document.addEventListener("mousemove",l),document.addEventListener("mousedown",l),document.addEventListener("mouseup",l),document.addEventListener("pointermove",l),document.addEventListener("pointerdown",l),document.addEventListener("pointerup",l),document.addEventListener("touchmove",l),document.addEventListener("touchstart",l),document.addEventListener("touchend",l)}function l(t){t.target.nodeName&&"html"===t.target.nodeName.toLowerCase()||(e=!1,document.removeEventListener("mousemove",l),document.removeEventListener("mousedown",l),document.removeEventListener("mouseup",l),document.removeEventListener("pointermove",l),document.removeEventListener("pointerdown",l),document.removeEventListener("pointerup",l),document.removeEventListener("touchmove",l),document.removeEventListener("touchstart",l),document.removeEventListener("touchend",l))}document.addEventListener("keydown",(function(s){s.metaKey||s.altKey||s.ctrlKey||(r(t.activeElement)&&o(t.activeElement),e=!0)}),!0),document.addEventListener("mousedown",a,!0),document.addEventListener("pointerdown",a,!0),document.addEventListener("touchstart",a,!0),document.addEventListener("visibilitychange",(function(t){"hidden"===document.visibilityState&&(s&&(e=!0),d())}),!0),d(),t.addEventListener("focus",(function(t){var s,i,a;r(t.target)&&(e||(i=(s=t.target).type,"INPUT"===(a=s.tagName)&&n[i]&&!s.readOnly||"TEXTAREA"===a&&!s.readOnly||s.isContentEditable))&&o(t.target)}),!0),t.addEventListener("blur",(function(t){var e;r(t.target)&&(t.target.classList.contains("focus-visible")||t.target.hasAttribute("data-focus-visible-added"))&&(s=!0,window.clearTimeout(i),i=window.setTimeout((function(){s=!1}),100),(e=t.target).hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added")))}),!0),t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host?t.host.setAttribute("data-js-focus-visible",""):t.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var e;window.applyFocusVisiblePolyfill=t;try{e=new CustomEvent("focus-visible-polyfill-ready")}catch(t){(e=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(e)}"undefined"!=typeof document&&t(document)}();var B=z`*,:after,:before{box-sizing:border-box}@media (prefers-reduced-motion:reduce){*,:after,:before{transition:none!important;animation:none!important}}:focus-visible{outline:0}:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.js-focus-visible :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:placeHolderShimmer;animation-timing-function:linear;background-color:#f9fbfc;background-color:var(--auro-color-brand-neutral-100);background-image:linear-gradient(to right,#f9fbfc 10%,#e2eaef 40%,#f9fbfc 60%);background-image:linear-gradient(to right,var(--auro-color-brand-neutral-100) 10%,var(--auro-color-brand-neutral-200) 40%,var(--auro-color-brand-neutral-100) 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:.375rem;border-radius:var(--auro-border-radius)}@keyframes placeHolderShimmer{from{background-position:-1000px 0}to{background-position:1000px 0}}`;class D extends q{static get properties(){return{}}static get styles(){return z`${B}`}render(){return H`<span class="util_displayHiddenVisually">Loading...</span>`}}customElements.get("auro-skeleton")||customElements.define("auro-skeleton",D);
package/dist/style-css.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import {css} from 'lit-element';
2
- export default css`*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: reduce){*,*:before,*:after{transition:none !important;animation:none !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.js-focus-visible :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:placeHolderShimmer;animation-timing-function:linear;background-color:#f9fbfc;background-color:var(--auro-color-brand-neutral-100);background-image:linear-gradient(to right, #f9fbfc 5%, #fff 25%, #f9fbfc 35%);background-image:linear-gradient(to right, var(--auro-color-brand-neutral-100) 5%, var(--auro-color-background-lightest) 25%, var(--auro-color-brand-neutral-100) 35%);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:0.375rem;border-radius:var(--auro-border-radius)}@keyframes placeHolderShimmer{from{background-position:-1000px 0}to{background-position:1000px 0}}
2
+ export default css`*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: reduce){*,*:before,*:after{transition:none !important;animation:none !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.js-focus-visible :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:placeHolderShimmer;animation-timing-function:linear;background-color:#f9fbfc;background-color:var(--auro-color-brand-neutral-100);background-image:linear-gradient(to right, #f9fbfc 10%, #e2eaef 40%, #f9fbfc 60%);background-image:linear-gradient(to right, var(--auro-color-brand-neutral-100) 10%, var(--auro-color-brand-neutral-200) 40%, var(--auro-color-brand-neutral-100) 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:0.375rem;border-radius:var(--auro-border-radius)}@keyframes placeHolderShimmer{from{background-position:-1000px 0}to{background-position:1000px 0}}
3
3
  `;
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "================================================================================"
9
9
  ],
10
10
  "name": "@aurodesignsystem/auro-skeleton",
11
- "version": "1.0.8",
11
+ "version": "2.1.0",
12
12
  "description": "auro-skeleton HTML custom element",
13
13
  "repository": {
14
14
  "type": "git",
@@ -17,8 +17,8 @@
17
17
  "main": "index.js",
18
18
  "license": "Apache-2.0",
19
19
  "dependencies": {
20
- "lit-element": "^2.5.1",
21
- "chalk": "^4.1.1"
20
+ "chalk": "^4.1.2",
21
+ "lit-element": "^2.5.1"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "@alaskaairux/design-tokens": "^3.3.0",
@@ -28,57 +28,57 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "@alaskaairux/design-tokens": "^3.3.0",
31
- "@alaskaairux/webcorestylesheets": "^3.4.0",
31
+ "@alaskaairux/webcorestylesheets": "^3.6.2",
32
32
  "@aurodesignsystem/eslint-config": "^1.2.0",
33
- "@babel/core": "^7.14.6",
33
+ "@babel/core": "^7.15.0",
34
34
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
35
- "@babel/plugin-transform-runtime": "^7.14.5",
36
- "@babel/preset-env": "^7.14.7",
37
- "@babel/runtime": "^7.14.6",
35
+ "@babel/plugin-transform-runtime": "^7.15.0",
36
+ "@babel/preset-env": "^7.15.0",
37
+ "@babel/runtime": "^7.15.3",
38
38
  "@commitlint/cli": "^12.1.4",
39
39
  "@commitlint/config-conventional": "^12.1.4",
40
40
  "@open-wc/testing": "^2.5.33",
41
- "@rollup/plugin-alias": "^3.1.3",
41
+ "@rollup/plugin-alias": "^3.1.5",
42
42
  "@rollup/plugin-babel": "^5.3.0",
43
- "@rollup/plugin-commonjs": "^19.0.1",
44
- "@rollup/plugin-node-resolve": "^13.0.1",
43
+ "@rollup/plugin-commonjs": "^19.0.2",
44
+ "@rollup/plugin-node-resolve": "^13.0.4",
45
45
  "@semantic-release/changelog": "^5.0.1",
46
46
  "@semantic-release/git": "^9.0.0",
47
47
  "@semantic-release/npm": "^7.1.3",
48
- "@web/dev-server": "^0.1.18",
49
- "@web/test-runner": "^0.13.13",
50
- "@webcomponents/webcomponentsjs": "^2.5.0",
48
+ "@web/dev-server": "^0.1.20",
49
+ "@web/test-runner": "^0.13.15",
50
+ "@webcomponents/webcomponentsjs": "^2.6.0",
51
51
  "autoprefixer": "^10.3.1",
52
52
  "babel-loader": "^8.2.2",
53
53
  "compression": "^1.7.4",
54
54
  "concat": "^1.0.3",
55
55
  "copyfiles": "^2.4.1",
56
- "core-js": "^3.15.2",
57
- "eslint": "^7.30.0",
56
+ "core-js": "^3.16.1",
57
+ "eslint": "^7.32.0",
58
58
  "focus-visible": "^5.2.0",
59
59
  "husky": "^7.0.0",
60
60
  "lodash": "^4.17.21",
61
61
  "marked": "^2.1.3",
62
62
  "nodemon": "^2.0.12",
63
63
  "npm-run-all": "^4.1.5",
64
- "postcss": "^8.3.5",
64
+ "postcss": "^8.3.6",
65
65
  "postcss-custom-properties": "^11.0.0",
66
66
  "postcss-discard-comments": "^5.0.1",
67
67
  "postcss-rem-to-pixel": "^4.1.2",
68
68
  "postcss-remove-rules": "^1.0.0",
69
69
  "postcss-selector-replace": "^1.0.2",
70
70
  "prismjs": "^1.24.1",
71
- "rollup": "^2.53.2",
71
+ "rollup": "^2.56.2",
72
72
  "rollup-plugin-minify-html-literals": "^1.2.6",
73
73
  "rollup-plugin-serve": "^1.1.0",
74
74
  "rollup-plugin-terser": "^7.0.2",
75
+ "sass": "^1.37.5",
75
76
  "semantic-release": "^17.4.4",
76
- "sass": "^1.35.2",
77
77
  "stylelint": "^13.13.1",
78
78
  "stylelint-config-idiomatic-order": "^8.1.0",
79
79
  "stylelint-config-standard": "^22.0.0",
80
80
  "stylelint-order": "^4.1.0",
81
- "stylelint-scss": "^3.19.0",
81
+ "stylelint-scss": "^3.20.1",
82
82
  "wc-sass-render": "^1.2.3",
83
83
  "web-component-analyzer": "^1.1.6",
84
84
  "whatwg-fetch": "^3.6.2",