@e-infra/design-system 0.0.4 → 0.0.6

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.
package/dist/index.es.js CHANGED
@@ -3793,9 +3793,7 @@ function SidebarMenuSkeleton({
3793
3793
  showIcon = false,
3794
3794
  ...props
3795
3795
  }) {
3796
- const width = React.useMemo(() => {
3797
- return `${Math.floor(Math.random() * 40) + 50}%`;
3798
- }, []);
3796
+ const [width] = React.useState(() => `${Math.floor(Math.random() * 40) + 50}%`);
3799
3797
  return /* @__PURE__ */ jsxs(
3800
3798
  "div",
3801
3799
  {
@@ -4006,7 +4004,7 @@ function Stepper({
4006
4004
  if (initialStep !== currentStep) {
4007
4005
  setCurrentStep(initialStep);
4008
4006
  }
4009
- }, [initialStep]);
4007
+ }, [initialStep, currentStep]);
4010
4008
  return /* @__PURE__ */ jsx(
4011
4009
  StepperContext.Provider,
4012
4010
  {