The Open Standard for Generative UI
Fix steps component (#61)
subham9fde0a1a1787
diff --git a/js/packages/react-ui/package.json b/js/packages/react-ui/package.jsonindex 09c6b7acf..44771660a 100644--- a/js/packages/react-ui/package.json+++ b/js/packages/react-ui/package.json@@ -2,7 +2,7 @@"type": "module","name": "@crayonai/react-ui","license": "MIT",- "version": "0.5.9",+ "version": "0.5.10","description": "Component library for Generative UI SDK","main": "dist/index.js","types": "dist/index.d.ts",diff --git a/js/packages/react-ui/src/components/Steps/steps.scss b/js/packages/react-ui/src/components/Steps/steps.scssindex 7877a36d6..7ae063368 100644--- a/js/packages/react-ui/src/components/Steps/steps.scss+++ b/js/packages/react-ui/src/components/Steps/steps.scss@@ -15,7 +15,6 @@.crayon-step-item {display: flex;- margin-bottom: cssUtils.$spacing-l;position: relative;color: cssUtils.$primary-text;}@@ -35,8 +34,8 @@@include cssUtils.typography(label, default);z-index: 2;color: cssUtils.$secondary-text;- background-color: cssUtils.$bg-container;}+.crayon-step-number-inner {display: flex;align-items: center;@@ -49,22 +48,26 @@border: 1px solid cssUtils.$stroke-default;box-sizing: border-box;}+.crayon-connector-line {width: 1px;flex-grow: 1;- position: absolute;- top: 0px;- bottom: -20px;- left: 10px;z-index: 1;background-color: cssUtils.$bg-container-hover;}+.crayon-step-content {padding-top: cssUtils.$spacing-2xs;display: flex;flex-direction: column;gap: cssUtils.$spacing-3xs;+ margin-bottom: cssUtils.$spacing-l;++ .crayon-step-item:last-child & {+ margin-bottom: 0;+ }}+.crayon-step-title {@include cssUtils.typography(title, default);color: cssUtils.$secondary-text;diff --git a/js/packages/react-ui/src/index.ts b/js/packages/react-ui/src/index.tsindex f149ef162..f024b6013 100644--- a/js/packages/react-ui/src/index.ts+++ b/js/packages/react-ui/src/index.ts@@ -25,6 +25,7 @@ export * from "./components/RadioItem";export * from "./components/Select";export * as Shell from "./components/Shell";export * from "./components/Slider";+export * from "./components/Steps";export * from "./components/SwitchGroup";export * from "./components/SwitchItem";export * from "./components/Table";