@zendeskgarden/container-field
Advanced tools
Comparing version 1.0.5 to 1.1.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.1.0](https://github.com/zendeskgarden/react-containers/compare/@zendeskgarden/container-field@1.0.5...@zendeskgarden/container-field@1.1.0) (2019-10-08) | ||
### Features | ||
* **field:** migrate useField to TypeScript ([#110](https://github.com/zendeskgarden/react-containers/issues/110)) ([04acb49](https://github.com/zendeskgarden/react-containers/commit/04acb49)) | ||
## [1.0.5](https://github.com/zendeskgarden/react-containers/compare/@zendeskgarden/container-field@1.0.4...@zendeskgarden/container-field@1.0.5) (2019-09-25) | ||
@@ -8,0 +19,0 @@ |
@@ -6,3 +6,3 @@ /*! | ||
*/ | ||
!function(e,r){for(var t in r)e[t]=r[t]}(exports,function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=3)}([function(e,r){e.exports=require("prop-types")},function(e,r){e.exports=require("react")},function(e,r){e.exports=require("@zendeskgarden/container-utilities")},function(e,r,t){"use strict";t.r(r);var n=t(1),o=t(2);function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function u(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?i(t,!0).forEach(function(r){c(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function c(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function l(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var t=[],n=!0,o=!1,i=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(t.push(u.value),!r||t.length!==r);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return t}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function f(e){var r=l(Object(n.useState)(e||Object(o.generateId)("garden-field-container")),1)[0],t="".concat(r,"--input"),i="".concat(r,"--label"),c="".concat(r,"--hint");return{getLabelProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.id,n=void 0===r?i:r,o=e.htmlFor,c=void 0===o?t:o,l=a(e,["id","htmlFor"]);return u({id:n,htmlFor:c,"data-garden-container-id":"field","data-garden-container-version":"1.0.5"},l)},getInputProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.id,n=void 0===r?t:r,o=a(e,["id"]),l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=l.isDescribed,d=void 0!==f&&f;return u({id:n,"aria-labelledby":i,"aria-describedby":d?c:null},o)},getHintProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.id,t=void 0===r?c:r,n=a(e,["id"]);return u({id:t},n)}}}var d=t(0),p=t.n(d);function b(e){var r=e.children,t=e.render;return(void 0===t?r:t)(f(e.id))}b.propTypes={children:p.a.func,render:p.a.func,id:p.a.string},t.d(r,"useField",function(){return f}),t.d(r,"FieldContainer",function(){return b})}])); | ||
!function(e,r){for(var t in r)e[t]=r[t]}(exports,function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=3)}([function(e,r){e.exports=require("prop-types")},function(e,r){e.exports=require("react")},function(e,r){e.exports=require("@zendeskgarden/container-utilities")},function(e,r,t){"use strict";t.r(r);var n=t(1),o=t(2);function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function u(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?i(t,!0).forEach(function(r){c(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function c(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function l(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var t=[],n=!0,o=!1,i=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(t.push(u.value),!r||t.length!==r);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return t}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function f(e){var r=l(Object(n.useState)(e||Object(o.generateId)("garden-field-container")),1)[0],t="".concat(r,"--input"),i="".concat(r,"--label"),c="".concat(r,"--hint");return{getLabelProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.id,n=void 0===r?i:r,o=e.htmlFor,c=void 0===o?t:o,l=a(e,["id","htmlFor"]);return u({id:n,htmlFor:c,"data-garden-container-id":"field","data-garden-container-version":"1.1.0"},l)},getInputProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.id,n=void 0===r?t:r,o=a(e,["id"]),l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=l.isDescribed,d=void 0!==f&&f;return u({id:n,"aria-labelledby":i,"aria-describedby":d?c:null},o)},getHintProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.id,t=void 0===r?c:r,n=a(e,["id"]);return u({id:t},n)}}}var d=t(0),p=t.n(d),b=function(e){var r=e.children,t=e.render;return(void 0===t?r:t)(f(e.id))};b.propTypes={children:p.a.func,render:p.a.func,id:p.a.string},t.d(r,"useField",function(){return f}),t.d(r,"FieldContainer",function(){return b})}])); | ||
//# sourceMappingURL=index.js.map |
@@ -11,3 +11,3 @@ { | ||
}, | ||
"version": "1.0.5", | ||
"version": "1.1.0", | ||
"main": "./dist/index.js", | ||
@@ -20,2 +20,3 @@ "files": [ | ||
}, | ||
"types": "dist/typings/index.d.ts", | ||
"dependencies": { | ||
@@ -41,4 +42,4 @@ "@zendeskgarden/container-utilities": "^0.3.0" | ||
}, | ||
"zendeskgarden:src": "src/index.js", | ||
"gitHead": "a206bd3d4d982ccefecf400e393c908044c3d645" | ||
"zendeskgarden:src": "src/index.ts", | ||
"gitHead": "3df9826b4533a2d1a314e7d5f562a77b30cde17d" | ||
} |
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
30175
9
57