@comparaonline/ui-wizard-form-stepper
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -1,2 +0,2 @@ | ||
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.WizardFormStepper=n.WizardFormStepper},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);t.WizardFormStepper=n.WizardFormStepper},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3),o=n.__importStar(r(4)),i=n.__importDefault(r(5)),u=n.__importDefault(r(6)),p=n.__importDefault(r(7)),a=r(8),s=r(9),c=r(10),l=function(e){function t(t){var r=e.call(this,t)||this;return r.onClickHandler=function(e,t){return function(){var n=r.props,o=n.onStepClick,i=n.stepGroups;o&&e<t&&o(i[e].stepIds[0])}},r.idToGroupIndex=c.getIdToGroupIndex(t.stepGroups),r}return n.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props,r=t.activeStepId,n=t.stepGroups,a=t.classes,s=a.stepperRoot,c=a.stepRoot,l=a.stepButtonRoot,d=this.idToGroupIndex[r];return o.createElement(i.default,{classes:{root:s},activeStep:d},n.map(function(t,r){return o.createElement(u.default,{classes:{root:c},key:t.label,disabled:r>=d},o.createElement(p.default,{classes:{root:l},onClick:e.onClickHandler(r,d)},t.label))}))},t}(o.Component);t.WizardFormStepper=a.withStyles(s.styles)(l)},function(e,t){e.exports=require("tslib")},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("@material-ui/core/Stepper")},function(e,t){e.exports=require("@material-ui/core/Step")},function(e,t){e.exports=require("@material-ui/core/StepButton")},function(e,t){e.exports=require("@material-ui/core/styles")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.styles=function(e){var t;return{stepperRoot:(t={margin:"auto",padding:0,paddingBottom:2.5*e.spacing.unit,maxWidth:60*e.spacing.unit},t[e.breakpoints.up("sm")]={paddingTop:e.spacing.unit,paddingBottom:4*e.spacing.unit},t),stepRoot:{padding:2*e.spacing.unit+"px "+e.spacing.unit+"px"},stepButtonRoot:{padding:2*e.spacing.unit,margin:-2*e.spacing.unit}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIdToGroupIndex=function(e){return e.reduce(function(e,t,r){return t.stepIds.forEach(function(t){return e[t]=r}),e},{})}}]); | ||
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.WizardFormStepper=n.WizardFormStepper},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);t.WizardFormStepper=n.WizardFormStepper},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3),o=n.__importStar(r(4)),i=n.__importDefault(r(5)),u=n.__importDefault(r(6)),p=n.__importDefault(r(7)),a=r(8),s=r(9),c=r(10),l=function(e){function t(t){var r=e.call(this,t)||this;return r.onClickHandler=function(e,t){return function(){var n=r.props,o=n.onStepClick,i=n.stepGroups;o&&e<t&&o(i[e].stepIds[0])}},r.idToGroupIndex=c.getIdToGroupIndex(t.stepGroups),r}return n.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props,r=t.activeStepId,n=t.stepGroups,a=t.classes,s=a.stepperRoot,c=a.stepRoot,l=a.stepButtonRoot,d=this.idToGroupIndex[r];return o.createElement(i.default,{classes:{root:s},activeStep:d},n.map(function(t,r){return o.createElement(u.default,{classes:{root:c},key:t.label,disabled:r>=d},o.createElement(p.default,{classes:{root:l},onClick:e.onClickHandler(r,d)},t.label))}))},t}(o.Component);t.WizardFormStepper=a.withStyles(s.styles)(l)},function(e,t){e.exports=require("tslib")},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("@material-ui/core/Stepper")},function(e,t){e.exports=require("@material-ui/core/Step")},function(e,t){e.exports=require("@material-ui/core/StepButton")},function(e,t){e.exports=require("@material-ui/core/styles")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.styles=function(e){var t;return{stepperRoot:(t={margin:"auto",padding:0,paddingBottom:2.5*e.spacing.unit,maxWidth:60*e.spacing.unit,backgroundColor:"transparent"},t[e.breakpoints.up("sm")]={paddingTop:e.spacing.unit,paddingBottom:4*e.spacing.unit},t),stepRoot:{padding:2*e.spacing.unit+"px "+e.spacing.unit+"px"},stepButtonRoot:{padding:2*e.spacing.unit,margin:-2*e.spacing.unit}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIdToGroupIndex=function(e){return e.reduce(function(e,t,r){return t.stepIds.forEach(function(t){return e[t]=r}),e},{})}}]); | ||
//# sourceMappingURL=ui-wizard-form-stepper.js.map |
{ | ||
"name": "@comparaonline/ui-wizard-form-stepper", | ||
"author": "Comparaonline.com", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"main": "dist/ui-wizard-form-stepper.js", | ||
@@ -42,3 +42,3 @@ "types": "dist/index.d.ts", | ||
}, | ||
"gitHead": "da272b7cd48020483f8012da1df755e37af7d2ca" | ||
"gitHead": "a3c6372c4b361f4ab3b0aa184afba073c7458441" | ||
} |
Sorry, the diff of this file is not supported yet
16413