kwant-ui 3.38.1-dev.10 → 3.38.1-dev.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,6 +7,7 @@ type HorizontalStepperType = {
7
7
  activeStep?: any;
8
8
  setActiveStep?: any;
9
9
  navigateOnStepClick?: boolean;
10
+ onStepChange?: (value: any) => void;
10
11
  };
11
- declare const HorizontalStepper: ({ activeStep, setActiveStep, navigateOnStepClick, ...props }: HorizontalStepperType) => import("react/jsx-runtime").JSX.Element;
12
+ declare const HorizontalStepper: ({ activeStep, setActiveStep, navigateOnStepClick, onStepChange, ...props }: HorizontalStepperType) => import("react/jsx-runtime").JSX.Element;
12
13
  export { HorizontalStepper };
package/dist/index.es.js CHANGED
@@ -1807,7 +1807,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1807
1807
  }
1808
1808
  }
1809
1809
  }
1810
- `,xr=({activeStep:r,setActiveStep:n,navigateOnStepClick:a=!0,...c})=>{const i=c.direction||"column",o="row"===i?"left":c.align||"center",s=c.steps||[{label:"",value:"1",status:""},{label:"",value:"2",status:""}],l=e=>{n(e)};return e(yr,{direction:i,children:e("div",{className:"horizontal-stepper",children:s&&s.map(((n,c)=>{const h=s.length-1===c,v=r===n.value,p=s.findIndex((e=>r===e.value)),u="failed"===n.status,g=r!==n.value&&c<p;return t("div",{className:`horizontal-stepper__step ${u?"error-step":!u&&g?"completed-step":""}\n ${h&&"last-step"} ${v&&"current-step"} align-${o} direction-${i}`,children:[e("div",{className:"horizontal-stepper__step__body",children:t("div",{className:"horizontal-stepper__step__body__bullet",onClick:()=>(e=>{a&&l(e)})(n.value),children:[e(br,{current:v,step:`${c+1}`,children:e("input",{onClick:()=>{l(n.value)},id:"bullet",type:"radio"})}),e("label",{className:"bullet-label",children:n.label||""})]})}),e("div",{className:`horizontal-stepper__step__indicator ${g&&"active-indicator"}`})]},c)}))})})},Zr=n.div`
1810
+ `,xr=({activeStep:r,setActiveStep:n,navigateOnStepClick:a=!0,onStepChange:c,...i})=>{const o=i.direction||"column",s="row"===o?"left":i.align||"center",l=i.steps||[{label:"",value:"1",status:""},{label:"",value:"2",status:""}],h=e=>{n?.(e),c?.(e)};return e(yr,{direction:o,children:e("div",{className:"horizontal-stepper",children:l&&l.map(((n,c)=>{const i=l.length-1===c,v=r===n.value,p=l.findIndex((e=>r===e.value)),u="failed"===n.status,g=r!==n.value&&c<p;return t("div",{className:`horizontal-stepper__step ${u?"error-step":!u&&g?"completed-step":""}\n ${i&&"last-step"} ${v&&"current-step"} align-${s} direction-${o}`,children:[e("div",{className:"horizontal-stepper__step__body",children:t("div",{className:"horizontal-stepper__step__body__bullet",onClick:()=>(e=>{a&&h(e)})(n.value),children:[e(br,{current:v,step:`${c+1}`,children:e("input",{onClick:()=>{h(n.value)},id:"bullet",type:"radio"})}),e("label",{className:"bullet-label",children:n.label||""})]})}),e("div",{className:`horizontal-stepper__step__indicator ${g&&"active-indicator"}`})]},c)}))})})},Zr=n.div`
1811
1811
  border: ${e=>e.strokeWidth+"px"} solid ${e=>e.color};
1812
1812
  border-left-color: ${A.grey.grey200};
1813
1813
  border-radius: 50%;