@pibit.ai/cure-design-system 0.6.28 → 0.6.29
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.
|
@@ -14,9 +14,9 @@ function w(r) {
|
|
|
14
14
|
}
|
|
15
15
|
function _({
|
|
16
16
|
title: r,
|
|
17
|
-
items:
|
|
17
|
+
items: c,
|
|
18
18
|
selectedValues: i,
|
|
19
|
-
selectAll:
|
|
19
|
+
selectAll: o,
|
|
20
20
|
search: l,
|
|
21
21
|
placeholder: f = "Search",
|
|
22
22
|
showAvatar: m,
|
|
@@ -27,7 +27,7 @@ function _({
|
|
|
27
27
|
onToggleSelectAll: s,
|
|
28
28
|
onToggleItem: v
|
|
29
29
|
}) {
|
|
30
|
-
const b =
|
|
30
|
+
const b = c.filter(
|
|
31
31
|
(e) => t(e).toLowerCase().includes(l.toLowerCase())
|
|
32
32
|
);
|
|
33
33
|
return /* @__PURE__ */ n("div", { children: [
|
|
@@ -39,7 +39,7 @@ function _({
|
|
|
39
39
|
] })
|
|
40
40
|
] }),
|
|
41
41
|
/* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
42
|
-
(
|
|
42
|
+
(c.length > 10 || l) && /* @__PURE__ */ a(
|
|
43
43
|
N,
|
|
44
44
|
{
|
|
45
45
|
className: "bg-secondary_subtle ring-0 rounded-md",
|
|
@@ -51,12 +51,12 @@ function _({
|
|
|
51
51
|
),
|
|
52
52
|
/* @__PURE__ */ n("div", { className: "max-h-48 overflow-y-auto", children: [
|
|
53
53
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-3 p-2", children: [
|
|
54
|
-
|
|
54
|
+
o ? /* @__PURE__ */ a(
|
|
55
55
|
u,
|
|
56
56
|
{
|
|
57
57
|
className: "cursor-pointer",
|
|
58
58
|
"aria-label": "Select all",
|
|
59
|
-
isSelected:
|
|
59
|
+
isSelected: o,
|
|
60
60
|
onChange: s
|
|
61
61
|
}
|
|
62
62
|
) : /* @__PURE__ */ a(
|
|
@@ -70,7 +70,7 @@ function _({
|
|
|
70
70
|
onKeyDown: (e) => {
|
|
71
71
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), s());
|
|
72
72
|
},
|
|
73
|
-
className: "h-4 w-4 flex items-center justify-center overflow-hidden cursor-pointer
|
|
73
|
+
className: "h-4 w-4 flex items-center justify-center overflow-hidden cursor-pointer outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-ring",
|
|
74
74
|
children: i.length > 0 ? /* @__PURE__ */ a(y, { size: 18, className: "text-utility-brand-600" }) : /* @__PURE__ */ a(g, { isSelected: !1 })
|
|
75
75
|
}
|
|
76
76
|
),
|