@sellgar/kit 0.0.91 → 0.0.92
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.js
CHANGED
|
@@ -12514,38 +12514,39 @@ const ad = O.createContext(null), cd = () => {
|
|
|
12514
12514
|
leadIcon: i,
|
|
12515
12515
|
tailIcon: r,
|
|
12516
12516
|
badge: l,
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12517
|
+
isOpen: s,
|
|
12518
|
+
isFocused: o,
|
|
12519
|
+
isClearable: a,
|
|
12520
|
+
disabled: c,
|
|
12521
|
+
onClear: f
|
|
12521
12522
|
}) => {
|
|
12522
|
-
const
|
|
12523
|
+
const d = O.useMemo(
|
|
12523
12524
|
() => ue(
|
|
12524
12525
|
yt.wrapper,
|
|
12525
12526
|
{
|
|
12526
|
-
[yt.focused]:
|
|
12527
|
+
[yt.focused]: o
|
|
12527
12528
|
},
|
|
12528
12529
|
{
|
|
12529
12530
|
[yt["size--medium"]]: t === "md",
|
|
12530
12531
|
[yt["size--extra-small"]]: t === "xs"
|
|
12531
12532
|
},
|
|
12532
12533
|
{
|
|
12533
|
-
[yt.disabled]:
|
|
12534
|
+
[yt.disabled]: c
|
|
12534
12535
|
},
|
|
12535
12536
|
{
|
|
12536
12537
|
[yt.destructive]: n === "destructive"
|
|
12537
12538
|
}
|
|
12538
12539
|
),
|
|
12539
|
-
[
|
|
12540
|
-
),
|
|
12541
|
-
|
|
12540
|
+
[o, t, n, c]
|
|
12541
|
+
), u = (m) => {
|
|
12542
|
+
m.preventDefault(), m.stopPropagation(), f && f();
|
|
12542
12543
|
};
|
|
12543
|
-
return /* @__PURE__ */ le("div", { className:
|
|
12544
|
+
return /* @__PURE__ */ le("div", { className: d, children: [
|
|
12544
12545
|
i && /* @__PURE__ */ h("div", { className: yt["lead-icon"], children: i }),
|
|
12545
12546
|
/* @__PURE__ */ h("div", { className: yt.content, children: e }),
|
|
12546
|
-
l && /* @__PURE__ */ h("div", { className: yt.badge, children: /* @__PURE__ */ h(vl, { size: "sm", color: "gray", label: l, disabled:
|
|
12547
|
+
l && /* @__PURE__ */ h("div", { className: yt.badge, children: /* @__PURE__ */ h(vl, { size: "sm", color: "gray", label: l, disabled: c }) }),
|
|
12547
12548
|
r && /* @__PURE__ */ h("div", { className: yt["tail-icon"], children: r }),
|
|
12548
|
-
|
|
12549
|
+
a && /* @__PURE__ */ h("div", { className: yt.clearable, onClick: u, children: /* @__PURE__ */ h(Se, { icon: "close-line" }) }),
|
|
12549
12550
|
/* @__PURE__ */ h("div", { className: yt.arrow, children: /* @__PURE__ */ h(Se, { icon: s ? "arrow-drop-up-line" : "arrow-drop-down-line" }) })
|
|
12550
12551
|
] });
|
|
12551
12552
|
}, Tc = (e, t, n) => e.findIndex((i) => i[t] === n), p1 = ({
|
|
@@ -12602,7 +12603,8 @@ const ad = O.createContext(null), cd = () => {
|
|
|
12602
12603
|
{
|
|
12603
12604
|
...m,
|
|
12604
12605
|
disabled: d,
|
|
12605
|
-
isFocused: _
|
|
12606
|
+
isFocused: _,
|
|
12607
|
+
isOpen: v,
|
|
12606
12608
|
isClearable: !!b && u,
|
|
12607
12609
|
onClear: () => {
|
|
12608
12610
|
d || (k(null), W.setSelectedIndex(null));
|
package/package.json
CHANGED