diff --git a/packages/cfpb-design-system/cfpb-design-system.js b/packages/cfpb-design-system/cfpb-design-system.js index 68799e8c11..2fcf6d421f 100644 --- a/packages/cfpb-design-system/cfpb-design-system.js +++ b/packages/cfpb-design-system/cfpb-design-system.js @@ -1 +1 @@ -!function(){var t,e,n={852:function(t){"use strict";function e(t){this.listenerMap=[{},{}],t&&this.root(t),this.handle=e.prototype.handle.bind(this),this._removedListeners=[]}t.exports=e,e.prototype.root=function(t){var e,n=this.listenerMap;if(this.rootElement){for(e in n[1])n[1].hasOwnProperty(e)&&this.rootElement.removeEventListener(e,this.handle,!0);for(e in n[0])n[0].hasOwnProperty(e)&&this.rootElement.removeEventListener(e,this.handle,!1)}if(!t||!t.addEventListener)return this.rootElement&&delete this.rootElement,this;for(e in this.rootElement=t,n[1])n[1].hasOwnProperty(e)&&this.rootElement.addEventListener(e,this.handle,!0);for(e in n[0])n[0].hasOwnProperty(e)&&this.rootElement.addEventListener(e,this.handle,!1);return this},e.prototype.captureForType=function(t){return-1!==["blur","error","focus","load","resize","scroll"].indexOf(t)},e.prototype.on=function(t,e,o,a){var l,c,h,u;if(!t)throw new TypeError("Invalid event type: "+t);if("function"==typeof e&&(a=o,o=e,e=null),void 0===a&&(a=this.captureForType(t)),"function"!=typeof o)throw new TypeError("Handler must be a type of Function");return l=this.rootElement,(c=this.listenerMap[a?1:0])[t]||(l&&l.addEventListener(t,this.handle,a),c[t]=[]),e?/^[a-z]+$/i.test(e)?(u=e,h=i):/^#[a-z0-9\-_]+$/i.test(e)?(u=e.slice(1),h=r):(u=e,h=n):(u=null,h=s.bind(this)),c[t].push({selector:e,handler:o,matcher:h,matcherParam:u}),this},e.prototype.off=function(t,e,n,i){var s,r,o,a,l;if("function"==typeof e&&(i=n,n=e,e=null),void 0===i)return this.off(t,e,n,!0),this.off(t,e,n,!1),this;if(o=this.listenerMap[i?1:0],!t){for(l in o)o.hasOwnProperty(l)&&this.off(l,e,n);return this}if(!(a=o[t])||!a.length)return this;for(s=a.length-1;s>=0;s--)r=a[s],e&&e!==r.selector||n&&n!==r.handler||(this._removedListeners.push(r),a.splice(s,1));return a.length||(delete o[t],this.rootElement&&this.rootElement.removeEventListener(t,this.handle,i)),this},e.prototype.handle=function(t){var e,n,i,s,r,o=t.type,a=[],l="ftLabsDelegateIgnore";if(!0!==t[l]){switch(3===(r=t.target).nodeType&&(r=r.parentNode),r.correspondingUseElement&&(r=r.correspondingUseElement),i=this.rootElement,t.eventPhase||(t.target!==t.currentTarget?3:2)){case 1:a=this.listenerMap[1][o];break;case 2:this.listenerMap[0]&&this.listenerMap[0][o]&&(a=a.concat(this.listenerMap[0][o])),this.listenerMap[1]&&this.listenerMap[1][o]&&(a=a.concat(this.listenerMap[1][o]));break;case 3:a=this.listenerMap[0][o]}var c,h=[];for(n=a.length;r&&n;){for(e=0;e-1&&r.hasAttribute("disabled")?h=[]:s.matcher.call(r,s.matcherParam,r)&&h.push([t,r,s]);if(r===i)break;if(n=a.length,(r=r.parentElement||r.parentNode)instanceof HTMLDocument)break}for(e=0;e-1)&&!1===this.fire.apply(this,h[e])){h[e][0][l]=!0,h[e][0].preventDefault(),c=!1;break}return c}},e.prototype.fire=function(t,e,n){return n.handler.call(e,t,e)};var n=function(t){if(t){var e=t.prototype;return e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector}}(Element);function i(t,e){return t.toLowerCase()===e.tagName.toLowerCase()}function s(t,e){return this.rootElement===window?e===document||e===document.documentElement||e===window:this.rootElement===e}function r(t,e){return t===e.id}e.prototype.destroy=function(){this.off(),this.root()}},161:function(t,e,n){"use strict";var i=n(852);t.exports=function(t){return new i(t)},t.exports.Delegate=i},186:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var i=n(752);var s=i.uJ+"atomic_init";function r(t){return!function(t,e){if(!t)return!1;var n=t.getAttribute(i.kQ);return!!n&&(n=n.split(" ")).indexOf(e)>-1}(t,s)&&(function(t,e){if(-1!==e.indexOf(" ")){var n=i.kQ+" values cannot contain spaces!";throw new Error(n)}var s=t.getAttribute(i.kQ);null!==s&&(e=s+" "+e),t.setAttribute(i.kQ,e)}(t,s),!0)}function o(t){return"[object Object]"===Object.prototype.toString.call(t)}function a(t){t=t||{};for(var e=1,n=arguments.length;e1?n[t]=e:n[t]=null);return this.ui=n,n},destroy:function(){return this.element&&(this.element.parentNode.removeChild(this.element),this.element.view&&delete this.element.view,delete this.element),this.undelegateEvents(),this.dispatchEvent("component:destroyed"),!0},setElementAttributes:function(t){var e;for(e in t)t.hasOwnProperty(e)&&this.element.setAttribute(e,t[e])},delegateEvents:function(t){var e,n,i,s=/^(\S+)\s*(.*)$/;if(!(t=t||(t=this.events)))return this;for(e in this.undelegateEvents(),this._delegate=new h(this.element),t)({}).hasOwnProperty.call(t,e)&&(n=t[e],c.Z.isFunction(this[n])&&(n=this[n]),n&&(i=e.match(s),this.delegate(i[1],i[2],n.bind(this))));return this.dispatchEvent("component:bound"),this},delegate:function(t,e,n){return this._delegate.on(t,e,n),this},undelegateEvents:function(){return this._delegate&&this._delegate.destroy(),this.element.removeAttribute("data-js-hook"),this},uniqueId:function(t){return t+"_"+Math.random().toString(36).substr(2,9)}}),u.init=function(t){return function(t,e,n){for(var i,s,r=(n||document).querySelectorAll(t),o=[],a=0,l=r.length;ae&&(t.style.maxHeight=t.scrollHeight+"px")):t.classList.contains(a.COLLAPSED)&&this.dispatchEvent("collapseEnd",{target:this})}var r=new s.Z;return this.addEventListener=r.addEventListener,this.dispatchEvent=r.dispatchEvent,this.removeEventListener=r.removeEventListener,this.animateOff=n.animateOff,this.animateOn=n.animateOn,this.halt=n.halt,this.isAnimated=n.isAnimated,this.setElement=n.setElement,this.remove=n.remove,this.init=function(){return n.init(),n.addEventListener(o.END_EVENT,i.bind(this)),t.classList.contains(a.OPEN_DEFAULT)?this.expand():this.collapse(),this},this.toggleExpandable=function(){return t.classList.contains(a.COLLAPSED)?this.expand():this.collapse(),this},this.collapse=function(){return this.dispatchEvent("collapseBegin",{target:this}),e=t.scrollHeight,t.style.maxHeight="0",n.applyClass(a.COLLAPSED),this},this.expand=function(){return this.dispatchEvent("expandBegin",{target:this}),(!e||t.scrollHeight>e)&&(e=t.scrollHeight),t.style.maxHeight=e+"px",n.applyClass(a.EXPANDED),this},this}l.CLASSES=a;var c=l,h=n(928),u=new s.Z;function d(){this.activeAccordion&&(this.transition.toggleExpandable(),this.toggleTargetState(this.ui.target),this.activeAccordion=!1)}function p(){this.ui.content.classList.remove("u-hidden")}function f(){this.ui.content.classList.add("u-hidden")}var m=i.Z.extend({ui:{base:".o-expandable",target:".o-expandable_target",content:".o-expandable_content",header:".o-expandable_header",label:".o-expandable_label"},classes:{targetExpanded:"o-expandable_target__expanded",targetCollapsed:"o-expandable_target__collapsed",group:"o-expandable-group",groupAccordion:"o-expandable-group__accordion"},events:{"click .o-expandable_target":"expandableClickHandler"},transition:null,isAccordionGroup:!1,activeAccordion:!1,initialize:function(){var t=new c(this.ui.content);this.transition=t.init(),this.transition.addEventListener("expandBegin",p.bind(this)),this.transition.addEventListener("collapseEnd",f.bind(this)),this.ui.content.classList.contains(c.CLASSES.EXPANDED)?this.ui.target.classList.add(this.classes.targetExpanded):(this.ui.target.classList.add(this.classes.targetCollapsed),this.ui.content.classList.add("u-hidden"));var e=(0,h.o)(this.ui.target,"."+this.classes.group);this.isAccordionGroup=null!==e&&e.classList.contains(this.classes.groupAccordion),this.isAccordionGroup&&u.addEventListener("accordionActivated",d.bind(this))},expandableClickHandler:function(){this.transition.toggleExpandable(),this.toggleTargetState(this.ui.target),this.isAccordionGroup&&(this.activeAccordion?this.activeAccordion=!1:(u.dispatchEvent("accordionActivated",{target:this}),this.activeAccordion=!0))},toggleTargetState:function(t){t.classList.contains(this.classes.targetExpanded)?(this.ui.target.classList.add(this.classes.targetCollapsed),this.ui.target.classList.remove(this.classes.targetExpanded)):(this.ui.target.classList.add(this.classes.targetExpanded),this.ui.target.classList.remove(this.classes.targetCollapsed))},getLabelText:function(){return this.ui.label.textContent.trim()}})},681:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return h}});var i=n(186),s=n(928);var r,o={ui:{base:".o-table__row-links"},events:{"click tbody tr":"onRowLinkClick"},onRowLinkClick:function(t){var e=t.target;if(e&&"A"===e.tagName)return;var n=(e=(0,s.o)(t.target,"tr")).querySelector("a");n&&(window.location=n.getAttribute("href"))}},a=n(752);var l={ui:{base:".o-table__sortable",tableBody:"tbody",sortButton:".sorted-up, .sorted-down"},classes:{sortDown:"sorted-down",sortUp:"sorted-up"},events:{"click .sortable":"onSortableClick"},initialize:function(){this.sortClass=r,this.sortColumnIndex=r,this.sortDirection=r,this.tableData=[],this.bindProperties(),this.ui.sortButton&&(this.sortColumnIndex=this.getColumnIndex(),this.sortDirection=a.mQ.UP,this.ui.sortButton.classList.contains(this.classes.sortDown)&&(this.sortDirection=a.mQ.DOWN),this.updateTable())},bindProperties:function(){var t;Object.defineProperty(this,"sortDirection",{configurable:!0,get:function(){return t},set:function(e){e===a.mQ.UP?this.sortClass=this.classes.sortUp:e===a.mQ.DOWN&&(this.sortClass=this.classes.sortDown),t=e}})},getColumnIndex:function(t){return(0,s.o)(t||this.ui.sortButton,"td, th").cellIndex},updateTable:function(){return this.updateTableData()&&this.updateTableDom()},updateTableData:function(t){var e,n=this.ui.tableBody.querySelectorAll("tr");this.tableData=[],t=t||this.sortColumnIndex;for(var i=0,s=n.length;ii&&(r=s),r}},onSortableClick:function(t){this.ui.sortButton&&this.ui.sortButton.classList.remove(this.sortClass);this.ui.sortButton===t.target?this.sortDirection=~this.sortDirection:(this.ui.sortButton=t.target,this.sortColumnIndex=this.getColumnIndex(),this.sortDirection=a.mQ.UP);return this.ui.sortButton.classList.add(this.sortClass),this.updateTable(),this}},c=i.Z.extend({ui:{base:".o-table"},modifiers:[l,o]});c.constants.DIRECTIONS=a.mQ;var h=c}},i={};function s(t){if(i[t])return i[t].exports;var e=i[t]={exports:{}};return n[t](e,e.exports,s),e.exports}s.d=function(t,e){for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t=s(270),e=s(681),t.init(),e.init()}(); \ No newline at end of file +!function(){var t,e,n={852:function(t){"use strict";function e(t){this.listenerMap=[{},{}],t&&this.root(t),this.handle=e.prototype.handle.bind(this),this._removedListeners=[]}t.exports=e,e.prototype.root=function(t){var e,n=this.listenerMap;if(this.rootElement){for(e in n[1])n[1].hasOwnProperty(e)&&this.rootElement.removeEventListener(e,this.handle,!0);for(e in n[0])n[0].hasOwnProperty(e)&&this.rootElement.removeEventListener(e,this.handle,!1)}if(!t||!t.addEventListener)return this.rootElement&&delete this.rootElement,this;for(e in this.rootElement=t,n[1])n[1].hasOwnProperty(e)&&this.rootElement.addEventListener(e,this.handle,!0);for(e in n[0])n[0].hasOwnProperty(e)&&this.rootElement.addEventListener(e,this.handle,!1);return this},e.prototype.captureForType=function(t){return-1!==["blur","error","focus","load","resize","scroll"].indexOf(t)},e.prototype.on=function(t,e,o,a){var l,c,h,u;if(!t)throw new TypeError("Invalid event type: "+t);if("function"==typeof e&&(a=o,o=e,e=null),void 0===a&&(a=this.captureForType(t)),"function"!=typeof o)throw new TypeError("Handler must be a type of Function");return l=this.rootElement,(c=this.listenerMap[a?1:0])[t]||(l&&l.addEventListener(t,this.handle,a),c[t]=[]),e?/^[a-z]+$/i.test(e)?(u=e,h=i):/^#[a-z0-9\-_]+$/i.test(e)?(u=e.slice(1),h=r):(u=e,h=n):(u=null,h=s.bind(this)),c[t].push({selector:e,handler:o,matcher:h,matcherParam:u}),this},e.prototype.off=function(t,e,n,i){var s,r,o,a,l;if("function"==typeof e&&(i=n,n=e,e=null),void 0===i)return this.off(t,e,n,!0),this.off(t,e,n,!1),this;if(o=this.listenerMap[i?1:0],!t){for(l in o)o.hasOwnProperty(l)&&this.off(l,e,n);return this}if(!(a=o[t])||!a.length)return this;for(s=a.length-1;s>=0;s--)r=a[s],e&&e!==r.selector||n&&n!==r.handler||(this._removedListeners.push(r),a.splice(s,1));return a.length||(delete o[t],this.rootElement&&this.rootElement.removeEventListener(t,this.handle,i)),this},e.prototype.handle=function(t){var e,n,i,s,r,o=t.type,a=[],l="ftLabsDelegateIgnore";if(!0!==t[l]){switch(3===(r=t.target).nodeType&&(r=r.parentNode),r.correspondingUseElement&&(r=r.correspondingUseElement),i=this.rootElement,t.eventPhase||(t.target!==t.currentTarget?3:2)){case 1:a=this.listenerMap[1][o];break;case 2:this.listenerMap[0]&&this.listenerMap[0][o]&&(a=a.concat(this.listenerMap[0][o])),this.listenerMap[1]&&this.listenerMap[1][o]&&(a=a.concat(this.listenerMap[1][o]));break;case 3:a=this.listenerMap[0][o]}var c,h=[];for(n=a.length;r&&n;){for(e=0;e-1&&r.hasAttribute("disabled")?h=[]:s.matcher.call(r,s.matcherParam,r)&&h.push([t,r,s]);if(r===i)break;if(n=a.length,(r=r.parentElement||r.parentNode)instanceof HTMLDocument)break}for(e=0;e-1)&&!1===this.fire.apply(this,h[e])){h[e][0][l]=!0,h[e][0].preventDefault(),c=!1;break}return c}},e.prototype.fire=function(t,e,n){return n.handler.call(e,t,e)};var n=function(t){if(t){var e=t.prototype;return e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector}}(Element);function i(t,e){return t.toLowerCase()===e.tagName.toLowerCase()}function s(t,e){return this.rootElement===window?e===document||e===document.documentElement||e===window:this.rootElement===e}function r(t,e){return t===e.id}e.prototype.destroy=function(){this.off(),this.root()}},161:function(t,e,n){"use strict";var i=n(852);t.exports=function(t){return new i(t)},t.exports.Delegate=i},186:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var i=n(752);function s(t,e){if(!t)return!1;var n=t.getAttribute(i.kQ);return!!n&&(n=n.split(" ")).indexOf(e)>-1}var r=i.uJ+"atomic_init";function o(t){return!s(t,r)&&(function(t,e){if(-1!==e.indexOf(" ")){var n=i.kQ+" values cannot contain spaces!";throw new Error(n)}var s=t.getAttribute(i.kQ);null!==s&&(e=s+" "+e),t.setAttribute(i.kQ,e)}(t,r),!0)}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}function l(t){t=t||{};for(var e=1,n=arguments.length;e1?n[t]=e:n[t]=null);return this.ui=n,n},destroy:function(){return this.element&&(this.element.parentNode.removeChild(this.element),this.element.view&&delete this.element.view,delete this.element),this.undelegateEvents(),this.dispatchEvent("component:destroyed"),!0},setElementAttributes:function(t){var e;for(e in t)t.hasOwnProperty(e)&&this.element.setAttribute(e,t[e])},delegateEvents:function(t){var e,n,i,s=/^(\S+)\s*(.*)$/;if(!(t=t||(t=this.events)))return this;for(e in this.undelegateEvents(),this._delegate=new u(this.element),t)({}).hasOwnProperty.call(t,e)&&(n=t[e],h.Z.isFunction(this[n])&&(n=this[n]),n&&(i=e.match(s),this.delegate(i[1],i[2],n.bind(this))));return this.dispatchEvent("component:bound"),this},delegate:function(t,e,n){return this._delegate.on(t,e,n),this},undelegateEvents:function(){return this._delegate&&this._delegate.destroy(),this.element.removeAttribute("data-js-hook"),this},uniqueId:function(t){return t+"_"+Math.random().toString(36).substr(2,9)}}),d.init=function(t){return function(t,e,n){for(var i,o,a=(n||document).querySelectorAll(t),l=[],c=0,h=a.length;ce&&(t.style.maxHeight=t.scrollHeight+"px")):t.classList.contains(a.COLLAPSED)&&this.dispatchEvent("collapseEnd",{target:this})}var r=new s.Z;return this.addEventListener=r.addEventListener,this.dispatchEvent=r.dispatchEvent,this.removeEventListener=r.removeEventListener,this.animateOff=n.animateOff,this.animateOn=n.animateOn,this.halt=n.halt,this.isAnimated=n.isAnimated,this.setElement=n.setElement,this.remove=n.remove,this.init=function(){return n.init(),n.addEventListener(o.END_EVENT,i.bind(this)),t.classList.contains(a.OPEN_DEFAULT)?this.expand():this.collapse(),this},this.toggleExpandable=function(){return t.classList.contains(a.COLLAPSED)?this.expand():this.collapse(),this},this.collapse=function(){return this.dispatchEvent("collapseBegin",{target:this}),e=t.scrollHeight,t.style.maxHeight="0",n.applyClass(a.COLLAPSED),this},this.expand=function(){return this.dispatchEvent("expandBegin",{target:this}),(!e||t.scrollHeight>e)&&(e=t.scrollHeight),t.style.maxHeight=e+"px",n.applyClass(a.EXPANDED),this},this}l.CLASSES=a;var c=l,h=n(928),u=new s.Z;function d(){this.activeAccordion&&(this.transition.toggleExpandable(),this.toggleTargetState(this.ui.target),this.activeAccordion=!1)}function p(){this.ui.content.classList.remove("u-hidden")}function f(){this.ui.content.classList.add("u-hidden")}var m=i.Z.extend({ui:{base:".o-expandable",target:".o-expandable_target",content:".o-expandable_content",header:".o-expandable_header",label:".o-expandable_label"},classes:{targetExpanded:"o-expandable_target__expanded",targetCollapsed:"o-expandable_target__collapsed",group:"o-expandable-group",groupAccordion:"o-expandable-group__accordion"},events:{"click .o-expandable_target":"expandableClickHandler"},transition:null,isAccordionGroup:!1,activeAccordion:!1,initialize:function(){var t=new c(this.ui.content);this.transition=t.init(),this.transition.addEventListener("expandBegin",p.bind(this)),this.transition.addEventListener("collapseEnd",f.bind(this)),this.ui.content.classList.contains(c.CLASSES.EXPANDED)?this.ui.target.classList.add(this.classes.targetExpanded):(this.ui.target.classList.add(this.classes.targetCollapsed),this.ui.content.classList.add("u-hidden"));var e=(0,h.o)(this.ui.target,"."+this.classes.group);this.isAccordionGroup=null!==e&&e.classList.contains(this.classes.groupAccordion),this.isAccordionGroup&&u.addEventListener("accordionActivated",d.bind(this))},expandableClickHandler:function(){this.transition.toggleExpandable(),this.toggleTargetState(this.ui.target),this.isAccordionGroup&&(this.activeAccordion?this.activeAccordion=!1:(u.dispatchEvent("accordionActivated",{target:this}),this.activeAccordion=!0))},toggleTargetState:function(t){t.classList.contains(this.classes.targetExpanded)?(this.ui.target.classList.add(this.classes.targetCollapsed),this.ui.target.classList.remove(this.classes.targetExpanded)):(this.ui.target.classList.add(this.classes.targetExpanded),this.ui.target.classList.remove(this.classes.targetCollapsed))},getLabelText:function(){return this.ui.label.textContent.trim()}})},681:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return h}});var i=n(186),s=n(928);var r,o={ui:{base:".o-table__row-links"},events:{"click tbody tr":"onRowLinkClick"},onRowLinkClick:function(t){var e=t.target;if(e&&"A"===e.tagName)return;var n=(e=(0,s.o)(t.target,"tr")).querySelector("a");n&&(window.location=n.getAttribute("href"))}},a=n(752);var l={ui:{base:".o-table__sortable",tableBody:"tbody",sortButton:".sorted-up, .sorted-down"},classes:{sortDown:"sorted-down",sortUp:"sorted-up"},events:{"click .sortable":"onSortableClick"},initialize:function(){this.sortClass=r,this.sortColumnIndex=r,this.sortDirection=r,this.tableData=[],this.bindProperties(),this.ui.sortButton&&(this.sortColumnIndex=this.getColumnIndex(),this.sortDirection=a.mQ.UP,this.ui.sortButton.classList.contains(this.classes.sortDown)&&(this.sortDirection=a.mQ.DOWN),this.updateTable())},bindProperties:function(){var t;Object.defineProperty(this,"sortDirection",{configurable:!0,get:function(){return t},set:function(e){e===a.mQ.UP?this.sortClass=this.classes.sortUp:e===a.mQ.DOWN&&(this.sortClass=this.classes.sortDown),t=e}})},getColumnIndex:function(t){return(0,s.o)(t||this.ui.sortButton,"td, th").cellIndex},updateTable:function(){return this.updateTableData()&&this.updateTableDom()},updateTableData:function(t){var e,n=this.ui.tableBody.querySelectorAll("tr");this.tableData=[],t=t||this.sortColumnIndex;for(var i=0,s=n.length;ii&&(r=s),r}},onSortableClick:function(t){this.ui.sortButton&&this.ui.sortButton.classList.remove(this.sortClass);this.ui.sortButton===t.target?this.sortDirection=~this.sortDirection:(this.ui.sortButton=t.target,this.sortColumnIndex=this.getColumnIndex(),this.sortDirection=a.mQ.UP);return this.ui.sortButton.classList.add(this.sortClass),this.updateTable(),this}},c=i.Z.extend({ui:{base:".o-table"},modifiers:[l,o]});c.constants.DIRECTIONS=a.mQ;var h=c}},i={};function s(t){if(i[t])return i[t].exports;var e=i[t]={exports:{}};return n[t](e,e.exports,s),e.exports}s.d=function(t,e){for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t=s(270),e=s(681),t.init(),e.init()}(); \ No newline at end of file diff --git a/packages/cfpb-forms/src/organisms/Multiselect.js b/packages/cfpb-forms/src/organisms/Multiselect.js index 996490e800..8ff0de67ae 100644 --- a/packages/cfpb-forms/src/organisms/Multiselect.js +++ b/packages/cfpb-forms/src/organisms/Multiselect.js @@ -385,6 +385,16 @@ function Multiselect( element ) { // eslint-disable-line max-statements */ function _bindEvents() { + _headerDom.addEventListener( 'mousemove', function( event ) { + const target = event.target; + // Check if we're over the down-arrow on the right side of the input. + if ( event.layerX > target.offsetWidth - 35 ) { + target.style.cursor = 'pointer'; + } else { + target.style.cursor = 'auto'; + } + } ); + _searchDom.addEventListener( 'input', function() { _evaluate( this.value ); } );