conversion-ui-library 1.1.18 → 1.1.19

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.es.js CHANGED
@@ -9125,17 +9125,24 @@ function XZ({
9125
9125
  type: r,
9126
9126
  label: n,
9127
9127
  startIcon: i,
9128
- endIcon: o,
9129
- children: a,
9130
- font: s = "medium",
9131
- fontFamily: l = "mono",
9132
- ...c
9128
+ icon: o,
9129
+ endIcon: a,
9130
+ iconSize: s,
9131
+ iconClassName: l,
9132
+ children: c,
9133
+ font: u = "medium",
9134
+ fontFamily: f = "mono",
9135
+ ...d
9133
9136
  }) {
9134
- const u = r ? zZ[r] : null, f = u?.label || n || a, d = u?.icon || i, h = u?.size;
9135
- return /* @__PURE__ */ M("div", { className: D(jZ({ size: e }), t), ...c, children: [
9136
- W2(d, h, u?.class),
9137
- /* @__PURE__ */ y(Ut, { variant: "xs", font: s, fontFamily: l, children: f }),
9138
- W2(o)
9137
+ const h = r ? zZ[r] : null, p = n ?? c ?? h?.label, O = i ?? o ?? h?.icon, g = s ?? h?.size, v = l ?? h?.class;
9138
+ return /* @__PURE__ */ M("div", { className: D(jZ({ size: e }), t), ...d, children: [
9139
+ W2(
9140
+ O,
9141
+ g,
9142
+ v
9143
+ ),
9144
+ /* @__PURE__ */ y(Ut, { variant: "xs", font: u, fontFamily: f, children: p }),
9145
+ W2(a)
9139
9146
  ] });
9140
9147
  }
9141
9148
  const ZZ = kr(
@@ -12767,40 +12774,55 @@ function Ibe({
12767
12774
  items: e,
12768
12775
  className: r,
12769
12776
  contentClassName: n,
12770
- align: i = "center"
12777
+ side: i = "bottom",
12778
+ align: o = "center",
12779
+ itemClassName: a
12771
12780
  }) {
12772
12781
  return /* @__PURE__ */ M(_v, { children: [
12773
- /* @__PURE__ */ y(Rv, { asChild: !0, children: t }),
12774
- /* @__PURE__ */ y(Oh, { align: i === "left" ? "end" : i === "right" ? "start" : i, className: D("w-56", n), children: e.map((a, s) => /* @__PURE__ */ M(
12775
- gl,
12782
+ /* @__PURE__ */ y(Rv, { asChild: !0, className: r, children: t }),
12783
+ /* @__PURE__ */ y(
12784
+ Oh,
12776
12785
  {
12777
- disabled: a.disabled,
12778
- onClick: a.onClick,
12779
- "data-state": a.active ? "active" : void 0,
12780
- className: "gap-3 px-3 py-2",
12781
- children: [
12782
- a.icon && /* @__PURE__ */ y(
12783
- st,
12784
- {
12785
- name: a.icon,
12786
- size: "sm",
12787
- className: "text-sub group-focus:text-sub group-data-[state=active]:text-strong group-data-[state=active]:fill-strong "
12788
- }
12789
- ),
12790
- /* @__PURE__ */ y(
12791
- We,
12792
- {
12793
- size: "small",
12794
- fontFamily: "primary",
12795
- fontWeight: "medium",
12796
- className: "text-sub group-focus:text-sub group-data-[state=active]:text-strong cursor-pointer",
12797
- children: a.label
12798
- }
12799
- )
12800
- ]
12801
- },
12802
- s
12803
- )) })
12786
+ align: o === "left" ? "end" : o === "right" ? "start" : o,
12787
+ side: i,
12788
+ className: D("w-56", n),
12789
+ children: e.map((l, c) => /* @__PURE__ */ M(
12790
+ gl,
12791
+ {
12792
+ disabled: l.disabled,
12793
+ onClick: l.onClick,
12794
+ "data-state": l.active ? "active" : void 0,
12795
+ className: a,
12796
+ children: [
12797
+ l.icon && (m.isValidElement(l.icon) ? /* @__PURE__ */ y("span", { className: "shrink-0 inline-flex text-sub group-focus:text-sub group-data-[state=active]:text-strong group-data-[state=active]:fill-strong [&>svg]:size-4 [&>svg]:shrink-0", children: m.cloneElement(l.icon, {
12798
+ className: D(
12799
+ "size-4 shrink-0 text-sub group-focus:text-sub group-data-[state=active]:text-strong group-data-[state=active]:fill-strong",
12800
+ l.icon.props?.className
12801
+ )
12802
+ }) }) : /* @__PURE__ */ y(
12803
+ st,
12804
+ {
12805
+ name: l.icon,
12806
+ size: "sm",
12807
+ className: "text-sub group-focus:text-sub group-data-[state=active]:text-strong group-data-[state=active]:fill-strong "
12808
+ }
12809
+ )),
12810
+ /* @__PURE__ */ y(
12811
+ We,
12812
+ {
12813
+ size: "small",
12814
+ fontFamily: "primary",
12815
+ fontWeight: "medium",
12816
+ className: "text-sub group-focus:text-sub group-data-[state=active]:text-strong cursor-pointer",
12817
+ children: l.label
12818
+ }
12819
+ )
12820
+ ]
12821
+ },
12822
+ c
12823
+ ))
12824
+ }
12825
+ )
12804
12826
  ] });
12805
12827
  }
12806
12828
  const jB = kr(