diff --git a/dist/index.js b/dist/index.js index 460711f..cd8c119 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1 +1 @@ -module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t){e.exports=require("react")},function(e,t,r){"use strict";r.r(t);var n=r(0),a=r.n(n);function o(e){var t=e.children,r=e.label,n=e.showLabel,o=e.name;return n?a.a.createElement("label",{"data-label":o},a.a.createElement("span",null,r),t):t}var u=function(e){var t=e.items,r=e.value,n=e.label,u=e.showLabel,l=e.name,i=e.onChange,c=e.renderOption,f=e.generateValue;return a.a.createElement(o,{label:n,showLabel:u,name:l},a.a.createElement("select",{value:r,onChange:i,"data-field":l},a.a.createElement("option",{disabled:!0,value:""},n),t.map((function(e,t){return a.a.createElement("option",{key:e,value:f?f(e,t):e},c?c(e,t):e)}))))};function l(e,t){for(var r=[],n=e;n<=t;n+=1)r.push(n);return r}function i(e){return e?{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}:{day:"",month:"",year:""}}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,a=!1,o=void 0;try{for(var u,l=e[Symbol.iterator]();!(n=(u=l.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==l.return||l.return()}finally{if(a)throw o}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rC.getTime()?s="INVALID_MAX":i.getTime()e.length)&&(t=e.length);for(var r=0,n=new Array(t);rC.getTime()?s="INVALID_MAX":i.getTime() - {fields.map(field => ( - dayPad(v) : null} - generateValue={field === "month" ? (_, index) => index : null} - /> - ))} - +
+ {fields.map(field => ( + dayPad(v) : null} + generateValue={field === "month" ? (_, index) => index : null} + /> + ))} +
{validationError && showErrors &&

{errors[validationError]}

} );