konsolpro-custom-ui 0.0.408 → 0.0.409

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/lib/index.js CHANGED
@@ -9152,7 +9152,12 @@ const us = v.forwardRef(
9152
9152
  }
9153
9153
  );
9154
9154
  us.displayName = "SingleSegment";
9155
- function Zl({ steps: e, currentStep: t, className: r }) {
9155
+ function Zl({
9156
+ steps: e,
9157
+ currentStep: t,
9158
+ className: r,
9159
+ showCurrentStepTitleOnMobile: a = !1
9160
+ }) {
9156
9161
  return /* @__PURE__ */ n("div", { className: p("relative flex w-full", r), children: /* @__PURE__ */ n(
9157
9162
  "div",
9158
9163
  {
@@ -9161,8 +9166,8 @@ function Zl({ steps: e, currentStep: t, className: r }) {
9161
9166
  "aria-valuemin": 1,
9162
9167
  "aria-valuemax": e.length,
9163
9168
  "aria-valuenow": t,
9164
- children: e.map((a, o) => {
9165
- const i = o < t, s = o === t, l = o === e.length - 1;
9169
+ children: e.map((o, i) => {
9170
+ const s = i < t, l = i === t, c = i === e.length - 1;
9166
9171
  return /* @__PURE__ */ C(he, { children: [
9167
9172
  /* @__PURE__ */ C(
9168
9173
  "div",
@@ -9174,47 +9179,56 @@ function Zl({ steps: e, currentStep: t, className: r }) {
9174
9179
  {
9175
9180
  className: p(
9176
9181
  "flex items-center justify-center",
9177
- i && "text-white",
9178
- s && !i && "text-white"
9182
+ s && "text-white",
9183
+ l && !s && "text-white"
9179
9184
  ),
9180
- "aria-current": s ? "step" : void 0,
9185
+ "aria-current": l ? "step" : void 0,
9181
9186
  children: /* @__PURE__ */ n(
9182
9187
  "div",
9183
9188
  {
9184
9189
  className: p(
9185
9190
  "font-cofo flex items-center justify-center rounded-full",
9186
- i && "bg-positive",
9187
- s && !i && "bg-primary",
9188
- !i && !s && "bg-muted",
9191
+ s && "bg-positive",
9192
+ l && !s && "bg-primary",
9193
+ !s && !l && "bg-muted",
9189
9194
  "h-6 w-6 md:h-7 md:w-7"
9190
9195
  ),
9191
- children: i ? /* @__PURE__ */ n(U, { icon: "DoneIcon" }) : /* @__PURE__ */ n(
9196
+ children: s ? /* @__PURE__ */ n(U, { icon: "DoneIcon" }) : /* @__PURE__ */ n(
9192
9197
  _,
9193
9198
  {
9194
9199
  variant: "p1",
9195
9200
  className: "font-cofo",
9196
- textColor: s ? "white" : "muted",
9197
- children: o + 1
9201
+ textColor: l ? "white" : "muted",
9202
+ children: i + 1
9198
9203
  }
9199
9204
  )
9200
9205
  }
9201
9206
  )
9202
9207
  }
9203
9208
  ),
9204
- s && /* @__PURE__ */ n("div", { className: "font-graphik ml-2.5 hidden md:block max-w-48 whitespace-nowrap", children: /* @__PURE__ */ n(
9205
- _,
9209
+ l && /* @__PURE__ */ n(
9210
+ "div",
9206
9211
  {
9207
- variant: "p1",
9208
- weight: "medium",
9209
- className: "overflow-hidden text-ellipsis",
9210
- children: a.title
9212
+ className: p(
9213
+ "font-graphik ml-2.5 max-w-48 whitespace-nowrap",
9214
+ a ? "block" : "hidden md:block"
9215
+ ),
9216
+ children: /* @__PURE__ */ n(
9217
+ _,
9218
+ {
9219
+ variant: "p1",
9220
+ weight: "medium",
9221
+ className: "overflow-hidden text-ellipsis",
9222
+ children: o.title
9223
+ }
9224
+ )
9211
9225
  }
9212
- ) })
9226
+ )
9213
9227
  ]
9214
9228
  },
9215
- a.title
9229
+ o.title
9216
9230
  ),
9217
- !l && /* @__PURE__ */ n("div", { className: "flex items-center flex-1 min-w-1.5 md:min-w-8", children: /* @__PURE__ */ n("div", { className: p("mx-2 h-0.25 w-full", "bg-border") }) })
9231
+ !c && /* @__PURE__ */ n("div", { className: "flex items-center flex-1 min-w-1.5 md:min-w-8", children: /* @__PURE__ */ n("div", { className: p("mx-2 h-0.25 w-full", "bg-border") }) })
9218
9232
  ] });
9219
9233
  })
9220
9234
  }
@@ -5,7 +5,8 @@ interface StepperProps {
5
5
  steps: Step[];
6
6
  currentStep: number;
7
7
  className?: string;
8
+ showCurrentStepTitleOnMobile?: boolean;
8
9
  }
9
- declare function Stepper({ steps, currentStep, className }: StepperProps): import("react/jsx-runtime").JSX.Element;
10
+ declare function Stepper({ steps, currentStep, className, showCurrentStepTitleOnMobile, }: StepperProps): import("react/jsx-runtime").JSX.Element;
10
11
  export { Stepper };
11
12
  export type { Step, StepperProps };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "konsolpro-custom-ui",
3
3
  "type": "module",
4
- "version": "0.0.408",
4
+ "version": "0.0.409",
5
5
  "packageManager": "yarn@3.4.1",
6
6
  "license": "MIT",
7
7
  "sideEffects": [