kwant-ui 3.36.0-stable.0 → 3.36.0-stable.1
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
|
@@ -1811,7 +1811,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1811
1811
|
}
|
|
1812
1812
|
}
|
|
1813
1813
|
}
|
|
1814
|
-
`,jr=({activeStep:r,setActiveStep:n,navigateOnStepClick:a=!0,...
|
|
1814
|
+
`,jr=({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(Pr,{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(Hr,{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)}))})})},Vr=n.div`
|
|
1815
1815
|
border: ${e=>e.strokeWidth+"px"} solid ${e=>e.color};
|
|
1816
1816
|
border-left-color: ${A.grey.grey200};
|
|
1817
1817
|
border-radius: 50%;
|