@lax-wp/design-system 0.11.5 → 0.11.6

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
@@ -34627,55 +34627,83 @@ const wj = ({
34627
34627
  mainClass: g,
34628
34628
  id: y,
34629
34629
  childrenClass: x,
34630
- ...S
34631
- }) => /* @__PURE__ */ C("div", { id: y, className: `${!d && "mb-4"} ${n ? "pb-1" : ""} ${g || ""}`, style: h?.style, ...S, children: [
34632
- /* @__PURE__ */ C(
34633
- "div",
34634
- {
34635
- className: q(
34636
- "flex items-center justify-between cursor-pointer border border-neutral-200 dark:border-none bg-neutral-100 dark:bg-black-600 px-3 py-1 rounded-lg",
34637
- p
34638
- ),
34639
- onClick: r,
34640
- ...S,
34641
- children: [
34642
- /* @__PURE__ */ C("div", { onClick: (E) => s ? s(E) : null, className: `${f && "flex"} w-full`, children: [
34643
- f && !o && /* @__PURE__ */ l(
34644
- "button",
34645
- {
34646
- id: "btn-accordion-outline-drag-indicator",
34647
- className: "flex items-center justify-center w-icon h-icon hover:transform hover:scale-125 transition-all duration-200 ease-in-out",
34648
- ...h?.attributes,
34649
- ...h?.listeners,
34650
- children: /* @__PURE__ */ l(vb, { height: "10px", width: "7px", color: "#98A2B3" })
34651
- }
34652
- ),
34653
- /* @__PURE__ */ C("div", { className: "flex items-center gap-1 w-full", children: [
34654
- u && /* @__PURE__ */ l(
34655
- EW,
34630
+ withAnimation: S = !1,
34631
+ ...E
34632
+ }) => {
34633
+ const T = q(!d && "p-4", x);
34634
+ return /* @__PURE__ */ C("div", { id: y, className: `${!d && "mb-4"} ${n ? "pb-1" : ""} ${g || ""}`, style: h?.style, ...E, children: [
34635
+ /* @__PURE__ */ C(
34636
+ "div",
34637
+ {
34638
+ className: q(
34639
+ "flex items-center justify-between cursor-pointer border border-neutral-200 dark:border-none bg-neutral-100 dark:bg-black-600 px-3 py-1 rounded-lg",
34640
+ p
34641
+ ),
34642
+ onClick: r,
34643
+ ...E,
34644
+ children: [
34645
+ /* @__PURE__ */ C("div", { onClick: (k) => s ? s(k) : null, className: `${f && "flex"} w-full`, children: [
34646
+ f && !o && /* @__PURE__ */ l(
34647
+ "button",
34656
34648
  {
34657
- isChecked: A,
34658
- onSelect: (E) => {
34659
- E.stopPropagation(), u();
34660
- },
34661
- className: "h-4 w-4 accent-[#366FE3]"
34649
+ id: "btn-accordion-outline-drag-indicator",
34650
+ className: "flex items-center justify-center w-icon h-icon hover:transform hover:scale-125 transition-all duration-200 ease-in-out",
34651
+ ...h?.attributes,
34652
+ ...h?.listeners,
34653
+ children: /* @__PURE__ */ l(vb, { height: "10px", width: "7px", color: "#98A2B3" })
34662
34654
  }
34663
34655
  ),
34664
- /* @__PURE__ */ C("div", { className: "flex gap-2 items-center", children: [
34665
- m,
34666
- /* @__PURE__ */ l(oe, { size: "small", appearance: "body", variant: "medium", className: "whitespace-nowrap", children: e })
34667
- ] }),
34668
- /* @__PURE__ */ l(oe, { size: "extra-small", appearance: "title", variant: "medium", className: "ml-1", children: c }),
34669
- v,
34670
- /* @__PURE__ */ l("span", { children: a === i && !o && /* @__PURE__ */ l(pr, { variant: "ghost", children: /* @__PURE__ */ l(Q_, { size: 16, className: "ml-[8px]" }) }) })
34671
- ] })
34672
- ] }),
34673
- /* @__PURE__ */ l(_N, { sx: { fontSize: 18 }, className: q("text-neutral-600 dark:text-neutral-400", n ? "rotate-90" : "-rotate-90") })
34674
- ]
34675
- }
34676
- ),
34677
- n ? /* @__PURE__ */ l(at.div, { className: ` ${!d && "p-4"} ${x}`, children: t }) : null
34678
- ] });
34656
+ /* @__PURE__ */ C("div", { className: "flex items-center gap-1 w-full", children: [
34657
+ u && /* @__PURE__ */ l(
34658
+ EW,
34659
+ {
34660
+ isChecked: A,
34661
+ onSelect: (k) => {
34662
+ k.stopPropagation(), u();
34663
+ },
34664
+ className: "h-4 w-4 accent-[#366FE3]"
34665
+ }
34666
+ ),
34667
+ /* @__PURE__ */ C("div", { className: "flex gap-2 items-center", children: [
34668
+ m,
34669
+ /* @__PURE__ */ l(oe, { size: "small", appearance: "body", variant: "medium", className: "whitespace-nowrap", children: e })
34670
+ ] }),
34671
+ /* @__PURE__ */ l(oe, { size: "extra-small", appearance: "title", variant: "medium", className: "ml-1", children: c }),
34672
+ v,
34673
+ /* @__PURE__ */ l("span", { children: a === i && !o && /* @__PURE__ */ l(pr, { variant: "ghost", children: /* @__PURE__ */ l(Q_, { size: 16, className: "ml-[8px]" }) }) })
34674
+ ] })
34675
+ ] }),
34676
+ /* @__PURE__ */ l(
34677
+ _N,
34678
+ {
34679
+ sx: { fontSize: 18 },
34680
+ className: q(
34681
+ "text-neutral-600 dark:text-neutral-400",
34682
+ n ? "rotate-90" : "-rotate-90",
34683
+ S && "transition-transform duration-300 ease-in-out"
34684
+ )
34685
+ }
34686
+ )
34687
+ ]
34688
+ }
34689
+ ),
34690
+ S ? /* @__PURE__ */ l(
34691
+ at.div,
34692
+ {
34693
+ initial: !1,
34694
+ animate: {
34695
+ height: n ? "auto" : 0
34696
+ },
34697
+ transition: {
34698
+ duration: 0.3,
34699
+ ease: [0.4, 0, 0.2, 1]
34700
+ },
34701
+ style: { overflow: "hidden" },
34702
+ children: /* @__PURE__ */ l("div", { className: T, children: t })
34703
+ }
34704
+ ) : n ? /* @__PURE__ */ l("div", { className: T, children: t }) : null
34705
+ ] });
34706
+ };
34679
34707
  wj.displayName = "Accordion";
34680
34708
  const Oj = ({
34681
34709
  steps: t,
@@ -36549,7 +36577,7 @@ const iG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
36549
36577
  "div",
36550
36578
  {
36551
36579
  ref: j,
36552
- className: "bg-white dark:bg-black-800 shadow rounded-lg border border-neutral-200 dark:border-black-700",
36580
+ className: "bg-white dark:bg-black-800 shadow rounded-lg border border-neutral-200 dark:border-black-700 min-w-[280px]",
36553
36581
  onMouseEnter: () => {
36554
36582
  B.current && clearTimeout(B.current);
36555
36583
  },