mcr-design-systems 1.0.151 → 1.0.152
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.
|
@@ -24,18 +24,18 @@ function me({
|
|
|
24
24
|
selectedValues: i = [],
|
|
25
25
|
onSelectionChange: C,
|
|
26
26
|
multiSelect: A = !0,
|
|
27
|
-
withDropdown:
|
|
27
|
+
withDropdown: d = !1,
|
|
28
28
|
selectionMode: P = "default",
|
|
29
29
|
search: L = !0,
|
|
30
30
|
shouldShowSeparator: T,
|
|
31
31
|
showClearButton: R = !0,
|
|
32
|
-
showCloseButton:
|
|
32
|
+
showCloseButton: I = !0,
|
|
33
33
|
alignDropdown: q = "end",
|
|
34
34
|
isOpen: E,
|
|
35
35
|
...N
|
|
36
36
|
}) {
|
|
37
37
|
const [S, g] = w(!1), u = E !== void 0 ? E : S, G = E !== void 0 ? () => {
|
|
38
|
-
} : g, r = M && !!X, a = $(() => k !== void 0 ? k : i?.length || 0, [k, i]), x = $(() => j === !0 ? !0 :
|
|
38
|
+
} : g, r = M && !!X, a = $(() => k !== void 0 ? k : i?.length || 0, [k, i]), x = $(() => j === !0 ? !0 : d ? a > 0 : j, [j, d, a]), o = (() => {
|
|
39
39
|
switch (n) {
|
|
40
40
|
case "xx-small":
|
|
41
41
|
return 16;
|
|
@@ -74,8 +74,8 @@ function me({
|
|
|
74
74
|
className: "animate-spin",
|
|
75
75
|
"aria-hidden": "true"
|
|
76
76
|
}
|
|
77
|
-
) : null, z = U && !e ? /* @__PURE__ */ t(b, { name: U, size: o, "aria-hidden": "true" }) : null, V = W && !e && !x && !
|
|
78
|
-
return
|
|
77
|
+
) : null, z = U && !e ? /* @__PURE__ */ t(b, { name: U, size: o, "aria-hidden": "true" }) : null, V = W && !e && !x && !d ? /* @__PURE__ */ t(b, { name: W, size: o, "aria-hidden": "true" }) : null, J = d && !e ? /* @__PURE__ */ t(b, { name: "chevron-down", size: o, "aria-hidden": "true" }) : null, _ = r && !e ? /* @__PURE__ */ t(b, { name: X, size: o, "aria-hidden": "true" }) : null;
|
|
78
|
+
return d && !r ? x && I ? /* @__PURE__ */ l("div", { className: "inline-flex items-center", children: [
|
|
79
79
|
/* @__PURE__ */ t(
|
|
80
80
|
Q,
|
|
81
81
|
{
|
|
@@ -119,7 +119,7 @@ function me({
|
|
|
119
119
|
size: "sm",
|
|
120
120
|
emphasize: !0,
|
|
121
121
|
disabled: c,
|
|
122
|
-
className: "ml-xs-3 text-fg-selected-
|
|
122
|
+
className: "ml-xs-3 text-fg-selected-bold",
|
|
123
123
|
children: a
|
|
124
124
|
}
|
|
125
125
|
)
|
|
@@ -148,7 +148,7 @@ function me({
|
|
|
148
148
|
children: /* @__PURE__ */ t(b, { name: "x-close", size: o, "aria-hidden": "true" })
|
|
149
149
|
}
|
|
150
150
|
)
|
|
151
|
-
] }) : x && !
|
|
151
|
+
] }) : x && !I ? /* @__PURE__ */ t(
|
|
152
152
|
Q,
|
|
153
153
|
{
|
|
154
154
|
items: F,
|
|
@@ -186,14 +186,14 @@ function me({
|
|
|
186
186
|
e && v,
|
|
187
187
|
!e && z,
|
|
188
188
|
!e && O,
|
|
189
|
-
|
|
189
|
+
I && a > 0 && /* @__PURE__ */ t(
|
|
190
190
|
K,
|
|
191
191
|
{
|
|
192
192
|
variant: "boldest",
|
|
193
193
|
size: "sm",
|
|
194
194
|
emphasize: !0,
|
|
195
195
|
disabled: c,
|
|
196
|
-
className: "ml-xs-3 text-fg-selected-
|
|
196
|
+
className: "ml-xs-3 text-fg-selected-bold",
|
|
197
197
|
children: a
|
|
198
198
|
}
|
|
199
199
|
),
|
|
@@ -247,7 +247,7 @@ function me({
|
|
|
247
247
|
}
|
|
248
248
|
)
|
|
249
249
|
}
|
|
250
|
-
) : x && !r &&
|
|
250
|
+
) : x && !r && I ? /* @__PURE__ */ l(
|
|
251
251
|
"div",
|
|
252
252
|
{
|
|
253
253
|
className: m("inline-flex items-center", p),
|
|
@@ -272,7 +272,7 @@ function me({
|
|
|
272
272
|
e && v,
|
|
273
273
|
!e && z,
|
|
274
274
|
!e && O,
|
|
275
|
-
|
|
275
|
+
I && a > 0 && /* @__PURE__ */ t(
|
|
276
276
|
K,
|
|
277
277
|
{
|
|
278
278
|
variant: "boldest",
|