Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@comparaonline/ui-wizard-form

Package Overview
Dependencies
Maintainers
20
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@comparaonline/ui-wizard-form - npm Package Compare versions

Comparing version 0.0.4-alpha.0 to 0.0.5-alpha.0

2

dist/ui-wizard-form.js

@@ -1,2 +0,2 @@

module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.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 i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));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=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.WizardForm=n.WizardForm},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(r(2)),u=r(3),a=i(r(4));t.WizardForm=function(e){var t=e.formProps,r=e.isLoading,i=e.isLastStep,l=e.isFirstStep,f=e.currentStep,s=e.setLoading,c=e.previous;return o.default.createElement(u.Form,n({},t),function(e){var t=e.handleSubmit,n=e.submitting,u=e.values;return o.default.createElement("form",{onSubmit:t},r&&o.default.createElement("div",null,"Loading next step"),f.render&&f.render({submitting:n,setLoading:s,isLoading:r,isLast:i(),id:f.id}),!r&&o.default.createElement("section",null,!l()&&o.default.createElement(a.default,{color:"primary",type:"button",onClick:c},"Previous")," ",o.default.createElement(a.default,{type:"submit",disabled:n},i()?"Submit":"Next")),o.default.createElement("pre",null,JSON.stringify(u,void 0,2)))})}},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("react-final-form")},function(e,t){e.exports=require("@material-ui/core/Button")}]);
module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.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 o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));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=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.WizardForm=n.WizardForm},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(2)),u=r(3),a=o(r(4));t.WizardForm=function(e){var t=e.formProps,r=e.isLoading,o=e.isLastStep,l=e.isFirstStep,f=e.currentStep,c=e.setLoading,s=e.previous;return i.default.createElement(u.Form,n({},t),function(e){var t=e.handleSubmit,n=e.submitting;return i.default.createElement("form",{onSubmit:t},r&&i.default.createElement("div",null,"Loading next step"),f.render&&f.render({submitting:n,setLoading:c,isLoading:r,isLast:o(),id:f.id}),!r&&i.default.createElement("section",null,!l()&&i.default.createElement(a.default,{color:"primary",type:"button",onClick:s},"Previous")," ",i.default.createElement(a.default,{type:"submit",disabled:n},o()?"Submit":"Next")))})}},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("react-final-form")},function(e,t){e.exports=require("@material-ui/core/Button")}]);
//# sourceMappingURL=ui-wizard-form.js.map
/// <reference types="react" />
import { FormProps } from 'react-final-form';
import { ChildrenProps } from '@comparaonline/ui-wizard-form-manager';
export interface Props<T> extends Pick<ChildrenProps<T>, Exclude<keyof ChildrenProps<T>, 'onSubmit' | 'initialValues' | 'values' | 'activeStep' | 'goTo'>> {
export interface Props<FormValues> extends Pick<ChildrenProps<FormValues>, Exclude<keyof ChildrenProps<FormValues>, 'onSubmit' | 'initialValues' | 'values' | 'activeStep' | 'goTo'>> {
formProps: FormProps;

@@ -6,0 +6,0 @@ }

{
"name": "@comparaonline/ui-wizard-form",
"author": "Esteban Martini",
"version": "0.0.4-alpha.0",
"version": "0.0.5-alpha.0",
"main": "dist/ui-wizard-form.js",

@@ -34,3 +34,3 @@ "types": "dist/index.d.ts",

"dependencies": {
"@comparaonline/ui-wizard-form-manager": "^0.0.4-alpha.0",
"@comparaonline/ui-wizard-form-manager": "^0.0.5-alpha.0",
"@types/react": "^16.4.18",

@@ -45,3 +45,3 @@ "react-final-form": "3.6.7",

},
"gitHead": "7bb6f5ad26b908fdade40ff8fadaaf33191bdf0a"
"gitHead": "3d6c464dbfad1a73da603edde186286c6c1e0572"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc