@lax-wp/design-system 0.5.22 → 0.5.24
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 +8 -6
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -640,22 +640,24 @@ const me = {
|
|
|
640
640
|
// Custom classes
|
|
641
641
|
r
|
|
642
642
|
),
|
|
643
|
+
style: { maxWidth: "100%" },
|
|
643
644
|
onMouseDown: o,
|
|
644
645
|
onClick: a,
|
|
645
646
|
onKeyDown: m,
|
|
646
647
|
"aria-label": p || `Tag: ${A}`,
|
|
647
648
|
role: "button",
|
|
648
649
|
tabIndex: a || f ? 0 : void 0,
|
|
649
|
-
children: /* @__PURE__ */ w("div", { className: "flex items-center gap-0.5
|
|
650
|
+
children: /* @__PURE__ */ w("div", { className: "flex items-center gap-0.5 min-w-0 overflow-hidden", style: { maxWidth: "100%" }, children: [
|
|
650
651
|
s,
|
|
651
652
|
i ? /* @__PURE__ */ n(
|
|
652
653
|
"p",
|
|
653
654
|
{
|
|
654
655
|
title: A,
|
|
655
|
-
className: `text-${t} ${a || f ? "cursor-pointer" : ""}`,
|
|
656
|
+
className: `text-${t} ${a || f ? "cursor-pointer" : ""} overflow-hidden whitespace-nowrap text-ellipsis`,
|
|
657
|
+
style: { maxWidth: "100%" },
|
|
656
658
|
children: A.length > i ? `${A.slice(0, i)}...` : A
|
|
657
659
|
}
|
|
658
|
-
) : /* @__PURE__ */ n("p", { className: `text-${t}`, children: A }),
|
|
660
|
+
) : /* @__PURE__ */ n("p", { className: `text-${t} overflow-hidden whitespace-nowrap text-ellipsis`, style: { maxWidth: "100%" }, children: A }),
|
|
659
661
|
f && /* @__PURE__ */ n(
|
|
660
662
|
"input",
|
|
661
663
|
{
|
|
@@ -8589,7 +8591,7 @@ const Z1 = xA(
|
|
|
8589
8591
|
disabled: i,
|
|
8590
8592
|
min: s,
|
|
8591
8593
|
max: l,
|
|
8592
|
-
className: `border ${a ? "border-red-300" : z && L?.color ? `border-${L.color}-300` : "border-gray-300"} ${u} h-[32px] text-gray-900 dark:bg-black-600 dark:text-neutral-200 text-sm rounded-lg focus:ring-
|
|
8594
|
+
className: `border ${a ? "border-red-300" : z && L?.color ? `border-${L.color}-300` : "border-gray-300"} ${u} h-[32px] text-gray-900 dark:bg-black-600 dark:text-neutral-200 text-sm rounded-lg focus:ring-primary-500 focus:border-primary-500 block w-full p-2.5 font-inter font-medium
|
|
8593
8595
|
disabled:bg-neutral-50 dark:disabled:!bg-black-800 dark:disabled:placeholder:!text-black-400
|
|
8594
8596
|
${z && L?.color && `bg-${L.color}-50`}
|
|
8595
8597
|
${p || ""}
|
|
@@ -15318,7 +15320,7 @@ const bo = xA(
|
|
|
15318
15320
|
variant: "medium",
|
|
15319
15321
|
className: `flex items-center ${o()} cursor-pointer min-w-0 ${t ? "" : e === "secondary" ? "hover:bg-neutral-200 dark:hover:bg-neutral-600" : "hover:bg-primary-400 dark:hover:bg-neutral-600"} px-1 py-0.5 rounded transition-colors duration-200`,
|
|
15320
15322
|
appearance: "custom",
|
|
15321
|
-
onClick: i,
|
|
15323
|
+
onClick: r ? i : void 0,
|
|
15322
15324
|
children: /* @__PURE__ */ n("span", { className: "truncate min-w-0 block", children: A?.title })
|
|
15323
15325
|
}
|
|
15324
15326
|
) });
|
|
@@ -15397,7 +15399,7 @@ const Vc = ({
|
|
|
15397
15399
|
}
|
|
15398
15400
|
);
|
|
15399
15401
|
};
|
|
15400
|
-
return /* @__PURE__ */ n("div", { className: "flex items-center justify-start min-w-0 w-full overflow-hidden animate-fade-in
|
|
15402
|
+
return /* @__PURE__ */ n("div", { className: "flex items-center justify-start min-w-0 w-full overflow-hidden animate-fade-in pr-2", children: A.map((l, s) => /* @__PURE__ */ w(
|
|
15401
15403
|
"div",
|
|
15402
15404
|
{
|
|
15403
15405
|
className: "flex items-center min-w-0 animate-slide-in-left",
|