@bcc-code/component-library-vue 0.9.13 → 0.9.17

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.
@@ -3283,8 +3283,8 @@ const Nk = yf(jk, {
3283
3283
  }
3284
3284
  },
3285
3285
  closeButton: {
3286
- width: "var(--space-300)",
3287
- height: "var(--space-300)",
3286
+ width: "var(--space-250)",
3287
+ height: "var(--space-250)",
3288
3288
  borderRadius: "var(--border-radius-lg)",
3289
3289
  focusRing: {
3290
3290
  width: "{focus.ring.width}",
@@ -9581,8 +9581,11 @@ const SC = {
9581
9581
  }), EC = {
9582
9582
  key: 0,
9583
9583
  class: "flex gap-2"
9584
- }, RC = { class: "text-heading-sm text-default" }, AC = {
9584
+ }, RC = {
9585
9585
  key: 0,
9586
+ class: "text-heading-sm text-default"
9587
+ }, AC = {
9588
+ key: 1,
9586
9589
  class: "text-body-sm text-text-subtlest"
9587
9590
  }, zC = { class: "center gap-2" }, FC = ["onClick"], ON = /* @__PURE__ */ Te({
9588
9591
  __name: "BccStepIndicator",
@@ -9602,15 +9605,15 @@ const SC = {
9602
9605
  emits: ["update:modelValue"],
9603
9606
  setup(t) {
9604
9607
  const e = t, n = Tr(t, "modelValue"), r = ye(() => ({
9605
- current: n.value + 1,
9608
+ current: n.value !== null ? n.value + 1 : null,
9606
9609
  total: Array.isArray(e.steps) ? e.steps.length : e.steps,
9607
- label: Array.isArray(e.steps) ? e.steps[n.value] ?? "" : ""
9610
+ label: Array.isArray(e.steps) ? e.steps[n.value ?? -1] ?? "" : ""
9608
9611
  }));
9609
9612
  return (i, o) => (d(), p("div", {
9610
9613
  class: S(["bcc-step-indicator col gap-2", [{ left: t.left, right: t.right }, `ctx-${t.context}`]])
9611
9614
  }, [
9612
9615
  e.hideText ? g("", !0) : (d(), p("div", EC, [
9613
- k("span", RC, D(e.headingFn(r.value.current, r.value.total)), 1),
9616
+ r.value.current !== null ? (d(), p("span", RC, D(e.headingFn(r.value.current, r.value.total)), 1)) : g("", !0),
9614
9617
  e.hideLabel ? g("", !0) : (d(), p("span", AC, D(r.value.label), 1))
9615
9618
  ])),
9616
9619
  k("div", zC, [
@@ -9620,7 +9623,7 @@ const SC = {
9620
9623
  l === n.value ? "w-6" : "w-1.5",
9621
9624
  {
9622
9625
  clickable: t.clickable,
9623
- "ctx-gray-subtle": l > n.value
9626
+ "ctx-gray-subtle": l > (n.value ?? -1)
9624
9627
  }
9625
9628
  ]]),
9626
9629
  onClick: (s) => t.clickable ? n.value = l : null
@@ -9677,11 +9680,11 @@ const SC = {
9677
9680
  key: 0,
9678
9681
  class: "text-heading-md"
9679
9682
  }, NC = {
9680
- key: 1,
9683
+ key: 0,
9681
9684
  class: "h-6 w-20",
9682
9685
  xmlns: "http://www.w3.org/2000/svg"
9683
9686
  }, HC = {
9684
- key: 2,
9687
+ key: 1,
9685
9688
  class: "flex w-10 items-center"
9686
9689
  }, qC = {
9687
9690
  key: 0,
@@ -9739,11 +9742,13 @@ const SC = {
9739
9742
  B(ne(KI), { class: "w-6" }),
9740
9743
  t.backTitle ? (d(), p("h3", jC, D(t.backTitle), 1)) : g("", !0)
9741
9744
  ], 8, VC)),
9742
- t.left === "event-logo" ? (d(), p("svg", NC, [...a[1] || (a[1] = [
9743
- k("use", { "xlink:href": "#svg-splash-icon" }, null, -1)
9744
- ])])) : t.left || t.hideBack && !t.titleLeft && (t.right || o.$slots.right) ? (d(), p("div", HC, [
9745
- (d(), y(C(t.left)))
9746
- ])) : g("", !0),
9745
+ b(o.$slots, "left", {}, () => [
9746
+ t.left === "event-logo" ? (d(), p("svg", NC, [...a[1] || (a[1] = [
9747
+ k("use", { "xlink:href": "#svg-splash-icon" }, null, -1)
9748
+ ])])) : t.left || t.hideBack && !t.titleLeft && (t.right || o.$slots.right) ? (d(), p("div", HC, [
9749
+ (d(), y(C(t.left)))
9750
+ ])) : g("", !0)
9751
+ ]),
9747
9752
  (d(), p("div", {
9748
9753
  key: String(i.value.title),
9749
9754
  class: S(["col pointer-events-none flex-1 gap-(--space-negative-25) truncate px-2", t.titleLeft ? "items-start text-left" : "text-center"])
@@ -12544,7 +12549,7 @@ const gx = { class: "flex items-center gap-2" }, vx = ["for"], MN = /* @__PURE__
12544
12549
  ]),
12545
12550
  _: 1
12546
12551
  }, 16),
12547
- t.label ? (d(), p("label", {
12552
+ t.label || i.$slots.default ? (d(), p("label", {
12548
12553
  key: 0,
12549
12554
  for: r.value.inputId,
12550
12555
  class: S([
@@ -17665,7 +17670,7 @@ const o5 = ["for"], FN = /* @__PURE__ */ Te({
17665
17670
  class: S(["flex items-center gap-2", r.value])
17666
17671
  }, [
17667
17672
  B(ne(ol), Pe(Ye(i.value)), null, 16),
17668
- t.label ? (d(), p("label", {
17673
+ t.label || o.$slots.default ? (d(), p("label", {
17669
17674
  key: 0,
17670
17675
  for: i.value.inputId,
17671
17676
  class: S([