From 6b172d1eab42e12ca998fc889ebdc33099cc8fde Mon Sep 17 00:00:00 2001 From: Sean Gates Date: Fri, 7 Jun 2019 14:11:49 -0600 Subject: [PATCH] 7.3.0 --- docs/static/ds4/docs.min.js | 26 +++++++++++++------------- docs/static/ds4/skin-base64.min.css | 2 +- docs/static/ds4/skin.min.css | 2 +- docs/static/ds6/docs.min.js | 26 +++++++++++++------------- docs/static/ds6/skin-base64.min.css | 2 +- docs/static/ds6/skin.min.css | 2 +- package.json | 2 +- 7 files changed, 31 insertions(+), 31 deletions(-) diff --git a/docs/static/ds4/docs.min.js b/docs/static/ds4/docs.min.js index f94871dff..4869bc4c0 100644 --- a/docs/static/ds4/docs.min.js +++ b/docs/static/ds4/docs.min.js @@ -1,13 +1,13 @@ !function(){function r(r,n){var t=new Error('Cannot find module "'+r+'"'+(n?' from "'+n+'"':""));return t.code="MODULE_NOT_FOUND",t}function n(r){this.id=this.filename=r,this.loaded=!1,this.exports=void 0}function t(r,n,t){var i=t&&t.globals;if(O[r]=n,i)for(var e=b||global,o=0;o2&&0===r[t-1].length&&t--,r.length=t,r.join("/"))}function f(r,n){var t=n.split("/");return u(("/"==r?[""]:r.split("/")).concat(t))}function s(r){var n,t=r.lastIndexOf(".");return-1===t||-1!==(n=r.lastIndexOf("/"))&&n>t?null:r.substring(0,t)}function l(r){r=r.substring(1);var n=r.indexOf("/");"@"===r.charAt(1)&&(n=r.indexOf("/",n+1));var t=-1===n?r.length:n;return[r.substring(0,t),r.substring(t)]}function c(r,n){"/"===r.charAt(r.length-1)&&(r=r.slice(0,-1));var t=M[r];if(t)return t;var i,e,o=l(n),a=o[0],u=r.indexOf("/");u<0?(i=r,e=""):("@"===r.charAt(0)&&(u=r.indexOf("/",u+1)),i=r.substring(0,u),e=r.substring(u));var f=I[a+"/"+i];if(f){var s="/"+i+"$"+f;return e&&(s+=e),s}}function v(r,n){var t;if("."===r.charAt(0))t=f(n,r);else if("/"===r.charAt(0))t=u(r.split("/"));else{for(var i=m.length,e=0;eab",a.setAttribute("style","position: absolute; left: -9999px");var u={open:"open"in a&&function(){(document.body||document.documentElement).appendChild(a);var t=a.offsetHeight;a.open=!0;var e=a.offsetHeight;return a.parentNode.removeChild(a),t!=e}(),toggle:"ontoggle"in a},s='\ndetails, summary {\n display: block;\n}\ndetails:not([open]) > *:not(summary) {\n display: none;\n}\nsummary::before {\n content: "►";\n padding-right: 0.3rem;\n font-size: 0.6rem;\n cursor: default;\n}\n[open] > summary::before {\n content: "▼";\n}\n',c=[],d=c.forEach,l=c.slice;u.open||(function(){document.head.insertAdjacentHTML("afterbegin","")}(),function(){var t=document.createElement("details").constructor.prototype,e=t.setAttribute,n=t.removeAttribute,o=Object.getOwnPropertyDescriptor(t,"open");Object.defineProperties(t,{open:{get:function(){return"DETAILS"==this.tagName?this.hasAttribute("open"):o&&o.get?o.get.call(this):void 0},set:function(t){return"DETAILS"==this.tagName?t?this.setAttribute("open",""):this.removeAttribute("open"):o&&o.set?o.set.call(this,t):void 0}},setAttribute:{value:function(t,n){var o=this,i=function(){return e.call(o,t,n)};if("open"==t&&"DETAILS"==this.tagName){var a=this.hasAttribute("open"),u=i();if(!a){var s=this.querySelector("summary");s&&s.setAttribute("aria-expanded",!0),r(this)}return u}return i()}},removeAttribute:{value:function(t){var e=this,o=function(){return n.call(e,t)};if("open"==t&&"DETAILS"==this.tagName){var i=this.hasAttribute("open"),a=o();if(i){var u=this.querySelector("summary");u&&u.setAttribute("aria-expanded",!1),r(this)}return a}return o()}}})}(),function(){n(function(t){t.hasAttribute("open")?t.removeAttribute("open"):t.setAttribute("open","")})}(),function(){t(document),window.MutationObserver?new MutationObserver(function(e){d.call(e,function(e){d.call(e.addedNodes,t)})}).observe(document.documentElement,{subtree:!0,childList:!0}):document.addEventListener("DOMNodeInserted",function(e){t(e.target)})}()),u.open&&!u.toggle&&function(){window.MutationObserver?new MutationObserver(function(t){d.call(t,function(t){var e=t.target,n=t.attributeName;"DETAILS"==e.tagName&&"open"==n&&r(e)})}).observe(document.documentElement,{attributes:!0,subtree:!0}):n(function(t){var e=t.getAttribute("open");setTimeout(function(){var n=t.getAttribute("open");e!=n&&r(t)},1)})}()}()}); $_mod.run("/details-element-polyfill$2.3.1/dist/details-element-polyfill"); -$_mod.installed("@ebay/skin$7.3.0-0","nodelist-foreach-polyfill","1.2.0"); +$_mod.installed("@ebay/skin$7.3.0","nodelist-foreach-polyfill","1.2.0"); $_mod.main("/nodelist-foreach-polyfill$1.2.0",""); $_mod.def("/nodelist-foreach-polyfill$1.2.0/index",function(o,t,i,e,d){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(o,t){t=t||window;for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:[],e=n.previousSibling;return e?(t.push(e),u(e,t)):t}function i(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=n.nextSibling;return e?(t.push(e),i(e,t)):t}function c(n){return u(n).concat(i(n)).filter(p)}function a(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=n.parentNode;return e?(t.push(e),a(e,t)):t}function s(n){return a(n).filter(g)}function f(n){return s(n).map(function(n){return c(n)}).reduce(d,[])}var g=function(n){return 1===n.nodeType&&"body"!==n.tagName.toLowerCase()&&"html"!==n.tagName.toLowerCase()},p=function(n){return 1===n.nodeType&&"script"!==n.tagName.toLowerCase()},d=function(n,t){return n.concat(t)};e.exports={getSiblings:c,getAncestors:s,getSiblingsOfAncestors:f}}); $_mod.def("/makeup-screenreader-trap$0.1.0/index",function(e,t,n,r,a){"use strict";function u(e,t){return{el:e,cleanValue:e.getAttribute("aria-hidden"),dirtyValue:t}}function i(e){e.el.setAttribute("aria-hidden",e.dirtyValue)}function c(e){e.cleanValue?e.el.setAttribute("aria-hidden",e.cleanValue):e.el.removeAttribute("aria-hidden")}function o(){d&&(f.forEach(function(e){return c(e)}),f=[],l&&l.setAttribute("role","main"),d.dispatchEvent(new CustomEvent("screenreaderUntrap",{bubbles:!0})),d=null)}function s(e){o(),d=e,(l=document.querySelector('main, [role="main"]'))&&l.setAttribute("role","presentation");var t=p.getAncestors(d),n=p.getSiblings(d),r=p.getSiblingsOfAncestors(d);f=[u(d,"false")].concat(t.map(function(e){return u(e,"false")})).concat(n.map(function(e){return u(e,"true")})).concat(r.map(function(e){return u(e,"true")})),f.forEach(function(e){return i(e)}),d.dispatchEvent(new CustomEvent("screenreaderTrap",{bubbles:!0}))}var l,d,f,p=e("/makeup-screenreader-trap$0.1.0/util");n.exports={trap:s,untrap:o}}); $_mod.def("/makeup-modal$0.1.0/index",function(e,t,n,a,r){"use strict";function d(){if(i){p.untrap(i),o.untrap(i);var e=document.createEvent("Event");e.initEvent("unmodal",!1,!0),i.dispatchEvent(e),i=null}return i}function u(e){d(),i=e,p.trap(i),o.trap(i);var t=document.createEvent("Event");return t.initEvent("modal",!1,!0),i.dispatchEvent(t),i}var i,o=e("/makeup-keyboard-trap$0.2.0/index"),p=e("/makeup-screenreader-trap$0.1.0/index");n.exports={modal:u,unmodal:d}}); -$_mod.def("/@ebay/skin$7.3.0-0/docs/_babel/base/transition",function(e,n,t,i,r){"use strict";function o(e){for(var n=window.getComputedStyle(e).transitionDuration.replace(s,"")?1:0,t=e.firstElementChild;t;)n+=o(t),t=t.nextElementSibling;return n}function a(e){var n,t;return window.requestAnimationFrame?(n=requestAnimationFrame(function(){n=requestAnimationFrame(e)}),t=cancelAnimationFrame):(n=setTimeout(e,26),t=clearTimeout),function(){n&&(t(n),n=void 0)}}var m="transitionend",s=/0m?s(?:, )?/g;t.exports=function(e,n,t){function i(){s||(s=!0,e.removeEventListener(m,r,!0),f?(f(),d.remove(v)):d.remove(n))}function r(){++c===u&&(s=!0,e.removeEventListener(m,r,!0),d.remove(n),t&&t())}var s,u,c=0,d=e.classList,v=n+"-init",f=a(function(){e.addEventListener(m,r,!0),d.add(n),d.remove(v),u=o(e),f=void 0,0===u&&i()});return d.add(v),i}}); -$_mod.installed("@ebay/skin$7.3.0-0","makeup-roving-tabindex","0.2.1"); +$_mod.def("/@ebay/skin$7.3.0/docs/_babel/base/transition",function(e,n,t,i,r){"use strict";function o(e){for(var n=window.getComputedStyle(e).transitionDuration.replace(s,"")?1:0,t=e.firstElementChild;t;)n+=o(t),t=t.nextElementSibling;return n}function a(e){var n,t;return window.requestAnimationFrame?(n=requestAnimationFrame(function(){n=requestAnimationFrame(e)}),t=cancelAnimationFrame):(n=setTimeout(e,26),t=clearTimeout),function(){n&&(t(n),n=void 0)}}var m="transitionend",s=/0m?s(?:, )?/g;t.exports=function(e,n,t){function i(){s||(s=!0,e.removeEventListener(m,r,!0),f?(f(),d.remove(v)):d.remove(n))}function r(){++c===u&&(s=!0,e.removeEventListener(m,r,!0),d.remove(n),t&&t())}var s,u,c=0,d=e.classList,v=n+"-init",f=a(function(){e.addEventListener(m,r,!0),d.add(n),d.remove(v),u=o(e),f=void 0,0===u&&i()});return d.add(v),i}}); +$_mod.installed("@ebay/skin$7.3.0","makeup-roving-tabindex","0.2.1"); $_mod.main("/makeup-roving-tabindex$0.2.1",""); $_mod.installed("makeup-roving-tabindex$0.2.1","custom-event-polyfill","1.0.7"); $_mod.installed("makeup-roving-tabindex$0.2.1","nodelist-foreach-polyfill","1.2.0"); @@ -48,27 +48,27 @@ $_mod.def("/makeup-next-id$0.0.3/index",function(t,i,n,d,e){"use strict";var c={ $_mod.def("/makeup-exit-emitter$0.1.0/index",function(e,n,t,i,o){"use strict";function s(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function r(e,n,t){e.dispatchEvent(new CustomEvent("focusExit",{detail:{fromElement:n,toElement:t},bubbles:!1}))}function u(e){var n=e.target;!0===this.el.contains(n)?this.currentFocusElement=n:(window.removeEventListener("blur",this.onWindowBlurListener),document.removeEventListener("focusin",this.onDocumentFocusInListener),r(this.el,this.currentFocusElement,n),this.currentFocusElement=null)}function c(){r(this.el,this.currentFocusElement,void 0)}function l(){document.addEventListener("focusin",this.onDocumentFocusInListener),window.addEventListener("blur",this.onWindowBlurListener)}function d(e){var n=null;return h(e),v[e.id]||(n=new f(e),v[e.id]=n),n}function m(e){var n=v[e.id];n&&(n.removeEventListeners(),delete v[e.id])}var a=function(){function e(e,n){for(var t=0;t-1&&e0}function u(t,e){return getComputedStyle(t).backgroundColor!==e}function h(){b(this.textboxEl)||this.labelEl.classList.add(this.options.labelElementInlineModifier)}function c(){this.labelEl.classList.add(this.options.labelElementAnimateModifier),this.labelEl.classList.remove(this.options.labelElementInlineModifier)}var f={labelElementAnimateModifier:"floating-label__label--animate",labelElementInlineModifier:"floating-label__label--inline",textboxElementBackgroundRGB:"rgb(255, 255, 255)"};i.exports=function(){function t(e,i){s(this,t),this.options=o({},f,i),this.rootEl=e,this.labelEl=this.rootEl.querySelector("label"),this.textboxEl=this.rootEl.querySelector("input"),this._onBlurListener=h.bind(this),this._onFocusListener=c.bind(this),this.textboxEl.addEventListener("blur",this._onBlurListener),this.textboxEl.addEventListener("focus",this._onFocusListener),b(this.textboxEl)||u(this.textboxEl,this.options.textboxElementBackgroundRGB)||this.labelEl.classList.add(this.options.labelElementInlineModifier)}return a(t,[{key:"refresh",value:function(){b(this.textboxEl)||u(this.textboxEl,this.options.textboxElementBackgroundRGB)?this.labelEl.classList.remove(this.options.labelElementInlineModifier):this.labelEl.classList.add(this.options.labelElementInlineModifier)}}]),t}()}); -$_mod.installed("@ebay/skin$7.3.0-0","makeup-prevent-scroll-keys","0.0.3"); +$_mod.installed("@ebay/skin$7.3.0","makeup-prevent-scroll-keys","0.0.3"); $_mod.main("/makeup-prevent-scroll-keys$0.0.3",""); $_mod.def("/makeup-prevent-scroll-keys$0.0.3/index",function(e,n,o,t,d){"use strict";function r(e){(e.keyCode>=32&&e.keyCode<=36||38===e.keyCode||40===e.keyCode)&&e.preventDefault()}function i(e){e.addEventListener("keydown",r)}function k(e){e.removeEventListener("keydown",r)}o.exports={add:i,remove:k}}); -$_mod.installed("@ebay/skin$7.3.0-0","makeup-active-descendant","0.1.0"); +$_mod.installed("@ebay/skin$7.3.0","makeup-active-descendant","0.1.0"); $_mod.main("/makeup-active-descendant$0.1.0",""); $_mod.installed("makeup-active-descendant$0.1.0","custom-event-polyfill","1.0.7"); $_mod.installed("makeup-active-descendant$0.1.0","nodelist-foreach-polyfill","1.2.0"); $_mod.installed("makeup-active-descendant$0.1.0","makeup-navigation-emitter","0.2.0"); $_mod.installed("makeup-active-descendant$0.1.0","makeup-next-id","0.0.3"); $_mod.def("/makeup-active-descendant$0.1.0/index",function(t,e,n,i,o){"use strict";function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(){return a=Object.assign||function(t){for(var e=1;e-1){var e=this._items[this._options.autoReset];e.classList.add(this._options.activeDescendantClassName),e.setAttribute("aria-selected","true"),this._focusEl.setAttribute("aria-activedescendant",e.id)}else this._focusEl.removeAttribute("aria-activedescendant")}function g(t,e,n,i,o){return new C(t,e,n,i,o)}var E=t("/makeup-navigation-emitter$0.2.0/index"),L=t("/makeup-next-id$0.0.3/index"),w={activeDescendantClassName:"active-descendant",autoInit:-1,autoReset:-1},O=function(){function t(e){v(this,t),this._el=e,this._onMutationListener=m.bind(this),this._onChangeListener=y.bind(this),this._onResetListener=b.bind(this),this._el.addEventListener("navigationModelMutation",this._onMutationListener),this._el.addEventListener("navigationModelChange",this._onChangeListener),this._el.addEventListener("navigationModelReset",this._onResetListener)}return _(t,[{key:"destroy",value:function(){this._el.removeEventListener("navigationModelMutation",this._onMutationListener),this._el.removeEventListener("navigationModelChange",this._onChangeListener),this._el.removeEventListener("navigationModelReset",this._onResetListener)}}]),t}(),C=function(t){function e(t,n,i,o,s){var c;if(v(this,e),c=r(this,d(e).call(this,t)),c._options=a({},w,s),c._navigationEmitter=E.createLinear(t,o,{autoInit:c._options.autoInit,autoReset:c._options.autoReset}),c._focusEl=n,c._ownedEl=i,c._itemSelector=o,L(i),n.setAttribute("aria-owns",i.id),c._items.forEach(function(t){L(t)}),c._options.autoInit>-1){var u=c._items[c._options.autoInit];u.classList.add(c._options.activeDescendantClassName),u.setAttribute("aria-selected","true"),c._focusEl.setAttribute("aria-activedescendant",u.id)}return c}return f(e,t),_(e,[{key:"destroy",value:function(){u(d(e.prototype),"destroy",this).call(this),this._navigationEmitter.destroy()}},{key:"_items",get:function(){return this._ownedEl.querySelectorAll(this._itemSelector)}},{key:"wrap",set:function(t){this._navigationEmitter.model.options.wrap=t}}]),e}(O);n.exports={createLinear:g}}); -$_mod.def("/@ebay/skin$7.3.0-0/docs/_babel/base/main",function(e,t,o,n,l){"use strict";var c=e("/makeup-modal$0.1.0/index"),r=e("/@ebay/skin$7.3.0-0/docs/_babel/base/transition"),a=e("/makeup-roving-tabindex$0.2.1/index"),i=e("/makeup-expander$0.7.2/index"),u=e("/makeup-floating-label$0.0.5/index"),d=e("/makeup-prevent-scroll-keys$0.0.3/index"),s=e("/makeup-active-descendant$0.1.0/index");document.querySelectorAll(".expand-btn-example").forEach(function(e,t){e.addEventListener("click",function(e){var t="true"===this.getAttribute("aria-expanded");this.setAttribute("aria-expanded",!t)})}),document.querySelectorAll(".menu").forEach(function(e,t){if(e.querySelector(".expand-btn")){var o=(new i(e,{autoCollapse:!0,contentSelector:"[role=menu]",expandOnClick:!0,focusManagement:"focusable",hostSelector:".expand-btn"}),e.querySelector("[role=menu]"));a.createLinear(o,".menu__item");o.querySelectorAll(".menu__item").forEach(function(e){d.add(e)})}}),document.querySelectorAll(".fake-menu").forEach(function(e){new i(e,{collapseOnFocusOut:!0,collapseOnMouseOut:!0,contentSelector:".fake-menu__items",expandOnClick:!0,hostSelector:".expand-btn"})}),document.querySelectorAll(".combobox").forEach(function(e){var t=(new i(e,{autoCollapse:!0,contentSelector:"[role=listbox]",expandedClass:"combobox--expanded",expandOnFocus:!0,hostSelector:"input"}),e.querySelector("input")),o=e.querySelector("[role=listbox]");s.createLinear(e,t,o,"[role=option]",{activeDescendantClassName:"combobox__option--active"})}),document.querySelectorAll(".listbox").forEach(function(e){var t=(new i(e,{autoCollapse:!0,contentSelector:"[role=listbox]",expandedClass:"listbox--expanded",expandOnClick:!0,focusManagement:"content",hostSelector:"button"}),e.querySelector("button")),o=e.querySelector("[role=listbox]"),n=o.querySelectorAll("[role=option]"),l=0;n.forEach(function(e,t){e.hasAttribute("aria-selected")&&(l=t)});s.createLinear(e,o,o,"[role=option]",{activeDescendantClassName:"listbox__option--active",autoInit:l,autoReset:null});d.add(e.querySelector("[role=listbox]"));var c=t.querySelector(".expand-btn__cell > span:first-child");e.addEventListener("activeDescendantChange",function(e){e.detail.toIndex>-1&&(c.innerText=n[e.detail.toIndex].innerText)})}),document.querySelectorAll(".dialog-button").forEach(function(e){function t(){l&&l(),l=r(a,"dialog--show",n(!0)),a.removeAttribute("hidden"),e.removeEventListener("click",t),a.addEventListener("click",o,!0),document.body.setAttribute("style","overflow:hidden"),c.modal(a.querySelector(".dialog__window"))}function o(u){i.contains(u.target)||(l&&l(),l=r(a,"dialog--hide",n(!1)),a.setAttribute("hidden",""),e.addEventListener("click",t),a.removeEventListener("click",o,!0),document.body.removeAttribute("style"),c.unmodal(),e.focus())}function n(e){e&&window.setTimeout(function(){u.focus()},250),l=void 0}var l,a=e.nextElementSibling,i=a.querySelector(".dialog__body"),u=a.querySelector(".dialog__close");e.addEventListener("click",t)}),document.querySelectorAll(".tooltip").forEach(function(e){new i(e,{contentSelector:".tooltip__overlay",collapseOnFocusOut:!0,collapseOnMouseOut:!0,expandOnFocus:!0,expandOnHover:!0,focusManagement:"focusable",hostSelector:".tooltip__host"})}),document.querySelectorAll(".infotip").forEach(function(e){var t=new i(e,{contentSelector:".infotip__overlay",expandOnFocus:!1,expandOnClick:!0,hostSelector:".infotip__host"});e.querySelector(".infotip__close").addEventListener("click",function(){t.collapse()})}),document.querySelectorAll(".tourtip").forEach(function(e){e.querySelector(".tourtip__close").addEventListener("click",function(){e.classList.remove("tourtip--expanded")})}),document.querySelectorAll(".floating-label").forEach(function(e){new u(e)}),document.querySelectorAll(".tabs").forEach(function(e){var t=(a.createLinear(e,"[role=tab]",{wrap:!0}),e.querySelectorAll("[role=tab]")),o=e.querySelectorAll("[role=tabpanel]");e.addEventListener("rovingTabindexChange",function(e){t[e.detail.fromIndex].setAttribute("aria-selected","false"),t[e.detail.toIndex].setAttribute("aria-selected","true"),o[e.detail.fromIndex].hidden=!0,o[e.detail.toIndex].hidden=!1}),e.querySelectorAll("[role=tab]").forEach(function(e){d.add(e)})})}); -$_mod.run("/@ebay/skin$7.3.0-0/docs/_babel/base/main"); -$_mod.def("/@ebay/skin$7.3.0-0/docs/_babel/ds4/main",function(s,d,e,i,n){"use strict"}); -$_mod.run("/@ebay/skin$7.3.0-0/docs/_babel/ds4/main"); \ No newline at end of file +$_mod.def("/@ebay/skin$7.3.0/docs/_babel/base/main",function(e,t,o,n,l){"use strict";var c=e("/makeup-modal$0.1.0/index"),r=e("/@ebay/skin$7.3.0/docs/_babel/base/transition"),a=e("/makeup-roving-tabindex$0.2.1/index"),i=e("/makeup-expander$0.7.2/index"),u=e("/makeup-floating-label$0.0.5/index"),d=e("/makeup-prevent-scroll-keys$0.0.3/index"),s=e("/makeup-active-descendant$0.1.0/index");document.querySelectorAll(".expand-btn-example").forEach(function(e,t){e.addEventListener("click",function(e){var t="true"===this.getAttribute("aria-expanded");this.setAttribute("aria-expanded",!t)})}),document.querySelectorAll(".menu").forEach(function(e,t){if(e.querySelector(".expand-btn")){var o=(new i(e,{autoCollapse:!0,contentSelector:"[role=menu]",expandOnClick:!0,focusManagement:"focusable",hostSelector:".expand-btn"}),e.querySelector("[role=menu]"));a.createLinear(o,".menu__item");o.querySelectorAll(".menu__item").forEach(function(e){d.add(e)})}}),document.querySelectorAll(".fake-menu").forEach(function(e){new i(e,{collapseOnFocusOut:!0,collapseOnMouseOut:!0,contentSelector:".fake-menu__items",expandOnClick:!0,hostSelector:".expand-btn"})}),document.querySelectorAll(".combobox").forEach(function(e){var t=(new i(e,{autoCollapse:!0,contentSelector:"[role=listbox]",expandedClass:"combobox--expanded",expandOnFocus:!0,hostSelector:"input"}),e.querySelector("input")),o=e.querySelector("[role=listbox]");s.createLinear(e,t,o,"[role=option]",{activeDescendantClassName:"combobox__option--active"})}),document.querySelectorAll(".listbox").forEach(function(e){var t=(new i(e,{autoCollapse:!0,contentSelector:"[role=listbox]",expandedClass:"listbox--expanded",expandOnClick:!0,focusManagement:"content",hostSelector:"button"}),e.querySelector("button")),o=e.querySelector("[role=listbox]"),n=o.querySelectorAll("[role=option]"),l=0;n.forEach(function(e,t){e.hasAttribute("aria-selected")&&(l=t)});s.createLinear(e,o,o,"[role=option]",{activeDescendantClassName:"listbox__option--active",autoInit:l,autoReset:null});d.add(e.querySelector("[role=listbox]"));var c=t.querySelector(".expand-btn__cell > span:first-child");e.addEventListener("activeDescendantChange",function(e){e.detail.toIndex>-1&&(c.innerText=n[e.detail.toIndex].innerText)})}),document.querySelectorAll(".dialog-button").forEach(function(e){function t(){l&&l(),l=r(a,"dialog--show",n(!0)),a.removeAttribute("hidden"),e.removeEventListener("click",t),a.addEventListener("click",o,!0),document.body.setAttribute("style","overflow:hidden"),c.modal(a.querySelector(".dialog__window"))}function o(u){i.contains(u.target)||(l&&l(),l=r(a,"dialog--hide",n(!1)),a.setAttribute("hidden",""),e.addEventListener("click",t),a.removeEventListener("click",o,!0),document.body.removeAttribute("style"),c.unmodal(),e.focus())}function n(e){e&&window.setTimeout(function(){u.focus()},250),l=void 0}var l,a=e.nextElementSibling,i=a.querySelector(".dialog__body"),u=a.querySelector(".dialog__close");e.addEventListener("click",t)}),document.querySelectorAll(".tooltip").forEach(function(e){new i(e,{contentSelector:".tooltip__overlay",collapseOnFocusOut:!0,collapseOnMouseOut:!0,expandOnFocus:!0,expandOnHover:!0,focusManagement:"focusable",hostSelector:".tooltip__host"})}),document.querySelectorAll(".infotip").forEach(function(e){var t=new i(e,{contentSelector:".infotip__overlay",expandOnFocus:!1,expandOnClick:!0,hostSelector:".infotip__host"});e.querySelector(".infotip__close").addEventListener("click",function(){t.collapse()})}),document.querySelectorAll(".tourtip").forEach(function(e){e.querySelector(".tourtip__close").addEventListener("click",function(){e.classList.remove("tourtip--expanded")})}),document.querySelectorAll(".floating-label").forEach(function(e){new u(e)}),document.querySelectorAll(".tabs").forEach(function(e){var t=(a.createLinear(e,"[role=tab]",{wrap:!0}),e.querySelectorAll("[role=tab]")),o=e.querySelectorAll("[role=tabpanel]");e.addEventListener("rovingTabindexChange",function(e){t[e.detail.fromIndex].setAttribute("aria-selected","false"),t[e.detail.toIndex].setAttribute("aria-selected","true"),o[e.detail.fromIndex].hidden=!0,o[e.detail.toIndex].hidden=!1}),e.querySelectorAll("[role=tab]").forEach(function(e){d.add(e)})})}); +$_mod.run("/@ebay/skin$7.3.0/docs/_babel/base/main"); +$_mod.def("/@ebay/skin$7.3.0/docs/_babel/ds4/main",function(s,d,e,i,n){"use strict"}); +$_mod.run("/@ebay/skin$7.3.0/docs/_babel/ds4/main"); \ No newline at end of file diff --git a/docs/static/ds4/skin-base64.min.css b/docs/static/ds4/skin-base64.min.css index 2adb25c54..89e225b15 100644 --- a/docs/static/ds4/skin-base64.min.css +++ b/docs/static/ds4/skin-base64.min.css @@ -1,5 +1,5 @@ /*! -Skin v7.3.0-0 +Skin v7.3.0 Copyright 2017 eBay! Inc. All rights reserved. Licensed under the BSD License. https://github.com/eBay/skin/blob/master/LICENSE.txt" diff --git a/docs/static/ds4/skin.min.css b/docs/static/ds4/skin.min.css index 57a085a2d..4af731f9a 100644 --- a/docs/static/ds4/skin.min.css +++ b/docs/static/ds4/skin.min.css @@ -1,5 +1,5 @@ /*! -Skin v7.3.0-0 +Skin v7.3.0 Copyright 2017 eBay! Inc. All rights reserved. Licensed under the BSD License. https://github.com/eBay/skin/blob/master/LICENSE.txt" diff --git a/docs/static/ds6/docs.min.js b/docs/static/ds6/docs.min.js index de6451260..77bcb13b6 100644 --- a/docs/static/ds6/docs.min.js +++ b/docs/static/ds6/docs.min.js @@ -1,13 +1,13 @@ !function(){function r(r,n){var t=new Error('Cannot find module "'+r+'"'+(n?' from "'+n+'"':""));return t.code="MODULE_NOT_FOUND",t}function n(r){this.id=this.filename=r,this.loaded=!1,this.exports=void 0}function t(r,n,t){var i=t&&t.globals;if(O[r]=n,i)for(var e=b||global,o=0;o2&&0===r[t-1].length&&t--,r.length=t,r.join("/"))}function f(r,n){var t=n.split("/");return u(("/"==r?[""]:r.split("/")).concat(t))}function s(r){var n,t=r.lastIndexOf(".");return-1===t||-1!==(n=r.lastIndexOf("/"))&&n>t?null:r.substring(0,t)}function l(r){r=r.substring(1);var n=r.indexOf("/");"@"===r.charAt(1)&&(n=r.indexOf("/",n+1));var t=-1===n?r.length:n;return[r.substring(0,t),r.substring(t)]}function c(r,n){"/"===r.charAt(r.length-1)&&(r=r.slice(0,-1));var t=M[r];if(t)return t;var i,e,o=l(n),a=o[0],u=r.indexOf("/");u<0?(i=r,e=""):("@"===r.charAt(0)&&(u=r.indexOf("/",u+1)),i=r.substring(0,u),e=r.substring(u));var f=I[a+"/"+i];if(f){var s="/"+i+"$"+f;return e&&(s+=e),s}}function v(r,n){var t;if("."===r.charAt(0))t=f(n,r);else if("/"===r.charAt(0))t=u(r.split("/"));else{for(var i=m.length,e=0;eab",a.setAttribute("style","position: absolute; left: -9999px");var u={open:"open"in a&&function(){(document.body||document.documentElement).appendChild(a);var t=a.offsetHeight;a.open=!0;var e=a.offsetHeight;return a.parentNode.removeChild(a),t!=e}(),toggle:"ontoggle"in a},s='\ndetails, summary {\n display: block;\n}\ndetails:not([open]) > *:not(summary) {\n display: none;\n}\nsummary::before {\n content: "►";\n padding-right: 0.3rem;\n font-size: 0.6rem;\n cursor: default;\n}\n[open] > summary::before {\n content: "▼";\n}\n',c=[],d=c.forEach,l=c.slice;u.open||(function(){document.head.insertAdjacentHTML("afterbegin","")}(),function(){var t=document.createElement("details").constructor.prototype,e=t.setAttribute,n=t.removeAttribute,o=Object.getOwnPropertyDescriptor(t,"open");Object.defineProperties(t,{open:{get:function(){return"DETAILS"==this.tagName?this.hasAttribute("open"):o&&o.get?o.get.call(this):void 0},set:function(t){return"DETAILS"==this.tagName?t?this.setAttribute("open",""):this.removeAttribute("open"):o&&o.set?o.set.call(this,t):void 0}},setAttribute:{value:function(t,n){var o=this,i=function(){return e.call(o,t,n)};if("open"==t&&"DETAILS"==this.tagName){var a=this.hasAttribute("open"),u=i();if(!a){var s=this.querySelector("summary");s&&s.setAttribute("aria-expanded",!0),r(this)}return u}return i()}},removeAttribute:{value:function(t){var e=this,o=function(){return n.call(e,t)};if("open"==t&&"DETAILS"==this.tagName){var i=this.hasAttribute("open"),a=o();if(i){var u=this.querySelector("summary");u&&u.setAttribute("aria-expanded",!1),r(this)}return a}return o()}}})}(),function(){n(function(t){t.hasAttribute("open")?t.removeAttribute("open"):t.setAttribute("open","")})}(),function(){t(document),window.MutationObserver?new MutationObserver(function(e){d.call(e,function(e){d.call(e.addedNodes,t)})}).observe(document.documentElement,{subtree:!0,childList:!0}):document.addEventListener("DOMNodeInserted",function(e){t(e.target)})}()),u.open&&!u.toggle&&function(){window.MutationObserver?new MutationObserver(function(t){d.call(t,function(t){var e=t.target,n=t.attributeName;"DETAILS"==e.tagName&&"open"==n&&r(e)})}).observe(document.documentElement,{attributes:!0,subtree:!0}):n(function(t){var e=t.getAttribute("open");setTimeout(function(){var n=t.getAttribute("open");e!=n&&r(t)},1)})}()}()}); $_mod.run("/details-element-polyfill$2.3.1/dist/details-element-polyfill"); -$_mod.installed("@ebay/skin$7.3.0-0","nodelist-foreach-polyfill","1.2.0"); +$_mod.installed("@ebay/skin$7.3.0","nodelist-foreach-polyfill","1.2.0"); $_mod.main("/nodelist-foreach-polyfill$1.2.0",""); $_mod.def("/nodelist-foreach-polyfill$1.2.0/index",function(o,t,i,e,d){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(o,t){t=t||window;for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:[],e=n.previousSibling;return e?(t.push(e),u(e,t)):t}function i(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=n.nextSibling;return e?(t.push(e),i(e,t)):t}function c(n){return u(n).concat(i(n)).filter(p)}function a(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=n.parentNode;return e?(t.push(e),a(e,t)):t}function s(n){return a(n).filter(g)}function f(n){return s(n).map(function(n){return c(n)}).reduce(d,[])}var g=function(n){return 1===n.nodeType&&"body"!==n.tagName.toLowerCase()&&"html"!==n.tagName.toLowerCase()},p=function(n){return 1===n.nodeType&&"script"!==n.tagName.toLowerCase()},d=function(n,t){return n.concat(t)};e.exports={getSiblings:c,getAncestors:s,getSiblingsOfAncestors:f}}); $_mod.def("/makeup-screenreader-trap$0.1.0/index",function(e,t,n,r,a){"use strict";function u(e,t){return{el:e,cleanValue:e.getAttribute("aria-hidden"),dirtyValue:t}}function i(e){e.el.setAttribute("aria-hidden",e.dirtyValue)}function c(e){e.cleanValue?e.el.setAttribute("aria-hidden",e.cleanValue):e.el.removeAttribute("aria-hidden")}function o(){d&&(f.forEach(function(e){return c(e)}),f=[],l&&l.setAttribute("role","main"),d.dispatchEvent(new CustomEvent("screenreaderUntrap",{bubbles:!0})),d=null)}function s(e){o(),d=e,(l=document.querySelector('main, [role="main"]'))&&l.setAttribute("role","presentation");var t=p.getAncestors(d),n=p.getSiblings(d),r=p.getSiblingsOfAncestors(d);f=[u(d,"false")].concat(t.map(function(e){return u(e,"false")})).concat(n.map(function(e){return u(e,"true")})).concat(r.map(function(e){return u(e,"true")})),f.forEach(function(e){return i(e)}),d.dispatchEvent(new CustomEvent("screenreaderTrap",{bubbles:!0}))}var l,d,f,p=e("/makeup-screenreader-trap$0.1.0/util");n.exports={trap:s,untrap:o}}); $_mod.def("/makeup-modal$0.1.0/index",function(e,t,n,a,r){"use strict";function d(){if(i){p.untrap(i),o.untrap(i);var e=document.createEvent("Event");e.initEvent("unmodal",!1,!0),i.dispatchEvent(e),i=null}return i}function u(e){d(),i=e,p.trap(i),o.trap(i);var t=document.createEvent("Event");return t.initEvent("modal",!1,!0),i.dispatchEvent(t),i}var i,o=e("/makeup-keyboard-trap$0.2.0/index"),p=e("/makeup-screenreader-trap$0.1.0/index");n.exports={modal:u,unmodal:d}}); -$_mod.def("/@ebay/skin$7.3.0-0/docs/_babel/base/transition",function(e,n,t,i,r){"use strict";function o(e){for(var n=window.getComputedStyle(e).transitionDuration.replace(s,"")?1:0,t=e.firstElementChild;t;)n+=o(t),t=t.nextElementSibling;return n}function a(e){var n,t;return window.requestAnimationFrame?(n=requestAnimationFrame(function(){n=requestAnimationFrame(e)}),t=cancelAnimationFrame):(n=setTimeout(e,26),t=clearTimeout),function(){n&&(t(n),n=void 0)}}var m="transitionend",s=/0m?s(?:, )?/g;t.exports=function(e,n,t){function i(){s||(s=!0,e.removeEventListener(m,r,!0),f?(f(),d.remove(v)):d.remove(n))}function r(){++c===u&&(s=!0,e.removeEventListener(m,r,!0),d.remove(n),t&&t())}var s,u,c=0,d=e.classList,v=n+"-init",f=a(function(){e.addEventListener(m,r,!0),d.add(n),d.remove(v),u=o(e),f=void 0,0===u&&i()});return d.add(v),i}}); -$_mod.installed("@ebay/skin$7.3.0-0","makeup-roving-tabindex","0.2.1"); +$_mod.def("/@ebay/skin$7.3.0/docs/_babel/base/transition",function(e,n,t,i,r){"use strict";function o(e){for(var n=window.getComputedStyle(e).transitionDuration.replace(s,"")?1:0,t=e.firstElementChild;t;)n+=o(t),t=t.nextElementSibling;return n}function a(e){var n,t;return window.requestAnimationFrame?(n=requestAnimationFrame(function(){n=requestAnimationFrame(e)}),t=cancelAnimationFrame):(n=setTimeout(e,26),t=clearTimeout),function(){n&&(t(n),n=void 0)}}var m="transitionend",s=/0m?s(?:, )?/g;t.exports=function(e,n,t){function i(){s||(s=!0,e.removeEventListener(m,r,!0),f?(f(),d.remove(v)):d.remove(n))}function r(){++c===u&&(s=!0,e.removeEventListener(m,r,!0),d.remove(n),t&&t())}var s,u,c=0,d=e.classList,v=n+"-init",f=a(function(){e.addEventListener(m,r,!0),d.add(n),d.remove(v),u=o(e),f=void 0,0===u&&i()});return d.add(v),i}}); +$_mod.installed("@ebay/skin$7.3.0","makeup-roving-tabindex","0.2.1"); $_mod.main("/makeup-roving-tabindex$0.2.1",""); $_mod.installed("makeup-roving-tabindex$0.2.1","custom-event-polyfill","1.0.7"); $_mod.installed("makeup-roving-tabindex$0.2.1","nodelist-foreach-polyfill","1.2.0"); @@ -48,27 +48,27 @@ $_mod.def("/makeup-next-id$0.0.3/index",function(t,i,n,d,e){"use strict";var c={ $_mod.def("/makeup-exit-emitter$0.1.0/index",function(e,n,t,i,o){"use strict";function s(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function r(e,n,t){e.dispatchEvent(new CustomEvent("focusExit",{detail:{fromElement:n,toElement:t},bubbles:!1}))}function u(e){var n=e.target;!0===this.el.contains(n)?this.currentFocusElement=n:(window.removeEventListener("blur",this.onWindowBlurListener),document.removeEventListener("focusin",this.onDocumentFocusInListener),r(this.el,this.currentFocusElement,n),this.currentFocusElement=null)}function c(){r(this.el,this.currentFocusElement,void 0)}function l(){document.addEventListener("focusin",this.onDocumentFocusInListener),window.addEventListener("blur",this.onWindowBlurListener)}function d(e){var n=null;return h(e),v[e.id]||(n=new f(e),v[e.id]=n),n}function m(e){var n=v[e.id];n&&(n.removeEventListeners(),delete v[e.id])}var a=function(){function e(e,n){for(var t=0;t-1&&e0}function u(t,e){return getComputedStyle(t).backgroundColor!==e}function h(){b(this.textboxEl)||this.labelEl.classList.add(this.options.labelElementInlineModifier)}function c(){this.labelEl.classList.add(this.options.labelElementAnimateModifier),this.labelEl.classList.remove(this.options.labelElementInlineModifier)}var f={labelElementAnimateModifier:"floating-label__label--animate",labelElementInlineModifier:"floating-label__label--inline",textboxElementBackgroundRGB:"rgb(255, 255, 255)"};i.exports=function(){function t(e,i){s(this,t),this.options=o({},f,i),this.rootEl=e,this.labelEl=this.rootEl.querySelector("label"),this.textboxEl=this.rootEl.querySelector("input"),this._onBlurListener=h.bind(this),this._onFocusListener=c.bind(this),this.textboxEl.addEventListener("blur",this._onBlurListener),this.textboxEl.addEventListener("focus",this._onFocusListener),b(this.textboxEl)||u(this.textboxEl,this.options.textboxElementBackgroundRGB)||this.labelEl.classList.add(this.options.labelElementInlineModifier)}return a(t,[{key:"refresh",value:function(){b(this.textboxEl)||u(this.textboxEl,this.options.textboxElementBackgroundRGB)?this.labelEl.classList.remove(this.options.labelElementInlineModifier):this.labelEl.classList.add(this.options.labelElementInlineModifier)}}]),t}()}); -$_mod.installed("@ebay/skin$7.3.0-0","makeup-prevent-scroll-keys","0.0.3"); +$_mod.installed("@ebay/skin$7.3.0","makeup-prevent-scroll-keys","0.0.3"); $_mod.main("/makeup-prevent-scroll-keys$0.0.3",""); $_mod.def("/makeup-prevent-scroll-keys$0.0.3/index",function(e,n,o,t,d){"use strict";function r(e){(e.keyCode>=32&&e.keyCode<=36||38===e.keyCode||40===e.keyCode)&&e.preventDefault()}function i(e){e.addEventListener("keydown",r)}function k(e){e.removeEventListener("keydown",r)}o.exports={add:i,remove:k}}); -$_mod.installed("@ebay/skin$7.3.0-0","makeup-active-descendant","0.1.0"); +$_mod.installed("@ebay/skin$7.3.0","makeup-active-descendant","0.1.0"); $_mod.main("/makeup-active-descendant$0.1.0",""); $_mod.installed("makeup-active-descendant$0.1.0","custom-event-polyfill","1.0.7"); $_mod.installed("makeup-active-descendant$0.1.0","nodelist-foreach-polyfill","1.2.0"); $_mod.installed("makeup-active-descendant$0.1.0","makeup-navigation-emitter","0.2.0"); $_mod.installed("makeup-active-descendant$0.1.0","makeup-next-id","0.0.3"); $_mod.def("/makeup-active-descendant$0.1.0/index",function(t,e,n,i,o){"use strict";function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(){return a=Object.assign||function(t){for(var e=1;e-1){var e=this._items[this._options.autoReset];e.classList.add(this._options.activeDescendantClassName),e.setAttribute("aria-selected","true"),this._focusEl.setAttribute("aria-activedescendant",e.id)}else this._focusEl.removeAttribute("aria-activedescendant")}function g(t,e,n,i,o){return new C(t,e,n,i,o)}var E=t("/makeup-navigation-emitter$0.2.0/index"),L=t("/makeup-next-id$0.0.3/index"),w={activeDescendantClassName:"active-descendant",autoInit:-1,autoReset:-1},O=function(){function t(e){v(this,t),this._el=e,this._onMutationListener=m.bind(this),this._onChangeListener=y.bind(this),this._onResetListener=b.bind(this),this._el.addEventListener("navigationModelMutation",this._onMutationListener),this._el.addEventListener("navigationModelChange",this._onChangeListener),this._el.addEventListener("navigationModelReset",this._onResetListener)}return _(t,[{key:"destroy",value:function(){this._el.removeEventListener("navigationModelMutation",this._onMutationListener),this._el.removeEventListener("navigationModelChange",this._onChangeListener),this._el.removeEventListener("navigationModelReset",this._onResetListener)}}]),t}(),C=function(t){function e(t,n,i,o,s){var c;if(v(this,e),c=r(this,d(e).call(this,t)),c._options=a({},w,s),c._navigationEmitter=E.createLinear(t,o,{autoInit:c._options.autoInit,autoReset:c._options.autoReset}),c._focusEl=n,c._ownedEl=i,c._itemSelector=o,L(i),n.setAttribute("aria-owns",i.id),c._items.forEach(function(t){L(t)}),c._options.autoInit>-1){var u=c._items[c._options.autoInit];u.classList.add(c._options.activeDescendantClassName),u.setAttribute("aria-selected","true"),c._focusEl.setAttribute("aria-activedescendant",u.id)}return c}return f(e,t),_(e,[{key:"destroy",value:function(){u(d(e.prototype),"destroy",this).call(this),this._navigationEmitter.destroy()}},{key:"_items",get:function(){return this._ownedEl.querySelectorAll(this._itemSelector)}},{key:"wrap",set:function(t){this._navigationEmitter.model.options.wrap=t}}]),e}(O);n.exports={createLinear:g}}); -$_mod.def("/@ebay/skin$7.3.0-0/docs/_babel/base/main",function(e,t,o,n,l){"use strict";var c=e("/makeup-modal$0.1.0/index"),r=e("/@ebay/skin$7.3.0-0/docs/_babel/base/transition"),a=e("/makeup-roving-tabindex$0.2.1/index"),i=e("/makeup-expander$0.7.2/index"),u=e("/makeup-floating-label$0.0.5/index"),d=e("/makeup-prevent-scroll-keys$0.0.3/index"),s=e("/makeup-active-descendant$0.1.0/index");document.querySelectorAll(".expand-btn-example").forEach(function(e,t){e.addEventListener("click",function(e){var t="true"===this.getAttribute("aria-expanded");this.setAttribute("aria-expanded",!t)})}),document.querySelectorAll(".menu").forEach(function(e,t){if(e.querySelector(".expand-btn")){var o=(new i(e,{autoCollapse:!0,contentSelector:"[role=menu]",expandOnClick:!0,focusManagement:"focusable",hostSelector:".expand-btn"}),e.querySelector("[role=menu]"));a.createLinear(o,".menu__item");o.querySelectorAll(".menu__item").forEach(function(e){d.add(e)})}}),document.querySelectorAll(".fake-menu").forEach(function(e){new i(e,{collapseOnFocusOut:!0,collapseOnMouseOut:!0,contentSelector:".fake-menu__items",expandOnClick:!0,hostSelector:".expand-btn"})}),document.querySelectorAll(".combobox").forEach(function(e){var t=(new i(e,{autoCollapse:!0,contentSelector:"[role=listbox]",expandedClass:"combobox--expanded",expandOnFocus:!0,hostSelector:"input"}),e.querySelector("input")),o=e.querySelector("[role=listbox]");s.createLinear(e,t,o,"[role=option]",{activeDescendantClassName:"combobox__option--active"})}),document.querySelectorAll(".listbox").forEach(function(e){var t=(new i(e,{autoCollapse:!0,contentSelector:"[role=listbox]",expandedClass:"listbox--expanded",expandOnClick:!0,focusManagement:"content",hostSelector:"button"}),e.querySelector("button")),o=e.querySelector("[role=listbox]"),n=o.querySelectorAll("[role=option]"),l=0;n.forEach(function(e,t){e.hasAttribute("aria-selected")&&(l=t)});s.createLinear(e,o,o,"[role=option]",{activeDescendantClassName:"listbox__option--active",autoInit:l,autoReset:null});d.add(e.querySelector("[role=listbox]"));var c=t.querySelector(".expand-btn__cell > span:first-child");e.addEventListener("activeDescendantChange",function(e){e.detail.toIndex>-1&&(c.innerText=n[e.detail.toIndex].innerText)})}),document.querySelectorAll(".dialog-button").forEach(function(e){function t(){l&&l(),l=r(a,"dialog--show",n(!0)),a.removeAttribute("hidden"),e.removeEventListener("click",t),a.addEventListener("click",o,!0),document.body.setAttribute("style","overflow:hidden"),c.modal(a.querySelector(".dialog__window"))}function o(u){i.contains(u.target)||(l&&l(),l=r(a,"dialog--hide",n(!1)),a.setAttribute("hidden",""),e.addEventListener("click",t),a.removeEventListener("click",o,!0),document.body.removeAttribute("style"),c.unmodal(),e.focus())}function n(e){e&&window.setTimeout(function(){u.focus()},250),l=void 0}var l,a=e.nextElementSibling,i=a.querySelector(".dialog__body"),u=a.querySelector(".dialog__close");e.addEventListener("click",t)}),document.querySelectorAll(".tooltip").forEach(function(e){new i(e,{contentSelector:".tooltip__overlay",collapseOnFocusOut:!0,collapseOnMouseOut:!0,expandOnFocus:!0,expandOnHover:!0,focusManagement:"focusable",hostSelector:".tooltip__host"})}),document.querySelectorAll(".infotip").forEach(function(e){var t=new i(e,{contentSelector:".infotip__overlay",expandOnFocus:!1,expandOnClick:!0,hostSelector:".infotip__host"});e.querySelector(".infotip__close").addEventListener("click",function(){t.collapse()})}),document.querySelectorAll(".tourtip").forEach(function(e){e.querySelector(".tourtip__close").addEventListener("click",function(){e.classList.remove("tourtip--expanded")})}),document.querySelectorAll(".floating-label").forEach(function(e){new u(e)}),document.querySelectorAll(".tabs").forEach(function(e){var t=(a.createLinear(e,"[role=tab]",{wrap:!0}),e.querySelectorAll("[role=tab]")),o=e.querySelectorAll("[role=tabpanel]");e.addEventListener("rovingTabindexChange",function(e){t[e.detail.fromIndex].setAttribute("aria-selected","false"),t[e.detail.toIndex].setAttribute("aria-selected","true"),o[e.detail.fromIndex].hidden=!0,o[e.detail.toIndex].hidden=!1}),e.querySelectorAll("[role=tab]").forEach(function(e){d.add(e)})})}); -$_mod.run("/@ebay/skin$7.3.0-0/docs/_babel/base/main"); -$_mod.def("/@ebay/skin$7.3.0-0/docs/_babel/ds6/main",function(i,e,d,n,o){"use strict";function a(){var i=window.mm.matches,e=window.scrollY||window.pageYOffset;!i&&e>=window.sidebar_top?window.sidebar.classList.add("fixed"):window.sidebar.classList.remove("fixed")}window.mobileMediaQuery="all and (max-width: 600px)",window.mm=window.matchMedia(window.mobileMediaQuery),window.sidebar=document.querySelector("nav .fixed-nav"),window.sidebar_top=sidebar.offsetTop,window.addEventListener("resize",function(i,e,d){var n;return function(){var o=this,a=arguments,w=function(){n=null,d||i.apply(o,a)},t=d&&!n;clearTimeout(n),n=setTimeout(w,e),t&&i.apply(o,a)}}(function(){mm=window.matchMedia(mobileMediaQuery)},50)),window.addEventListener("load",function(){a(),window.addEventListener("scroll",a)})}); -$_mod.run("/@ebay/skin$7.3.0-0/docs/_babel/ds6/main"); \ No newline at end of file +$_mod.def("/@ebay/skin$7.3.0/docs/_babel/base/main",function(e,t,o,n,l){"use strict";var c=e("/makeup-modal$0.1.0/index"),r=e("/@ebay/skin$7.3.0/docs/_babel/base/transition"),a=e("/makeup-roving-tabindex$0.2.1/index"),i=e("/makeup-expander$0.7.2/index"),u=e("/makeup-floating-label$0.0.5/index"),d=e("/makeup-prevent-scroll-keys$0.0.3/index"),s=e("/makeup-active-descendant$0.1.0/index");document.querySelectorAll(".expand-btn-example").forEach(function(e,t){e.addEventListener("click",function(e){var t="true"===this.getAttribute("aria-expanded");this.setAttribute("aria-expanded",!t)})}),document.querySelectorAll(".menu").forEach(function(e,t){if(e.querySelector(".expand-btn")){var o=(new i(e,{autoCollapse:!0,contentSelector:"[role=menu]",expandOnClick:!0,focusManagement:"focusable",hostSelector:".expand-btn"}),e.querySelector("[role=menu]"));a.createLinear(o,".menu__item");o.querySelectorAll(".menu__item").forEach(function(e){d.add(e)})}}),document.querySelectorAll(".fake-menu").forEach(function(e){new i(e,{collapseOnFocusOut:!0,collapseOnMouseOut:!0,contentSelector:".fake-menu__items",expandOnClick:!0,hostSelector:".expand-btn"})}),document.querySelectorAll(".combobox").forEach(function(e){var t=(new i(e,{autoCollapse:!0,contentSelector:"[role=listbox]",expandedClass:"combobox--expanded",expandOnFocus:!0,hostSelector:"input"}),e.querySelector("input")),o=e.querySelector("[role=listbox]");s.createLinear(e,t,o,"[role=option]",{activeDescendantClassName:"combobox__option--active"})}),document.querySelectorAll(".listbox").forEach(function(e){var t=(new i(e,{autoCollapse:!0,contentSelector:"[role=listbox]",expandedClass:"listbox--expanded",expandOnClick:!0,focusManagement:"content",hostSelector:"button"}),e.querySelector("button")),o=e.querySelector("[role=listbox]"),n=o.querySelectorAll("[role=option]"),l=0;n.forEach(function(e,t){e.hasAttribute("aria-selected")&&(l=t)});s.createLinear(e,o,o,"[role=option]",{activeDescendantClassName:"listbox__option--active",autoInit:l,autoReset:null});d.add(e.querySelector("[role=listbox]"));var c=t.querySelector(".expand-btn__cell > span:first-child");e.addEventListener("activeDescendantChange",function(e){e.detail.toIndex>-1&&(c.innerText=n[e.detail.toIndex].innerText)})}),document.querySelectorAll(".dialog-button").forEach(function(e){function t(){l&&l(),l=r(a,"dialog--show",n(!0)),a.removeAttribute("hidden"),e.removeEventListener("click",t),a.addEventListener("click",o,!0),document.body.setAttribute("style","overflow:hidden"),c.modal(a.querySelector(".dialog__window"))}function o(u){i.contains(u.target)||(l&&l(),l=r(a,"dialog--hide",n(!1)),a.setAttribute("hidden",""),e.addEventListener("click",t),a.removeEventListener("click",o,!0),document.body.removeAttribute("style"),c.unmodal(),e.focus())}function n(e){e&&window.setTimeout(function(){u.focus()},250),l=void 0}var l,a=e.nextElementSibling,i=a.querySelector(".dialog__body"),u=a.querySelector(".dialog__close");e.addEventListener("click",t)}),document.querySelectorAll(".tooltip").forEach(function(e){new i(e,{contentSelector:".tooltip__overlay",collapseOnFocusOut:!0,collapseOnMouseOut:!0,expandOnFocus:!0,expandOnHover:!0,focusManagement:"focusable",hostSelector:".tooltip__host"})}),document.querySelectorAll(".infotip").forEach(function(e){var t=new i(e,{contentSelector:".infotip__overlay",expandOnFocus:!1,expandOnClick:!0,hostSelector:".infotip__host"});e.querySelector(".infotip__close").addEventListener("click",function(){t.collapse()})}),document.querySelectorAll(".tourtip").forEach(function(e){e.querySelector(".tourtip__close").addEventListener("click",function(){e.classList.remove("tourtip--expanded")})}),document.querySelectorAll(".floating-label").forEach(function(e){new u(e)}),document.querySelectorAll(".tabs").forEach(function(e){var t=(a.createLinear(e,"[role=tab]",{wrap:!0}),e.querySelectorAll("[role=tab]")),o=e.querySelectorAll("[role=tabpanel]");e.addEventListener("rovingTabindexChange",function(e){t[e.detail.fromIndex].setAttribute("aria-selected","false"),t[e.detail.toIndex].setAttribute("aria-selected","true"),o[e.detail.fromIndex].hidden=!0,o[e.detail.toIndex].hidden=!1}),e.querySelectorAll("[role=tab]").forEach(function(e){d.add(e)})})}); +$_mod.run("/@ebay/skin$7.3.0/docs/_babel/base/main"); +$_mod.def("/@ebay/skin$7.3.0/docs/_babel/ds6/main",function(i,e,d,n,o){"use strict";function a(){var i=window.mm.matches,e=window.scrollY||window.pageYOffset;!i&&e>=window.sidebar_top?window.sidebar.classList.add("fixed"):window.sidebar.classList.remove("fixed")}window.mobileMediaQuery="all and (max-width: 600px)",window.mm=window.matchMedia(window.mobileMediaQuery),window.sidebar=document.querySelector("nav .fixed-nav"),window.sidebar_top=sidebar.offsetTop,window.addEventListener("resize",function(i,e,d){var n;return function(){var o=this,a=arguments,w=function(){n=null,d||i.apply(o,a)},t=d&&!n;clearTimeout(n),n=setTimeout(w,e),t&&i.apply(o,a)}}(function(){mm=window.matchMedia(mobileMediaQuery)},50)),window.addEventListener("load",function(){a(),window.addEventListener("scroll",a)})}); +$_mod.run("/@ebay/skin$7.3.0/docs/_babel/ds6/main"); \ No newline at end of file diff --git a/docs/static/ds6/skin-base64.min.css b/docs/static/ds6/skin-base64.min.css index 39f4f637c..ab37d4d9a 100644 --- a/docs/static/ds6/skin-base64.min.css +++ b/docs/static/ds6/skin-base64.min.css @@ -1,5 +1,5 @@ /*! -Skin v7.3.0-0 +Skin v7.3.0 Copyright 2017 eBay! Inc. All rights reserved. Licensed under the BSD License. https://github.com/eBay/skin/blob/master/LICENSE.txt" diff --git a/docs/static/ds6/skin.min.css b/docs/static/ds6/skin.min.css index 8bee6eeaa..15829c35e 100644 --- a/docs/static/ds6/skin.min.css +++ b/docs/static/ds6/skin.min.css @@ -1,5 +1,5 @@ /*! -Skin v7.3.0-0 +Skin v7.3.0 Copyright 2017 eBay! Inc. All rights reserved. Licensed under the BSD License. https://github.com/eBay/skin/blob/master/LICENSE.txt" diff --git a/package.json b/package.json index d8a3ab591..5dce77c6c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@ebay/skin", "description": "Skin - CSS modules that represent the brand eBay", - "version": "7.3.0-0", + "version": "7.3.0", "license": "MIT", "maintainers": [ "Ian McBurnie ",