@zendeskgarden/react-textfields
Advanced tools
Comparing version 3.8.9 to 3.8.10
@@ -6,2 +6,10 @@ # Change Log | ||
## [3.8.10](https://github.com/zendeskgarden/react-components/compare/@zendeskgarden/react-textfields@3.8.9...@zendeskgarden/react-textfields@3.8.10) (2019-06-04) | ||
**Note:** Version bump only for package @zendeskgarden/react-textfields | ||
## [3.8.9](https://github.com/zendeskgarden/react-components/compare/@zendeskgarden/react-textfields@3.8.8...@zendeskgarden/react-textfields@3.8.9) (2019-05-31) | ||
@@ -8,0 +16,0 @@ |
@@ -207,3 +207,3 @@ /*! | ||
'data-garden-id': COMPONENT_ID, | ||
'data-garden-version': "3.8.9", | ||
'data-garden-version': "3.8.10", | ||
'aria-invalid': function ariaInvalid(props) { | ||
@@ -416,3 +416,3 @@ return isInvalid(props.validation); | ||
'data-garden-id': TextGroup_COMPONENT_ID, | ||
'data-garden-version': "3.8.9", | ||
'data-garden-version': "3.8.10", | ||
className: function className(props) { | ||
@@ -456,3 +456,3 @@ var _classNames; | ||
'data-garden-id': Label_COMPONENT_ID, | ||
'data-garden-version': "3.8.9", | ||
'data-garden-version': "3.8.10", | ||
className: function className(props) { | ||
@@ -509,3 +509,3 @@ var _classNames; | ||
'data-garden-id': Textarea_COMPONENT_ID, | ||
'data-garden-version': "3.8.9", | ||
'data-garden-version': "3.8.10", | ||
className: function className(props) { | ||
@@ -563,3 +563,3 @@ var _classNames; | ||
'data-garden-id': Hint_COMPONENT_ID, | ||
'data-garden-version': "3.8.9", | ||
'data-garden-version': "3.8.10", | ||
className: function className(props) { | ||
@@ -733,3 +733,3 @@ var _classNames; | ||
'data-garden-id': MediaFigure_COMPONENT_ID, | ||
'data-garden-version': "3.8.9", | ||
'data-garden-version': "3.8.10", | ||
className: text_default.a['c-txt__input--media__figure'] | ||
@@ -770,3 +770,3 @@ }).withConfig({ | ||
'data-garden-id': MediaInput_COMPONENT_ID, | ||
'data-garden-version': "3.8.9", | ||
'data-garden-version': "3.8.10", | ||
className: text_default.a['c-txt__input--media__body'] | ||
@@ -820,3 +820,3 @@ }).withConfig({ | ||
'data-garden-id': Message_COMPONENT_ID, | ||
'data-garden-version': "3.8.9", | ||
'data-garden-version': "3.8.10", | ||
role: 'alert', | ||
@@ -873,4 +873,6 @@ className: function className(props) { | ||
if (false) {} | ||
/***/ }) | ||
/******/ ]))); | ||
//# sourceMappingURL=index.js.map |
@@ -44,3 +44,3 @@ /*! | ||
*/ | ||
!function(e,t){for(var n in t)e[n]=t[n]}(t,(r={},i.m=n=[function(e,t,n){"use strict";n.r(t);function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length?arguments[1]:void 0;if(!e)return!1;var n,r=e.type,o=void 0===r?{}:r,i=o.target,a=o.hasType;return a?n=a()===t:i&&i.hasType&&(n=i.hasType()===t),n}function o(e,t){if(t)throw new Error(t);throw new Error('"'.concat(e,'" is required'))}n.d(t,"hasType",function(){return r}),n.d(t,"requiredParam",function(){return o})}],i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===o(t)&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)))},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=r,e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=function(e){var t=(0,u.default)(e),n=(0,a.default)(t),r=t&&t.documentElement,o={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,i.default)(r,e))return o;void 0!==e.getBoundingClientRect&&(o=e.getBoundingClientRect());return o={top:o.top+(n.pageYOffset||r.scrollTop)-(r.clientTop||0),left:o.left+(n.pageXOffset||r.scrollLeft)-(r.clientLeft||0),width:(null==o.width?e.offsetWidth:o.width)||0,height:(null==o.height?e.offsetHeight:o.height)||0}};var i=r(n(15)),a=r(n(9)),u=r(n(16));e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=function(e,t){var n=(0,i.default)(e);return n?n.innerHeight:t?e.clientHeight:(0,o.default)(e).height};var o=r(n(11)),i=r(n(9));e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=function(e){return(0,o.default)(e.replace(i,"ms-"))};var o=r(n(19)),i=/^-ms-/;e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=function(e,t){var n,r,o,i,a,u,c,l=(0,d.default)(e),s={top:0,left:0};if(!e)return;n=t||(0,y.default)(e),(0,m.default)(n),r=(0,b.default)(n),u=(0,p.default)(n,!0),(i=(0,m.default)(n))||(s=(0,d.default)(n));l={top:l.top-s.top,left:l.left-s.left,height:l.height,width:l.width},a=l.height,o=l.top+(i?0:r),c=o+a,r=o<r?o:r+u<c?c-u:r;var f=(0,_.default)(function(){return(0,b.default)(n,r)});return function(){return _.default.cancel(f)}};var d=r(n(11)),p=r(n(12)),y=r(n(17)),b=r(n(26)),_=r(n(27)),m=r(n(9));e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=void 0;var o=r(n(10)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):i(e,t)}:i;function i(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=o,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=function(e){var t=(0,a.default)(e,"position"),n="absolute"===t,r=e.ownerDocument;if("fixed"===t)return r||document;for(;(e=e.parentNode)&&9!==e.nodeType;){var o=n&&"static"===(0,a.default)(e,"position"),i=(0,a.default)(e,"overflow")+(0,a.default)(e,"overflow-y")+(0,a.default)(e,"overflow-x");if(!o&&(/(auto|scroll)/.test(i)&&(0,u.default)(e)<e.scrollHeight))return e}return document};var a=r(n(18)),u=r(n(12));e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=function(n,e,t){var r="",o="",i=e;if("string"==typeof e){if(void 0===t)return n.style[(0,a.default)(e)]||(0,c.default)(n).getPropertyValue((0,u.default)(e));(i={})[e]=t}Object.keys(i).forEach(function(e){var t=i[e];t||0===t?(0,f.default)(e)?o+=e+"("+t+") ":r+=(0,u.default)(e)+": "+t+";":(0,l.default)(n,(0,u.default)(e))}),o&&(r+=s.transform+": "+o+";");n.style.cssText+=";"+r};var a=r(n(13)),u=r(n(20)),c=r(n(22)),l=r(n(23)),s=n(24),f=r(n(25));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,function(e,t){return t.toUpperCase()})};var r=/-(.)/g;e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=function(e){return(0,o.default)(e).replace(i,"-ms-")};var o=r(n(21)),i=/^ms-/;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,"-$1").toLowerCase()};var r=/([A-Z])/g;e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=function(a){if(!a)throw new TypeError("No Element passed to `getComputedStyle()`");var e=a.ownerDocument;return"defaultView"in e?e.defaultView.opener?a.ownerDocument.defaultView.getComputedStyle(a,null):window.getComputedStyle(a,null):{getPropertyValue:function(e){var t=a.style;"float"==(e=(0,u.default)(e))&&(e="styleFloat");var n=a.currentStyle[e]||null;if(null==n&&t&&t[e]&&(n=t[e]),l.test(n)&&!c.test(e)){var r=t.left,o=a.runtimeStyle,i=o&&o.left;i&&(o.left=a.currentStyle.left),t.left="fontSize"===e?"1em":n,n=t.pixelLeft+"px",t.left=r,i&&(o.left=i)}return n}}};var u=r(n(13)),c=/^(top|right|bottom|left)$/,l=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var o,i,a,u,c,l,s,f,d,p,y,b=r(n(10)),_="transform";if(t.transform=_,t.animationEnd=a,t.transitionEnd=i,t.transitionDelay=s,t.transitionTiming=l,t.transitionDuration=c,t.transitionProperty=u,t.animationDelay=y,t.animationTiming=p,t.animationDuration=d,t.animationName=f,b.default){var m=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},o=Object.keys(r),i="",a=0;a<o.length;a++){var u=o[a];if(u+"TransitionProperty"in n){i="-"+u.toLowerCase(),e=r[u]("TransitionEnd"),t=r[u]("AnimationEnd");break}}!e&&"transitionProperty"in n&&(e="transitionend");!t&&"animationName"in n&&(t="animationend");return n=null,{animationEnd:t,transitionEnd:e,prefix:i}}();o=m.prefix,t.transitionEnd=i=m.transitionEnd,t.animationEnd=a=m.animationEnd,t.transform=_=o+"-"+_,t.transitionProperty=u=o+"-transition-property",t.transitionDuration=c=o+"-transition-duration",t.transitionDelay=s=o+"-transition-delay",t.transitionTiming=l=o+"-transition-timing-function",t.animationName=f=o+"-animation-name",t.animationDuration=d=o+"-animation-duration",t.animationTiming=p=o+"-animation-delay",t.animationDelay=y=o+"-animation-timing-function"}var v={transform:_,end:i,property:u,timing:l,delay:s,duration:c};t.default=v},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return!(!e||!r.test(e))};var r=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=function(e,t){var n=(0,o.default)(e);if(void 0===t)return n?"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop:e.scrollTop;n?n.scrollTo("pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft,t):e.scrollTop=t};var o=r(n(9));e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=void 0;function o(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"}var i,a=r(n(10)),u="clearTimeout",c=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-l)),r=setTimeout(e,n);return l=t,r};a.default&&["","webkit","moz","o","ms"].some(function(e){var t=o(e,"request");if(t in window)return u=o(e,"cancel"),c=function(e){return window[t](e)}});var l=(new Date).getTime();(i=function(e){return c(e)}).cancel=function(e){window[u]&&"function"==typeof window[u]&&window[u](e)};var s=i;t.default=s,e.exports=t.default},function(e,t,n){"use strict";n.r(t);var u=n(6),c=n.n(u),l=n(7),r=n(0),o=n.n(r),i=n(3),a=n.n(i),s=n(5),f=n.n(s),d=n(2),p=n(1),y=n.n(p);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _="textfields.input",m="success",v="warning",g="error",h="none",x=a.a.input.attrs({"data-garden-id":_,"data-garden-version":"3.8.9","aria-invalid":function(e){return function(e){return e===v||e===g}(e.validation)},className:function(e){var t;return f()(y.a["c-txt__input"],(b(t={},y.a["c-txt__input--sm"],e.small),b(t,y.a["c-txt__input--tag"],e.tagLayout),b(t,y.a["c-txt__input--select"],e.select),b(t,y.a["c-txt__input--media"],e.mediaLayout),b(t,y.a["c-txt__input--bare"],e.bare),b(t,y.a["c-txt__input--focus-inset"],e.focusInset),b(t,y.a["is-disabled"],e.disabled),b(t,y.a["is-focused"],e.focused),b(t,y.a["is-hovered"],e.hovered),b(t,y.a["is-open"],e.open),b(t,y.a["c-txt__input--success"],e.validation===m),b(t,y.a["c-txt__input--warning"],e.validation===v),b(t,y.a["c-txt__input--error"],e.validation===g),b(t,y.a["is-rtl"],Object(d.isRtl)(e)),t))}}).withConfig({displayName:"Input",componentId:"sc-4gf5js-0"})(["",";"],function(e){return Object(d.retrieveTheme)(_,e)});x.propTypes={tagLayout:o.a.bool,mediaLayout:o.a.bool,small:o.a.bool,select:o.a.bool,bare:o.a.bool,disabled:o.a.bool,focused:o.a.bool,focusInset:o.a.bool,hovered:o.a.bool,open:o.a.bool,validation:o.a.oneOf([m,v,g,h])},x.hasType=function(){return x};var O=x;function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function j(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function I(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var C,E,D,k=O.withComponent("div"),F="success",N="warning",A="error",K="none",L=function(e){function i(){var e,t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=I(this,(e=T(i)).call.apply(e,[this].concat(r)))).state={focused:!1},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(i,l["ControlledComponent"]),function(e,t,n){t&&P(e.prototype,t),n&&P(e,n)}(i,[{key:"render",value:function(){var e=this,t=this.props,n=t.onFocus,r=t.onBlur,o=t.children,i=t.inputRef,a=j(t,["onFocus","onBlur","children","inputRef"]),u=this.getControlledState().focused;return c.a.createElement(k,S({innerRef:i},a,{onFocus:Object(l.composeEventHandlers)(n,function(){e.setControlledState({focused:!0})}),onBlur:Object(l.composeEventHandlers)(r,function(){e.setControlledState({focused:!1})}),focused:u,"aria-invalid":null}),o)}}]),i}();C=L,E="propTypes",D={inputRef:o.a.func,tagLayout:o.a.bool,mediaLayout:o.a.bool,small:o.a.bool,select:o.a.bool,bare:o.a.bool,disabled:o.a.bool,focused:o.a.bool,focusInset:o.a.bool,hovered:o.a.bool,open:o.a.bool,validation:o.a.oneOf([F,N,A,K])},E in C?Object.defineProperty(C,E,{value:D,enumerable:!0,configurable:!0,writable:!0}):C[E]=D;var R=n(8);function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B="textfields.text_group",U=a.a.div.attrs({"data-garden-id":B,"data-garden-version":"3.8.9",className:function(e){var t;return f()(y.a["c-txt"],(H(t={},y.a["c-txt--inline"],e.inline),H(t,y.a["is-rtl"],Object(d.isRtl)(e)),t))}}).withConfig({displayName:"TextGroup",componentId:"sc-127gh0a-0"})(["",";"],function(e){return Object(d.retrieveTheme)(B,e)});U.propTypes={inline:o.a.bool};var z=U;function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G="textfields.label",V=a.a.label.attrs({"data-garden-id":G,"data-garden-version":"3.8.9",className:function(e){var t;return f()(y.a["c-txt__label"],(q(t={},y.a["c-txt__label--regular"],e.regular),q(t,y.a["c-txt__label--sm"],e.small),q(t,y.a["is-rtl"],Object(d.isRtl)(e)),t))}}).withConfig({displayName:"Label",componentId:"sc-129v0bx-0"})(["",";"],function(e){return Object(d.retrieveTheme)(G,e)});V.propTypes={regular:o.a.bool,small:o.a.bool},V.hasType=function(){return V};var Y=V;function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z="textfields.textarea",X="success",$="warning",Q="error",J="none",ee=a()(O.withComponent("textarea")).attrs({"data-garden-id":Z,"data-garden-version":"3.8.9",className:function(e){var t;return f()(y.a["c-txt__input--area"],(W(t={},y.a["is-resizable"],e.resizable),W(t,y.a["is-rtl"],Object(d.isRtl)(e)),t))}}).withConfig({displayName:"Textarea",componentId:"sc-1alsvvb-0"})(["",";"],function(e){return Object(d.retrieveTheme)(Z,e)});ee.propTypes={small:o.a.bool,bare:o.a.bool,disabled:o.a.bool,focused:o.a.bool,focusInset:o.a.bool,hovered:o.a.bool,resizable:o.a.bool,validation:o.a.oneOf([X,$,Q,J])},ee.hasType=function(){return ee};var te=ee;function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var re="textfields.hint",oe=a.a.div.attrs({"data-garden-id":re,"data-garden-version":"3.8.9",className:function(e){var t;return f()(y.a["c-txt__hint"],(ne(t={},y.a["c-txt__hint--sm"],e.small),ne(t,y.a["is-rtl"],Object(d.isRtl)(e)),t))}}).withConfig({displayName:"Hint",componentId:"sc-1pcaoos-0"})(["",";"],function(e){return Object(d.retrieveTheme)(re,e)});oe.propTypes={small:o.a.bool},oe.hasType=function(){return oe};var ie=oe;function ae(e){return(ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ue(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function le(e,t){return!t||"object"!==ae(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fe(e,t){return(fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var de,pe,ye,be=function(e){function i(){var e,t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=le(this,(e=se(i)).call.apply(e,[this].concat(r)))).state={id:l.IdManager.generateId("garden-text-field")},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fe(e,t)}(i,l["ControlledComponent"]),function(e,t,n){t&&ce(e.prototype,t),n&&ce(e,n)}(i,[{key:"render",value:function(){var e=this.getControlledState().id,t=this.props,o=t.children,i=ue(t,["children"]),a=!1;return u.Children.forEach(o,function(e){Object(R.hasType)(e,ie)&&(a=!0)}),c.a.createElement(l.FieldContainer,{id:e},function(e){var t=e.getLabelProps,n=e.getInputProps,r=e.getHintProps;return c.a.createElement(z,i,u.Children.map(o,function(e){return Object(u.isValidElement)(e)?Object(R.hasType)(e,Y)?Object(u.cloneElement)(e,t(e.props)):Object(R.hasType)(e,O)||Object(R.hasType)(e,te)?Object(u.cloneElement)(e,n(e.props,{isDescribed:a})):Object(R.hasType)(e,ie)?Object(u.cloneElement)(e,r(e.props)):e:e}))})}}]),i}();de=be,pe="propTypes",ye={id:o.a.string,inline:o.a.bool,children:o.a.node},pe in de?Object.defineProperty(de,pe,{value:ye,enumerable:!0,configurable:!0,writable:!0}):de[pe]=ye;var _e="textfields.media_figure",me=a.a.div.attrs({"data-garden-id":_e,"data-garden-version":"3.8.9",className:y.a["c-txt__input--media__figure"]}).withConfig({displayName:"MediaFigure",componentId:"sc-1g79mon-0"})(["",";"],function(e){return Object(d.retrieveTheme)(_e,e)}),ve="textfields.media_input",ge="success",he="warning",xe="error",Oe="none",we=a()(O).attrs({"data-garden-id":ve,"data-garden-version":"3.8.9",className:y.a["c-txt__input--media__body"]}).withConfig({displayName:"MediaInput",componentId:"pblls9-0"})(["",";"],function(e){return Object(d.retrieveTheme)(ve,e)});we.propTypes={small:o.a.bool,bare:o.a.bool,disabled:o.a.bool,focused:o.a.bool,hovered:o.a.bool,validation:o.a.oneOf([ge,he,xe,Oe])},we.defaultProps={bare:!0};var Se=we;function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pe="textfields.message",Ie="success",Te="warning",Me="error",Ce="none",Ee=a.a.div.attrs({"data-garden-id":Pe,"data-garden-version":"3.8.9",role:"alert",className:function(e){var t;return f()(y.a["c-txt__message"],(je(t={},y.a["c-txt__message--success"],e.validation===Ie),je(t,y.a["c-txt__message--warning"],e.validation===Te),je(t,y.a["c-txt__message--error"],e.validation===Me),je(t,y.a["is-rtl"],Object(d.isRtl)(e)),t))}}).withConfig({displayName:"Message",componentId:"zhe3tc-0"})(["",";"],function(e){return Object(d.retrieveTheme)(Pe,e)});Ee.propTypes={validation:o.a.oneOf([Ie,Te,Me,Ce])},Ee.hasType=function(){return Ee};var De=Ee;n.d(t,"FauxInput",function(){return L}),n.d(t,"TextField",function(){return be}),n.d(t,"Hint",function(){return ie}),n.d(t,"Input",function(){return O}),n.d(t,"Label",function(){return Y}),n.d(t,"MediaFigure",function(){return me}),n.d(t,"MediaInput",function(){return Se}),n.d(t,"Message",function(){return De}),n.d(t,"Textarea",function(){return te}),n.d(t,"TextGroup",function(){return z})}],a.c=c,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)a.d(n,r,function(e){return t[e]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=28);function a(e){if(c[e])return c[e].exports;var t=c[e]={i:e,l:!1,exports:{}};return u[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}var u,c}); | ||
!function(e,t){for(var n in t)e[n]=t[n]}(t,(r={},i.m=n=[function(e,t,n){"use strict";n.r(t);function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length?arguments[1]:void 0;if(!e)return!1;var n,r=e.type,o=void 0===r?{}:r,i=o.target,a=o.hasType;return a?n=a()===t:i&&i.hasType&&(n=i.hasType()===t),n}function o(e,t){if(t)throw new Error(t);throw new Error('"'.concat(e,'" is required'))}n.d(t,"hasType",function(){return r}),n.d(t,"requiredParam",function(){return o})}],i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===o(t)&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)))},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=r,e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=function(e){var t=(0,u.default)(e),n=(0,a.default)(t),r=t&&t.documentElement,o={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,i.default)(r,e))return o;void 0!==e.getBoundingClientRect&&(o=e.getBoundingClientRect());return o={top:o.top+(n.pageYOffset||r.scrollTop)-(r.clientTop||0),left:o.left+(n.pageXOffset||r.scrollLeft)-(r.clientLeft||0),width:(null==o.width?e.offsetWidth:o.width)||0,height:(null==o.height?e.offsetHeight:o.height)||0}};var i=r(n(15)),a=r(n(9)),u=r(n(16));e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=function(e,t){var n=(0,i.default)(e);return n?n.innerHeight:t?e.clientHeight:(0,o.default)(e).height};var o=r(n(11)),i=r(n(9));e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=function(e){return(0,o.default)(e.replace(i,"ms-"))};var o=r(n(19)),i=/^-ms-/;e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=function(e,t){var n,r,o,i,a,u,c,l=(0,d.default)(e),s={top:0,left:0};if(!e)return;n=t||(0,y.default)(e),(0,m.default)(n),r=(0,b.default)(n),u=(0,p.default)(n,!0),(i=(0,m.default)(n))||(s=(0,d.default)(n));l={top:l.top-s.top,left:l.left-s.left,height:l.height,width:l.width},a=l.height,o=l.top+(i?0:r),c=o+a,r=o<r?o:r+u<c?c-u:r;var f=(0,_.default)(function(){return(0,b.default)(n,r)});return function(){return _.default.cancel(f)}};var d=r(n(11)),p=r(n(12)),y=r(n(17)),b=r(n(26)),_=r(n(27)),m=r(n(9));e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=void 0;var o=r(n(10)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):i(e,t)}:i;function i(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=o,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=function(e){var t=(0,a.default)(e,"position"),n="absolute"===t,r=e.ownerDocument;if("fixed"===t)return r||document;for(;(e=e.parentNode)&&9!==e.nodeType;){var o=n&&"static"===(0,a.default)(e,"position"),i=(0,a.default)(e,"overflow")+(0,a.default)(e,"overflow-y")+(0,a.default)(e,"overflow-x");if(!o&&(/(auto|scroll)/.test(i)&&(0,u.default)(e)<e.scrollHeight))return e}return document};var a=r(n(18)),u=r(n(12));e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=function(n,e,t){var r="",o="",i=e;if("string"==typeof e){if(void 0===t)return n.style[(0,a.default)(e)]||(0,c.default)(n).getPropertyValue((0,u.default)(e));(i={})[e]=t}Object.keys(i).forEach(function(e){var t=i[e];t||0===t?(0,f.default)(e)?o+=e+"("+t+") ":r+=(0,u.default)(e)+": "+t+";":(0,l.default)(n,(0,u.default)(e))}),o&&(r+=s.transform+": "+o+";");n.style.cssText+=";"+r};var a=r(n(13)),u=r(n(20)),c=r(n(22)),l=r(n(23)),s=n(24),f=r(n(25));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,function(e,t){return t.toUpperCase()})};var r=/-(.)/g;e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=function(e){return(0,o.default)(e).replace(i,"-ms-")};var o=r(n(21)),i=/^ms-/;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,"-$1").toLowerCase()};var r=/([A-Z])/g;e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=function(a){if(!a)throw new TypeError("No Element passed to `getComputedStyle()`");var e=a.ownerDocument;return"defaultView"in e?e.defaultView.opener?a.ownerDocument.defaultView.getComputedStyle(a,null):window.getComputedStyle(a,null):{getPropertyValue:function(e){var t=a.style;"float"==(e=(0,u.default)(e))&&(e="styleFloat");var n=a.currentStyle[e]||null;if(null==n&&t&&t[e]&&(n=t[e]),l.test(n)&&!c.test(e)){var r=t.left,o=a.runtimeStyle,i=o&&o.left;i&&(o.left=a.currentStyle.left),t.left="fontSize"===e?"1em":n,n=t.pixelLeft+"px",t.left=r,i&&(o.left=i)}return n}}};var u=r(n(13)),c=/^(top|right|bottom|left)$/,l=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var o,i,a,u,c,l,s,f,d,p,y,b=r(n(10)),_="transform";if(t.transform=_,t.animationEnd=a,t.transitionEnd=i,t.transitionDelay=s,t.transitionTiming=l,t.transitionDuration=c,t.transitionProperty=u,t.animationDelay=y,t.animationTiming=p,t.animationDuration=d,t.animationName=f,b.default){var m=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},o=Object.keys(r),i="",a=0;a<o.length;a++){var u=o[a];if(u+"TransitionProperty"in n){i="-"+u.toLowerCase(),e=r[u]("TransitionEnd"),t=r[u]("AnimationEnd");break}}!e&&"transitionProperty"in n&&(e="transitionend");!t&&"animationName"in n&&(t="animationend");return n=null,{animationEnd:t,transitionEnd:e,prefix:i}}();o=m.prefix,t.transitionEnd=i=m.transitionEnd,t.animationEnd=a=m.animationEnd,t.transform=_=o+"-"+_,t.transitionProperty=u=o+"-transition-property",t.transitionDuration=c=o+"-transition-duration",t.transitionDelay=s=o+"-transition-delay",t.transitionTiming=l=o+"-transition-timing-function",t.animationName=f=o+"-animation-name",t.animationDuration=d=o+"-animation-duration",t.animationTiming=p=o+"-animation-delay",t.animationDelay=y=o+"-animation-timing-function"}var v={transform:_,end:i,property:u,timing:l,delay:s,duration:c};t.default=v},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return!(!e||!r.test(e))};var r=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=function(e,t){var n=(0,o.default)(e);if(void 0===t)return n?"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop:e.scrollTop;n?n.scrollTo("pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft,t):e.scrollTop=t};var o=r(n(9));e.exports=t.default},function(e,t,n){"use strict";var r=n(4);t.__esModule=!0,t.default=void 0;function o(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"}var i,a=r(n(10)),u="clearTimeout",c=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-l)),r=setTimeout(e,n);return l=t,r};a.default&&["","webkit","moz","o","ms"].some(function(e){var t=o(e,"request");if(t in window)return u=o(e,"cancel"),c=function(e){return window[t](e)}});var l=(new Date).getTime();(i=function(e){return c(e)}).cancel=function(e){window[u]&&"function"==typeof window[u]&&window[u](e)};var s=i;t.default=s,e.exports=t.default},function(e,t,n){"use strict";n.r(t);var u=n(6),c=n.n(u),l=n(7),r=n(0),o=n.n(r),i=n(3),a=n.n(i),s=n(5),f=n.n(s),d=n(2),p=n(1),y=n.n(p);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _="textfields.input",m="success",v="warning",g="error",h="none",x=a.a.input.attrs({"data-garden-id":_,"data-garden-version":"3.8.10","aria-invalid":function(e){return function(e){return e===v||e===g}(e.validation)},className:function(e){var t;return f()(y.a["c-txt__input"],(b(t={},y.a["c-txt__input--sm"],e.small),b(t,y.a["c-txt__input--tag"],e.tagLayout),b(t,y.a["c-txt__input--select"],e.select),b(t,y.a["c-txt__input--media"],e.mediaLayout),b(t,y.a["c-txt__input--bare"],e.bare),b(t,y.a["c-txt__input--focus-inset"],e.focusInset),b(t,y.a["is-disabled"],e.disabled),b(t,y.a["is-focused"],e.focused),b(t,y.a["is-hovered"],e.hovered),b(t,y.a["is-open"],e.open),b(t,y.a["c-txt__input--success"],e.validation===m),b(t,y.a["c-txt__input--warning"],e.validation===v),b(t,y.a["c-txt__input--error"],e.validation===g),b(t,y.a["is-rtl"],Object(d.isRtl)(e)),t))}}).withConfig({displayName:"Input",componentId:"sc-4gf5js-0"})(["",";"],function(e){return Object(d.retrieveTheme)(_,e)});x.propTypes={tagLayout:o.a.bool,mediaLayout:o.a.bool,small:o.a.bool,select:o.a.bool,bare:o.a.bool,disabled:o.a.bool,focused:o.a.bool,focusInset:o.a.bool,hovered:o.a.bool,open:o.a.bool,validation:o.a.oneOf([m,v,g,h])},x.hasType=function(){return x};var O=x;function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function j(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function I(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var C,E,D,k=O.withComponent("div"),F="success",N="warning",A="error",K="none",L=function(e){function i(){var e,t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=I(this,(e=T(i)).call.apply(e,[this].concat(r)))).state={focused:!1},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(i,l["ControlledComponent"]),function(e,t,n){t&&P(e.prototype,t),n&&P(e,n)}(i,[{key:"render",value:function(){var e=this,t=this.props,n=t.onFocus,r=t.onBlur,o=t.children,i=t.inputRef,a=j(t,["onFocus","onBlur","children","inputRef"]),u=this.getControlledState().focused;return c.a.createElement(k,S({innerRef:i},a,{onFocus:Object(l.composeEventHandlers)(n,function(){e.setControlledState({focused:!0})}),onBlur:Object(l.composeEventHandlers)(r,function(){e.setControlledState({focused:!1})}),focused:u,"aria-invalid":null}),o)}}]),i}();C=L,E="propTypes",D={inputRef:o.a.func,tagLayout:o.a.bool,mediaLayout:o.a.bool,small:o.a.bool,select:o.a.bool,bare:o.a.bool,disabled:o.a.bool,focused:o.a.bool,focusInset:o.a.bool,hovered:o.a.bool,open:o.a.bool,validation:o.a.oneOf([F,N,A,K])},E in C?Object.defineProperty(C,E,{value:D,enumerable:!0,configurable:!0,writable:!0}):C[E]=D;var R=n(8);function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B="textfields.text_group",U=a.a.div.attrs({"data-garden-id":B,"data-garden-version":"3.8.10",className:function(e){var t;return f()(y.a["c-txt"],(H(t={},y.a["c-txt--inline"],e.inline),H(t,y.a["is-rtl"],Object(d.isRtl)(e)),t))}}).withConfig({displayName:"TextGroup",componentId:"sc-127gh0a-0"})(["",";"],function(e){return Object(d.retrieveTheme)(B,e)});U.propTypes={inline:o.a.bool};var z=U;function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G="textfields.label",V=a.a.label.attrs({"data-garden-id":G,"data-garden-version":"3.8.10",className:function(e){var t;return f()(y.a["c-txt__label"],(q(t={},y.a["c-txt__label--regular"],e.regular),q(t,y.a["c-txt__label--sm"],e.small),q(t,y.a["is-rtl"],Object(d.isRtl)(e)),t))}}).withConfig({displayName:"Label",componentId:"sc-129v0bx-0"})(["",";"],function(e){return Object(d.retrieveTheme)(G,e)});V.propTypes={regular:o.a.bool,small:o.a.bool},V.hasType=function(){return V};var Y=V;function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z="textfields.textarea",X="success",$="warning",Q="error",J="none",ee=a()(O.withComponent("textarea")).attrs({"data-garden-id":Z,"data-garden-version":"3.8.10",className:function(e){var t;return f()(y.a["c-txt__input--area"],(W(t={},y.a["is-resizable"],e.resizable),W(t,y.a["is-rtl"],Object(d.isRtl)(e)),t))}}).withConfig({displayName:"Textarea",componentId:"sc-1alsvvb-0"})(["",";"],function(e){return Object(d.retrieveTheme)(Z,e)});ee.propTypes={small:o.a.bool,bare:o.a.bool,disabled:o.a.bool,focused:o.a.bool,focusInset:o.a.bool,hovered:o.a.bool,resizable:o.a.bool,validation:o.a.oneOf([X,$,Q,J])},ee.hasType=function(){return ee};var te=ee;function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var re="textfields.hint",oe=a.a.div.attrs({"data-garden-id":re,"data-garden-version":"3.8.10",className:function(e){var t;return f()(y.a["c-txt__hint"],(ne(t={},y.a["c-txt__hint--sm"],e.small),ne(t,y.a["is-rtl"],Object(d.isRtl)(e)),t))}}).withConfig({displayName:"Hint",componentId:"sc-1pcaoos-0"})(["",";"],function(e){return Object(d.retrieveTheme)(re,e)});oe.propTypes={small:o.a.bool},oe.hasType=function(){return oe};var ie=oe;function ae(e){return(ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ue(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function le(e,t){return!t||"object"!==ae(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fe(e,t){return(fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var de,pe,ye,be=function(e){function i(){var e,t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=le(this,(e=se(i)).call.apply(e,[this].concat(r)))).state={id:l.IdManager.generateId("garden-text-field")},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fe(e,t)}(i,l["ControlledComponent"]),function(e,t,n){t&&ce(e.prototype,t),n&&ce(e,n)}(i,[{key:"render",value:function(){var e=this.getControlledState().id,t=this.props,o=t.children,i=ue(t,["children"]),a=!1;return u.Children.forEach(o,function(e){Object(R.hasType)(e,ie)&&(a=!0)}),c.a.createElement(l.FieldContainer,{id:e},function(e){var t=e.getLabelProps,n=e.getInputProps,r=e.getHintProps;return c.a.createElement(z,i,u.Children.map(o,function(e){return Object(u.isValidElement)(e)?Object(R.hasType)(e,Y)?Object(u.cloneElement)(e,t(e.props)):Object(R.hasType)(e,O)||Object(R.hasType)(e,te)?Object(u.cloneElement)(e,n(e.props,{isDescribed:a})):Object(R.hasType)(e,ie)?Object(u.cloneElement)(e,r(e.props)):e:e}))})}}]),i}();de=be,pe="propTypes",ye={id:o.a.string,inline:o.a.bool,children:o.a.node},pe in de?Object.defineProperty(de,pe,{value:ye,enumerable:!0,configurable:!0,writable:!0}):de[pe]=ye;var _e="textfields.media_figure",me=a.a.div.attrs({"data-garden-id":_e,"data-garden-version":"3.8.10",className:y.a["c-txt__input--media__figure"]}).withConfig({displayName:"MediaFigure",componentId:"sc-1g79mon-0"})(["",";"],function(e){return Object(d.retrieveTheme)(_e,e)}),ve="textfields.media_input",ge="success",he="warning",xe="error",Oe="none",we=a()(O).attrs({"data-garden-id":ve,"data-garden-version":"3.8.10",className:y.a["c-txt__input--media__body"]}).withConfig({displayName:"MediaInput",componentId:"pblls9-0"})(["",";"],function(e){return Object(d.retrieveTheme)(ve,e)});we.propTypes={small:o.a.bool,bare:o.a.bool,disabled:o.a.bool,focused:o.a.bool,hovered:o.a.bool,validation:o.a.oneOf([ge,he,xe,Oe])},we.defaultProps={bare:!0};var Se=we;function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pe="textfields.message",Ie="success",Te="warning",Me="error",Ce="none",Ee=a.a.div.attrs({"data-garden-id":Pe,"data-garden-version":"3.8.10",role:"alert",className:function(e){var t;return f()(y.a["c-txt__message"],(je(t={},y.a["c-txt__message--success"],e.validation===Ie),je(t,y.a["c-txt__message--warning"],e.validation===Te),je(t,y.a["c-txt__message--error"],e.validation===Me),je(t,y.a["is-rtl"],Object(d.isRtl)(e)),t))}}).withConfig({displayName:"Message",componentId:"zhe3tc-0"})(["",";"],function(e){return Object(d.retrieveTheme)(Pe,e)});Ee.propTypes={validation:o.a.oneOf([Ie,Te,Me,Ce])},Ee.hasType=function(){return Ee};var De=Ee;n.d(t,"FauxInput",function(){return L}),n.d(t,"TextField",function(){return be}),n.d(t,"Hint",function(){return ie}),n.d(t,"Input",function(){return O}),n.d(t,"Label",function(){return Y}),n.d(t,"MediaFigure",function(){return me}),n.d(t,"MediaInput",function(){return Se}),n.d(t,"Message",function(){return De}),n.d(t,"Textarea",function(){return te}),n.d(t,"TextGroup",function(){return z})}],a.c=c,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)a.d(n,r,function(e){return t[e]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=28);function a(e){if(c[e])return c[e].exports;var t=c[e]={i:e,l:!1,exports:{}};return u[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}var u,c}); | ||
//# sourceMappingURL=bundle.min.js.map |
@@ -11,3 +11,3 @@ { | ||
}, | ||
"version": "3.8.9", | ||
"version": "3.8.10", | ||
"main": "./dist/index.js", | ||
@@ -49,3 +49,3 @@ "files": [ | ||
"zendeskgarden:src": "src/index.js", | ||
"gitHead": "eece0ab2c9a1024c434809fe19ef27236124e824" | ||
"gitHead": "5e7f88c23811db52adaf5d47ccd8ed3e3534c796" | ||
} |
@@ -6,2 +6,9 @@ # @zendeskgarden/react-textfields [![npm version](https://img.shields.io/npm/v/@zendeskgarden/react-textfields.svg?style=flat-square)](https://www.npmjs.com/package/@zendeskgarden/react-textfields) | ||
## DEPRECATION WARNING | ||
This package has been deprecated in favor of the API provided in the | ||
[@zendeskgarden/react-forms](https://garden.zendesk.com/react-components/forms/) package. | ||
This package will stop receiving updates in a future major release. | ||
## Installation | ||
@@ -8,0 +15,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
297836
914
45