@madgex/design-system 1.20.2 → 1.20.3

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/babel.config.js CHANGED
@@ -4,10 +4,15 @@ module.exports = {
4
4
  '@babel/preset-env',
5
5
  {
6
6
  targets: {
7
- node: 'current',
8
- ie: '11',
7
+ browsers: 'defaults',
8
+ // browsers: ['Edge >= 16', 'Firefox >= 60', 'Chrome >= 61', 'Safari >= 11', 'Opera >= 48'],
9
+ // esmodules: true,
9
10
  },
11
+ useBuiltIns: 'usage',
12
+ corejs: 3,
13
+ // debug: true,
10
14
  },
11
15
  ],
12
16
  ],
17
+ plugins: ['@babel/plugin-transform-runtime'],
13
18
  };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 01 Aug 2019 12:23:28 GMT
3
+ * Generated on Fri, 02 Aug 2019 11:08:58 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 01 Aug 2019 12:23:28 GMT
3
+ * Generated on Fri, 02 Aug 2019 11:08:58 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,7 +1,7 @@
1
1
 
2
2
  /*
3
3
  Do not edit directly
4
- Generated on Thu, 01 Aug 2019 12:23:28 GMT
4
+ Generated on Fri, 02 Aug 2019 11:08:58 GMT
5
5
  */
6
6
 
7
7
  $mds-color-brand-1-base: #1b75bb !default;
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Do not edit directly
3
- Generated on Thu, 01 Aug 2019 12:23:28 GMT
3
+ Generated on Fri, 02 Aug 2019 11:08:58 GMT
4
4
  */
5
5
  html,
6
6
  body,
package/dist/js/index.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},function(e,t){document.addEventListener("DOMContentLoaded",function(){document.documentElement.classList.add("js")}),window.addEventListener("hashchange",function(){var e=window.location.hash.trim();Array.from(document.querySelectorAll("a[href='".concat(e,"']"))).forEach(function(e){e.click()})},!1)},function(e,t,n){"use strict";n.r(t);n(0),n(1);var r=37,a=39,o=38,c=40,l={init:function(){var e=Array.from(document.querySelectorAll(".".concat("mds-tabs__list"))),t=Array.from(document.querySelectorAll(".".concat("mds-tabs__list-item"))),n=Array.from(document.querySelectorAll(".".concat("mds-tabs__tab"))),s=Array.from(document.querySelectorAll(".".concat("mds-tabs__panel")));e.forEach(function(e){e.setAttribute("role","tablist")}),t.forEach(function(e){e.setAttribute("role","presentation")}),n.forEach(function(e){e.setAttribute("role","tab"),e.setAttribute("aria-controls",e.attributes.href.value.substring(1)),e.classList.contains("mds-tabs__tab--selected")?e.setAttribute("tabindex","0"):e.setAttribute("tabindex","-1")}),s.forEach(function(e){e.setAttribute("role","tabpanel"),e.setAttribute("aria-labelledby",e.attributes.id.value)});var i=document.querySelectorAll(".".concat("js-tabs-item"));Array.from(i).forEach(function(e){var t=window.location.hash.trim(),n=e.attributes.href.value,r=e.closest(".".concat("mds-tabs")),a=l.getAllPanels(r),o=l.getAllTabs(r),c=l.getTargetPanel(e,r);e.addEventListener("click",function(t){t.preventDefault(),l.updateTabs(o,a,e,c,n)}),n===t&&l.updateTabs(o,a,e,c,n)}),e.forEach(function(e){var t=e.closest(".".concat("mds-tabs")),n=l.getAllPanels(t),s=l.getAllTabs(t);e.addEventListener("keydown",function(i){switch(i.keyCode){case r:case o:i.preventDefault(),l.moveTab(e,t,s,n,!1);break;case a:case c:i.preventDefault(),l.moveTab(e,t,s,n,!0)}})})},getSelectedTab:function(e){return e.querySelector(".".concat("mds-tabs__tab--selected"))},getPrevTab:function(e){return!!e.parentElement.previousSibling&&e.parentElement.previousSibling.querySelector(".".concat("mds-tabs__tab"))},getNextTab:function(e){return!!e.parentElement.nextSibling&&e.parentElement.nextSibling.querySelector(".".concat("mds-tabs__tab"))},getTargetPanel:function(e,t){var n=e.attributes.href.value;return t.querySelector(n)},getAllPanels:function(e){return Array.from(e.querySelectorAll(".".concat("mds-tabs__panel")))},getAllTabs:function(e){return Array.from(e.querySelectorAll(".".concat("mds-tabs__tab")))},moveTab:function(e,t,n,r,a){var o=l.getSelectedTab(e),c=a?l.getNextTab(o):l.getPrevTab(o);if(c){var s=c.attributes.href.value,i=l.getTargetPanel(c,t);l.updateTabs(n,r,c,i,s,!1)}},updateTabs:function(e,t,n,r,a){l.clearAllTabs(e),l.setActiveTab(n),l.clearAllPanels(t),l.setActivePanel(r,a)},clearAllTabs:function(e){e.forEach(function(e){e.classList.remove("mds-tabs__tab--selected"),e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1")})},clearAllPanels:function(e){e.forEach(function(e){e.classList.add("mds-tabs__panel--hidden")})},setActiveTab:function(e){e.classList.add("mds-tabs__tab--selected"),e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0"),e.focus()},setActivePanel:function(e,t){e.classList.remove("mds-tabs__panel--hidden"),window.history.replaceState({},"",t)}},s=l;document.addEventListener("DOMContentLoaded",function(){s.init()})}]);
1
+ !function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=83)}([function(t,e,n){(function(e){var n="object",r=function(t){return t&&t.Math==Math&&t};t.exports=r(typeof globalThis==n&&globalThis)||r(typeof window==n&&window)||r(typeof self==n&&self)||r(typeof e==n&&e)||Function("return this")()}).call(this,n(45))},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(0),o=n(11),i=n(33),c=n(60),u=r.Symbol,a=o("wks");t.exports=function(t){return a[t]||(a[t]=c&&u[t]||(c?u:i)("Symbol."+t))}},function(t,e,n){var r=n(7),o=n(8),i=n(9);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(1);t.exports=!r(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(7),o=n(28),i=n(6),c=n(16),u=Object.defineProperty;e.f=r?u:function(t,e,n){if(i(t),e=c(e,!0),i(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(0),o=n(17),i=n(18),c=r["__core-js_shared__"]||o("__core-js_shared__",{});(t.exports=function(t,e){return c[t]||(c[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.1.3",mode:i?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports={}},function(t,e,n){var r=n(0),o=n(26).f,i=n(4),c=n(30),u=n(17),a=n(48),f=n(55);t.exports=function(t,e){var n,s,l,p,v,y=t.target,d=t.global,b=t.stat;if(n=d?r:b?r[y]||u(y,{}):(r[y]||{}).prototype)for(s in e){if(p=e[s],l=t.noTargetGet?(v=o(n,s))&&v.value:n[s],!f(d?s:y+(b?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),c(n,s,p,t)}}},function(t,e,n){var r=n(27),o=n(10);t.exports=function(t){return r(o(t))}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(5);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),o=n(4);t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},function(t,e){t.exports=!1},function(t,e,n){var r=n(11),o=n(33),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports={}},function(t,e,n){var r=n(22),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r=n(10);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(13),o=n(56);r({target:"Array",stat:!0,forced:!n(64)(function(t){Array.from(t)})},{from:o})},function(t,e,n){var r=n(7),o=n(46),i=n(9),c=n(14),u=n(16),a=n(2),f=n(28),s=Object.getOwnPropertyDescriptor;e.f=r?s:function(t,e){if(t=c(t),e=u(e,!0),f)try{return s(t,e)}catch(t){}if(a(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e,n){var r=n(1),o=n(15),i="".split;t.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(7),o=n(1),i=n(29);t.exports=!r&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(0),o=n(5),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},function(t,e,n){var r=n(0),o=n(11),i=n(4),c=n(2),u=n(17),a=n(31),f=n(32),s=f.get,l=f.enforce,p=String(a).split("toString");o("inspectSource",function(t){return a.call(t)}),(t.exports=function(t,e,n,o){var a=!!o&&!!o.unsafe,f=!!o&&!!o.enumerable,s=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof e||c(n,"name")||i(n,"name",e),l(n).source=p.join("string"==typeof e?e:"")),t!==r?(a?!s&&t[e]&&(f=!0):delete t[e],f?t[e]=n:i(t,e,n)):f?t[e]=n:u(e,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&s(this).source||a.call(this)})},function(t,e,n){var r=n(11);t.exports=r("native-function-to-string",Function.toString)},function(t,e,n){var r,o,i,c=n(47),u=n(0),a=n(5),f=n(4),s=n(2),l=n(19),p=n(20),v=u.WeakMap;if(c){var y=new v,d=y.get,b=y.has,h=y.set;r=function(t,e){return h.call(y,t,e),e},o=function(t){return d.call(y,t)||{}},i=function(t){return b.call(y,t)}}else{var g=l("state");p[g]=!0,r=function(t,e){return f(t,g,e),e},o=function(t){return s(t,g)?t[g]:{}},i=function(t){return s(t,g)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!a(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r=n(50),o=n(0),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},function(t,e,n){var r=n(2),o=n(14),i=n(52).indexOf,c=n(20);t.exports=function(t,e){var n,u=o(t),a=0,f=[];for(n in u)!r(c,n)&&r(u,n)&&f.push(n);for(;e.length>a;)r(u,n=e[a++])&&(~i(f,n)||f.push(n));return f}},function(t,e,n){var r=n(57);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){"use strict";var r=n(65).charAt,o=n(32),i=n(66),c=o.set,u=o.getterFor("String Iterator");i(String,"String",function(t){c(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=u(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r,o,i,c=n(39),u=n(4),a=n(2),f=n(3),s=n(18),l=f("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):p=!0),null==r&&(r={}),s||a(r,l)||u(r,l,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(t,e,n){var r=n(2),o=n(24),i=n(19),c=n(68),u=i("IE_PROTO"),a=Object.prototype;t.exports=c?Object.getPrototypeOf:function(t){return t=o(t),r(t,u)?t[u]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(8).f,o=n(2),i=n(3)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){"use strict";var r=n(13),o=n(75).trim;r({target:"String",proto:!0,forced:n(76)("trim")},{trim:function(){return o(this)}})},function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(t,e,n){var r=n(0),o=n(77),i=n(78),c=n(4);for(var u in o){var a=r[u],f=a&&a.prototype;if(f&&f.forEach!==i)try{c(f,"forEach",i)}catch(t){f.forEach=i}}},function(t,e){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null})},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(0),o=n(31),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o.call(i))},function(t,e,n){var r=n(2),o=n(49),i=n(26),c=n(8);t.exports=function(t,e){for(var n=o(e),u=c.f,a=i.f,f=0;f<n.length;f++){var s=n[f];r(t,s)||u(t,s,a(e,s))}}},function(t,e,n){var r=n(34),o=n(51),i=n(54),c=n(6);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(c(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){t.exports=n(0)},function(t,e,n){var r=n(35),o=n(23).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(14),o=n(21),i=n(53),c=function(t){return function(e,n,c){var u,a=r(e),f=o(a.length),s=i(c,f);if(t&&n!=n){for(;f>s;)if((u=a[s++])!=u)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},function(t,e,n){var r=n(22),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(1),o=/#|\.prototype\./,i=function(t,e){var n=u[c(t)];return n==f||n!=a&&("function"==typeof e?r(e):!!e)},c=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,e,n){"use strict";var r=n(36),o=n(24),i=n(58),c=n(59),u=n(21),a=n(61),f=n(62);t.exports=function(t){var e,n,s,l,p=o(t),v="function"==typeof this?this:Array,y=arguments.length,d=y>1?arguments[1]:void 0,b=void 0!==d,h=0,g=f(p);if(b&&(d=r(d,y>2?arguments[2]:void 0,2)),null==g||v==Array&&c(g))for(n=new v(e=u(p.length));e>h;h++)a(n,h,b?d(p[h],h):p[h]);else for(l=g.call(p),n=new v;!(s=l.next()).done;h++)a(n,h,b?i(l,d,[s.value,h],!0):s.value);return n.length=h,n}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){var r=n(6);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(3),o=n(12),i=r("iterator"),c=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||c[i]===t)}},function(t,e,n){var r=n(1);t.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},function(t,e,n){"use strict";var r=n(16),o=n(8),i=n(9);t.exports=function(t,e,n){var c=r(e);c in t?o.f(t,c,i(0,n)):t[c]=n}},function(t,e,n){var r=n(63),o=n(12),i=n(3)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(15),o=n(3)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(c=r(e))&&"function"==typeof e.callee?"Arguments":c}},function(t,e,n){var r=n(3)("iterator"),o=!1;try{var i=0,c={next:function(){return{done:!!i++}},return:function(){o=!0}};c[r]=function(){return this},Array.from(c,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){var r=n(22),o=n(10),i=function(t){return function(e,n){var i,c,u=String(o(e)),a=r(n),f=u.length;return a<0||a>=f?t?"":void 0:(i=u.charCodeAt(a))<55296||i>56319||a+1===f||(c=u.charCodeAt(a+1))<56320||c>57343?t?u.charAt(a):i:t?u.slice(a,a+2):c-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,e,n){"use strict";var r=n(13),o=n(67),i=n(39),c=n(73),u=n(40),a=n(4),f=n(30),s=n(3),l=n(18),p=n(12),v=n(38),y=v.IteratorPrototype,d=v.BUGGY_SAFARI_ITERATORS,b=s("iterator"),h=function(){return this};t.exports=function(t,e,n,s,v,g,m){o(n,e,s);var x,S,A,_=function(t){if(t===v&&P)return P;if(!d&&t in w)return w[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},O=e+" Iterator",T=!1,w=t.prototype,E=w[b]||w["@@iterator"]||v&&w[v],P=!d&&E||_(v),j="Array"==e&&w.entries||E;if(j&&(x=i(j.call(new t)),y!==Object.prototype&&x.next&&(l||i(x)===y||(c?c(x,y):"function"!=typeof x[b]&&a(x,b,h)),u(x,O,!0,!0),l&&(p[O]=h))),"values"==v&&E&&"values"!==E.name&&(T=!0,P=function(){return E.call(this)}),l&&!m||w[b]===P||a(w,b,P),p[e]=P,v)if(S={values:_("values"),keys:g?P:_("keys"),entries:_("entries")},m)for(A in S)!d&&!T&&A in w||f(w,A,S[A]);else r({target:e,proto:!0,forced:d||T},S);return S}},function(t,e,n){"use strict";var r=n(38).IteratorPrototype,o=n(69),i=n(9),c=n(40),u=n(12),a=function(){return this};t.exports=function(t,e,n){var f=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),c(t,f,!1,!0),u[f]=a,t}},function(t,e,n){var r=n(1);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},function(t,e,n){var r=n(6),o=n(70),i=n(23),c=n(20),u=n(72),a=n(29),f=n(19)("IE_PROTO"),s=function(){},l=function(){var t,e=a("iframe"),n=i.length;for(e.style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l.prototype[i[n]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[f]=t):n=l(),void 0===e?n:o(n,e)},c[f]=!0},function(t,e,n){var r=n(7),o=n(8),i=n(6),c=n(71);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=c(e),u=r.length,a=0;u>a;)o.f(t,n=r[a++],e[n]);return t}},function(t,e,n){var r=n(35),o=n(23);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(34);t.exports=r("document","documentElement")},function(t,e,n){var r=n(6),o=n(74);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){var r=n(10),o="["+n(42)+"]",i=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),u=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:u(1),end:u(2),trim:u(3)}},function(t,e,n){var r=n(1),o=n(42);t.exports=function(t){return r(function(){return!!o[t]()||"​…᠎"!="​…᠎"[t]()||o[t].name!==t})}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){"use strict";var r=n(79).forEach,o=n(82);t.exports=o("forEach")?function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach},function(t,e,n){var r=n(36),o=n(27),i=n(24),c=n(21),u=n(80),a=[].push,f=function(t){var e=1==t,n=2==t,f=3==t,s=4==t,l=6==t,p=5==t||l;return function(v,y,d,b){for(var h,g,m=i(v),x=o(m),S=r(y,d,3),A=c(x.length),_=0,O=b||u,T=e?O(v,A):n?O(v,0):void 0;A>_;_++)if((p||_ in x)&&(g=S(h=x[_],_,m),t))if(e)T[_]=g;else if(g)switch(t){case 3:return!0;case 5:return h;case 6:return _;case 2:a.call(T,h)}else if(s)return!1;return l?-1:f||s?s:T}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6)}},function(t,e,n){var r=n(5),o=n(81),i=n(3)("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},function(t,e,n){var r=n(15);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(1);t.exports=function(t,e){var n=[][t];return!n||!r(function(){n.call(null,e||function(){throw 1},1)})}},function(t,e,n){"use strict";n.r(e);n(44),n(25),n(37),n(41),n(43);window.addEventListener("hashchange",function(){var t=window.location.hash.trim();Array.from(document.querySelectorAll("a[href='".concat(t,"']"))).forEach(function(t){t.click()})},!1);var r=37,o=39,i=38,c=40,u={init:function(){var t=Array.from(document.querySelectorAll(".".concat("mds-tabs__list"))),e=Array.from(document.querySelectorAll(".".concat("mds-tabs__list-item"))),n=Array.from(document.querySelectorAll(".".concat("mds-tabs__tab"))),a=Array.from(document.querySelectorAll(".".concat("mds-tabs__panel")));t.forEach(function(t){t.setAttribute("role","tablist")}),e.forEach(function(t){t.setAttribute("role","presentation")}),n.forEach(function(t){t.setAttribute("role","tab"),t.setAttribute("aria-controls",t.attributes.href.value.substring(1)),t.classList.contains("mds-tabs__tab--selected")?t.setAttribute("tabindex","0"):t.setAttribute("tabindex","-1")}),a.forEach(function(t){t.setAttribute("role","tabpanel"),t.setAttribute("aria-labelledby",t.attributes.id.value)});var f=document.querySelectorAll(".".concat("js-tabs-item"));Array.from(f).forEach(function(t){var e=window.location.hash.trim(),n=t.attributes.href.value,r=t.closest(".".concat("mds-tabs")),o=u.getAllPanels(r),i=u.getAllTabs(r),c=u.getTargetPanel(t,r);t.addEventListener("click",function(e){e.preventDefault(),u.updateTabs(i,o,t,c,n)}),n===e&&u.updateTabs(i,o,t,c,n)}),t.forEach(function(t){var e=t.closest(".".concat("mds-tabs")),n=u.getAllPanels(e),a=u.getAllTabs(e);t.addEventListener("keydown",function(f){switch(f.keyCode){case r:case i:f.preventDefault(),u.moveTab(t,e,a,n,!1);break;case o:case c:f.preventDefault(),u.moveTab(t,e,a,n,!0)}})})},getSelectedTab:function(t){return t.querySelector(".".concat("mds-tabs__tab--selected"))},getPrevTab:function(t){return!!t.parentElement.previousSibling&&t.parentElement.previousSibling.querySelector(".".concat("mds-tabs__tab"))},getNextTab:function(t){return!!t.parentElement.nextSibling&&t.parentElement.nextSibling.querySelector(".".concat("mds-tabs__tab"))},getTargetPanel:function(t,e){var n=t.attributes.href.value;return e.querySelector(n)},getAllPanels:function(t){return Array.from(t.querySelectorAll(".".concat("mds-tabs__panel")))},getAllTabs:function(t){return Array.from(t.querySelectorAll(".".concat("mds-tabs__tab")))},moveTab:function(t,e,n,r,o){var i=u.getSelectedTab(t),c=o?u.getNextTab(i):u.getPrevTab(i);if(c){var a=c.attributes.href.value,f=u.getTargetPanel(c,e);u.updateTabs(n,r,c,f,a,!1)}},updateTabs:function(t,e,n,r,o){u.clearAllTabs(t),u.setActiveTab(n),u.clearAllPanels(e),u.setActivePanel(r,o)},clearAllTabs:function(t){t.forEach(function(t){t.classList.remove("mds-tabs__tab--selected"),t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1")})},clearAllPanels:function(t){t.forEach(function(t){t.classList.add("mds-tabs__panel--hidden")})},setActiveTab:function(t){t.classList.add("mds-tabs__tab--selected"),t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0"),t.focus()},setActivePanel:function(t,e){t.classList.remove("mds-tabs__panel--hidden"),window.history.replaceState({},"",e)}},a=u;document.addEventListener("DOMContentLoaded",function(){a.init()})}]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@madgex/design-system",
3
- "version": "1.20.2",
3
+ "version": "1.20.3",
4
4
  "scripts": {
5
5
  "clean": "rimraf dist public tokens/build",
6
6
  "commit": "commit",
@@ -20,12 +20,12 @@
20
20
  "type": "git",
21
21
  "url": "https://github.com/jameswragg/madgex-design-system"
22
22
  },
23
- "dependencies": {
24
- "@babel/polyfill": "^7.4.4"
25
- },
23
+ "dependencies": {},
26
24
  "devDependencies": {
27
- "@babel/core": "^7.5.4",
28
- "@babel/preset-env": "^7.5.4",
25
+ "@babel/core": "^7.5.5",
26
+ "@babel/plugin-transform-runtime": "^7.5.5",
27
+ "@babel/preset-env": "^7.5.5",
28
+ "@babel/runtime": "^7.5.5",
29
29
  "@commitlint/cli": "^8.1.0",
30
30
  "@commitlint/config-conventional": "^8.1.0",
31
31
  "@commitlint/prompt-cli": "^8.1.0",
@@ -35,13 +35,14 @@
35
35
  "@madgex/eslint-config-madgex": "^1.2.0",
36
36
  "autoprefixer": "^9.6.1",
37
37
  "babel-loader": "^8.0.6",
38
- "commitizen": "^3.1.1",
38
+ "commitizen": "^3.1.2",
39
39
  "concurrently": "^4.1.1",
40
- "css-loader": "^3.0.0",
40
+ "core-js": "^3.1.4",
41
+ "css-loader": "^3.1.0",
41
42
  "cssnano": "^4.1.10",
42
43
  "cz-conventional-changelog": "^2.1.0",
43
44
  "del": "^5.0.0",
44
- "file-loader": "^4.0.0",
45
+ "file-loader": "^4.1.0",
45
46
  "flat": "^4.1.0",
46
47
  "glob": "^7.1.4",
47
48
  "gulp": "^4.0.2",
@@ -50,8 +51,8 @@
50
51
  "gulp-svgmin": "^2.2.0",
51
52
  "gulp-svgstore": "^7.0.1",
52
53
  "gulp-tap": "^1.0.1",
53
- "husky": "^3.0.0",
54
- "lint-staged": "^9.2.0",
54
+ "husky": "^3.0.2",
55
+ "lint-staged": "^9.2.1",
55
56
  "mini-css-extract-plugin": "^0.8.0",
56
57
  "node-sass": "^4.12.0",
57
58
  "postcss": "^7.0.17",
@@ -59,13 +60,13 @@
59
60
  "postcss-loader": "^3.0.0",
60
61
  "rimraf": "^2.6.3",
61
62
  "sass-loader": "^7.1.0",
62
- "semantic-release": "^15.13.18",
63
+ "semantic-release": "^15.13.19",
63
64
  "style-dictionary": "^2.8.1",
64
65
  "style-loader": "^0.23.1",
65
66
  "svg-sprite-loader": "^4.1.6",
66
67
  "svgo": "^1.3.0",
67
68
  "svgo-loader": "^2.2.1",
68
- "webpack": "^4.35.3",
69
+ "webpack": "^4.39.0",
69
70
  "webpack-cli": "^3.3.6",
70
71
  "webpack-dev-server": "^3.7.2",
71
72
  "webpack-stream": "^5.2.1"
package/src/_template.njk CHANGED
@@ -15,10 +15,10 @@
15
15
  <link rel="apple-touch-icon" href="{{ assetPath | default('/assets') }}/images/mds-apple-touch-icon.png">
16
16
  #}
17
17
  {% endblock %}
18
+ <script>if(document.documentElement){document.documentElement.className='js';}</script>
18
19
  {% block head %}{% endblock %}
19
20
  </head>
20
21
  <body class="mds-template__body {{ bodyClasses }}">
21
- <script>document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');</script>
22
22
  {% block bodyStart %}{% endblock %}
23
23
 
24
24
  {% block header %}
@@ -8,6 +8,7 @@
8
8
 
9
9
  <title>{{ _target.title }} - {{ _config.project.title }}</title>
10
10
 
11
+ <script>if(document.documentElement){document.documentElement.className='js';}</script>
11
12
  <script type="text/javascript" src="{{ '/js/index.js' | path }}"></script>
12
13
  </head>
13
14
  <body style="padding: 30px;">
package/src/js/common.js CHANGED
@@ -1,7 +1,3 @@
1
- document.addEventListener('DOMContentLoaded', () => {
2
- document.documentElement.classList.add('js');
3
- });
4
-
5
1
  window.addEventListener(
6
2
  'hashchange',
7
3
  () => {