@streamoid/ui 0.4.9 → 0.5.0

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.css CHANGED
@@ -3986,6 +3986,20 @@
3986
3986
  align-items: center;
3987
3987
  justify-content: space-between;
3988
3988
  width: 100%;
3989
+ position: relative;
3990
+ }
3991
+ .ScGuide_stepIndicator {
3992
+ position: absolute;
3993
+ left: 50%;
3994
+ top: 50%;
3995
+ transform: translate(-50%, -50%);
3996
+ pointer-events: none;
3997
+ font-family: var(--font-family-font-family-body, "Inter", sans-serif);
3998
+ font-size: var(--font-size-font-size-sm, 0.875rem);
3999
+ font-weight: 400;
4000
+ line-height: var(--line-height-line-height-sm, 1.25rem);
4001
+ color: var(--alias-text-and-icons-tertiary, #9e9e9e);
4002
+ white-space: nowrap;
3989
4003
  }
3990
4004
  .ScGuide_skipButton {
3991
4005
  background: transparent;
package/dist/index.d.mts CHANGED
@@ -404,6 +404,9 @@ interface IScGuideProps {
404
404
  /** Icon rendered after the Next label. Defaults to a right-chevron.
405
405
  * Use for terminal steps where the action is "Done" + checkmark, etc. */
406
406
  nextIcon?: ReactNode;
407
+ /** Centered step indicator shown between Skip and Next (e.g. "1 of 3").
408
+ * Hidden when omitted. */
409
+ stepLabel?: ReactNode;
407
410
  /** Click handler for the Skip action. */
408
411
  onSkip?: () => void;
409
412
  /** Click handler for the Next action. */
@@ -417,7 +420,7 @@ interface IScGuideProps {
417
420
  className?: string;
418
421
  style?: CSSProperties;
419
422
  }
420
- declare const ScGuide: ({ title, description, skipLabel, nextLabel, nextIcon, onSkip, onNext, hideSkip, hideNext, disabled, className, style, }: IScGuideProps) => JSX.Element;
423
+ declare const ScGuide: ({ title, description, skipLabel, nextLabel, nextIcon, stepLabel, onSkip, onNext, hideSkip, hideNext, disabled, className, style, }: IScGuideProps) => JSX.Element;
421
424
 
422
425
  interface IScSideBarLogoUnitProps {
423
426
  /** "expanded" renders the merged wordmark + switcher row.
package/dist/index.d.ts CHANGED
@@ -404,6 +404,9 @@ interface IScGuideProps {
404
404
  /** Icon rendered after the Next label. Defaults to a right-chevron.
405
405
  * Use for terminal steps where the action is "Done" + checkmark, etc. */
406
406
  nextIcon?: ReactNode;
407
+ /** Centered step indicator shown between Skip and Next (e.g. "1 of 3").
408
+ * Hidden when omitted. */
409
+ stepLabel?: ReactNode;
407
410
  /** Click handler for the Skip action. */
408
411
  onSkip?: () => void;
409
412
  /** Click handler for the Next action. */
@@ -417,7 +420,7 @@ interface IScGuideProps {
417
420
  className?: string;
418
421
  style?: CSSProperties;
419
422
  }
420
- declare const ScGuide: ({ title, description, skipLabel, nextLabel, nextIcon, onSkip, onNext, hideSkip, hideNext, disabled, className, style, }: IScGuideProps) => JSX.Element;
423
+ declare const ScGuide: ({ title, description, skipLabel, nextLabel, nextIcon, stepLabel, onSkip, onNext, hideSkip, hideNext, disabled, className, style, }: IScGuideProps) => JSX.Element;
421
424
 
422
425
  interface IScSideBarLogoUnitProps {
423
426
  /** "expanded" renders the merged wordmark + switcher row.
package/dist/index.js CHANGED
@@ -3641,6 +3641,7 @@ var ScGuide_default = {
3641
3641
  title: "ScGuide_title",
3642
3642
  description: "ScGuide_description",
3643
3643
  actions: "ScGuide_actions",
3644
+ stepIndicator: "ScGuide_stepIndicator",
3644
3645
  skipButton: "ScGuide_skipButton",
3645
3646
  skipSpacer: "ScGuide_skipSpacer",
3646
3647
  nextButton: "ScGuide_nextButton",
@@ -3657,6 +3658,7 @@ var ScGuide = ({
3657
3658
  skipLabel = "Skip",
3658
3659
  nextLabel = "Next",
3659
3660
  nextIcon,
3661
+ stepLabel,
3660
3662
  onSkip,
3661
3663
  onNext,
3662
3664
  hideSkip = false,
@@ -3687,6 +3689,7 @@ var ScGuide = ({
3687
3689
  children: skipLabel
3688
3690
  }
3689
3691
  ),
3692
+ stepLabel != null && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: ScGuide_default.stepIndicator, children: stepLabel }),
3690
3693
  !hideNext && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
3691
3694
  "button",
3692
3695
  {
package/dist/index.mjs CHANGED
@@ -3534,6 +3534,7 @@ var ScGuide_default = {
3534
3534
  title: "ScGuide_title",
3535
3535
  description: "ScGuide_description",
3536
3536
  actions: "ScGuide_actions",
3537
+ stepIndicator: "ScGuide_stepIndicator",
3537
3538
  skipButton: "ScGuide_skipButton",
3538
3539
  skipSpacer: "ScGuide_skipSpacer",
3539
3540
  nextButton: "ScGuide_nextButton",
@@ -3550,6 +3551,7 @@ var ScGuide = ({
3550
3551
  skipLabel = "Skip",
3551
3552
  nextLabel = "Next",
3552
3553
  nextIcon,
3554
+ stepLabel,
3553
3555
  onSkip,
3554
3556
  onNext,
3555
3557
  hideSkip = false,
@@ -3580,6 +3582,7 @@ var ScGuide = ({
3580
3582
  children: skipLabel
3581
3583
  }
3582
3584
  ),
3585
+ stepLabel != null && /* @__PURE__ */ jsx42("span", { className: ScGuide_default.stepIndicator, children: stepLabel }),
3583
3586
  !hideNext && /* @__PURE__ */ jsxs34(
3584
3587
  "button",
3585
3588
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamoid/ui",
3
- "version": "0.4.9",
3
+ "version": "0.5.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",