@commercetools/nimbus 0.0.7-rc8 → 0.0.7-rc9

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.js CHANGED
@@ -12741,22 +12741,23 @@ const jg = {
12741
12741
  isRequired: e,
12742
12742
  isDisabled: n,
12743
12743
  isReadOnly: r
12744
- }), { labelProps: u, fieldProps: c, descriptionProps: d, errorMessageProps: f } = kn({
12745
- label: a.label,
12744
+ }), u = {
12746
12745
  description: a.description,
12747
12746
  errorMessage: a.error
12748
- });
12747
+ };
12748
+ a.label ? u.label = a.label : (u["aria-label"] = "empty-label", u["aria-labelledby"] = "empty-label");
12749
+ const { labelProps: c, fieldProps: d, descriptionProps: f, errorMessageProps: p } = kn(u);
12749
12750
  R(() => {
12750
- s((v) => ({
12751
- ...v,
12751
+ s((m) => ({
12752
+ ...m,
12752
12753
  isInvalid: t,
12753
12754
  isRequired: e,
12754
12755
  isDisabled: n,
12755
12756
  isReadOnly: r
12756
12757
  }));
12757
12758
  }, [t, e, n, r]);
12758
- const p = {
12759
- ...c,
12759
+ const v = {
12760
+ ...d,
12760
12761
  isInvalid: t,
12761
12762
  isRequired: e,
12762
12763
  isDisabled: n,
@@ -12764,7 +12765,7 @@ const jg = {
12764
12765
  };
12765
12766
  return /* @__PURE__ */ S(St.Provider, { value: { context: a, setContext: s }, children: /* @__PURE__ */ re(ym, { ref: l, ...i, children: [
12766
12767
  a.label && /* @__PURE__ */ re($m, { ...a.labelSlotProps, children: [
12767
- /* @__PURE__ */ re("label", { ...u, children: [
12768
+ /* @__PURE__ */ re("label", { ...c, children: [
12768
12769
  a.label,
12769
12770
  e && /* @__PURE__ */ S("sup", { "aria-hidden": "true", children: "*" })
12770
12771
  ] }),
@@ -12804,11 +12805,11 @@ const jg = {
12804
12805
  /* @__PURE__ */ S(rc, { children: /* @__PURE__ */ S(Sm, { asChild: !0, children: /* @__PURE__ */ S(Hb, { children: /* @__PURE__ */ S(_e, { p: "300", children: a.info }) }) }) })
12805
12806
  ] })
12806
12807
  ] }),
12807
- a.input && /* @__PURE__ */ S(xm, { ...a.inputSlotProps, children: ad.map(a.input, (v) => Si(v) ? Tr(v, p) : v) }),
12808
+ a.input && /* @__PURE__ */ S(xm, { ...a.inputSlotProps, children: ad.map(a.input, (m) => Si(m) ? Tr(m, v) : m) }),
12808
12809
  a.description && /* @__PURE__ */ S(
12809
12810
  Pm,
12810
12811
  {
12811
- ...d,
12812
+ ...f,
12812
12813
  ...a.descriptionSlotProps,
12813
12814
  children: a.description
12814
12815
  }
@@ -12816,7 +12817,7 @@ const jg = {
12816
12817
  t && a.error && /* @__PURE__ */ re(
12817
12818
  Em,
12818
12819
  {
12819
- ...f,
12820
+ ...p,
12820
12821
  ...a.errorSlotProps,
12821
12822
  children: [
12822
12823
  /* @__PURE__ */ S(