asma-ui-core 3.74.1 → 3.74.2
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/asma-ui-core.css +1 -1
- package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +26 -26
- package/dist/components/inputs/select/StyledSelect.js +24 -24
- package/dist/components/inputs/select/StyledSelectItem.js +12 -12
- package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +2 -2
- package/package.json +1 -1
|
@@ -6,20 +6,20 @@ import { StyledChip as B } from "../../../data-display/chip/StyledChip.js";
|
|
|
6
6
|
import { StyledCheckbox as te } from "../../checkbox/base-ui/StyledCheckbox.js";
|
|
7
7
|
import { StyledTooltip as L } from "../../../data-display/tooltip/StyledTooltip.js";
|
|
8
8
|
import { StyledInputField as le } from "../../input-field/StyledInputField.js";
|
|
9
|
-
import { StyledSelectAutocomplete as
|
|
10
|
-
import { DynamicInteractiveChipGroup as
|
|
9
|
+
import { StyledSelectAutocomplete as ae } from "../../select-autocomplete/StyledSelectAutocomplete.js";
|
|
10
|
+
import { DynamicInteractiveChipGroup as re } from "./DynamicInteractiveChipGroup.js";
|
|
11
11
|
import { createElement as q, forwardRef as oe, useCallback as f, useState as ne } from "react";
|
|
12
12
|
import { Fragment as E, jsx as l, jsxs as O } from "react/jsx-runtime";
|
|
13
13
|
var ye = oe((k, F) => {
|
|
14
|
-
const [z, S] = ne(!1), { options: h, dataTest: g, value: x, readOnly: u, multiple: o, required: H, onChange: y, size: K, title: v, noOptionsText: _, placeholder: R, disabled: I, helperText: G, disableHelperText: A, error: N, valueKey: P = "value", labelKey: W = "label", renderLabel: i, getOptionTooltip: V, startAdornment: J, autocompleteProps: n, loading: m, maxTags: M, onFocus: Q, onBlur: U } = k, w = h.length < 11, s = (e) => typeof e == "object" ? e?.[W]?.toString() ?? "" : e?.toString() ?? "",
|
|
15
|
-
const t =
|
|
14
|
+
const [z, S] = ne(!1), { options: h, dataTest: g, value: x, readOnly: u, multiple: o, required: H, onChange: y, size: K, title: v, noOptionsText: _, placeholder: R, disabled: I, helperText: G, disableHelperText: A, error: N, valueKey: P = "value", labelKey: W = "label", renderLabel: i, getOptionTooltip: V, startAdornment: J, autocompleteProps: n, loading: m, maxTags: M, onFocus: Q, onBlur: U } = k, w = h.length < 11, s = (e) => typeof e == "object" ? e?.[W]?.toString() ?? "" : e?.toString() ?? "", p = f((e) => typeof e == "object" ? e?.[P] : e, [P]), D = f((e, t) => p(e) === p(t), [p]), C = (e) => {
|
|
15
|
+
const t = p(e);
|
|
16
16
|
return t == null ? "" : typeof t == "string" || typeof t == "number" || typeof t == "boolean" ? String(t) : e == null ? "" : s(e);
|
|
17
17
|
}, $ = f((e) => {
|
|
18
18
|
S(!0), n?.onOpen?.(e);
|
|
19
19
|
}, [n]), X = f((e, t) => {
|
|
20
20
|
S(!1), n?.onClose?.(e, t);
|
|
21
21
|
}, [n]);
|
|
22
|
-
if (o && u) return /* @__PURE__ */ l(
|
|
22
|
+
if (o && u) return /* @__PURE__ */ l(re, { ...k });
|
|
23
23
|
const T = v ? `${g}-title` : void 0;
|
|
24
24
|
return /* @__PURE__ */ O("div", {
|
|
25
25
|
className: "flex w-full flex-col gap-y-1",
|
|
@@ -27,7 +27,7 @@ var ye = oe((k, F) => {
|
|
|
27
27
|
id: T,
|
|
28
28
|
className: "text-base font-semibold text-delta-800",
|
|
29
29
|
children: v
|
|
30
|
-
}), /* @__PURE__ */ l(
|
|
30
|
+
}), /* @__PURE__ */ l(ae, {
|
|
31
31
|
open: z,
|
|
32
32
|
onOpen: $,
|
|
33
33
|
onClose: X,
|
|
@@ -53,21 +53,21 @@ var ye = oe((k, F) => {
|
|
|
53
53
|
multiple: o,
|
|
54
54
|
renderValue: o ? (e) => {
|
|
55
55
|
if (!Array.isArray(e)) return null;
|
|
56
|
-
const t = e, d = M ?? h.length,
|
|
57
|
-
return [...
|
|
58
|
-
dataTest: `${C(
|
|
56
|
+
const t = e, d = M ?? h.length, a = t.slice(0, d), c = t.length - d;
|
|
57
|
+
return [...a.map((r) => /* @__PURE__ */ l(B, {
|
|
58
|
+
dataTest: `${C(r)}-chip`,
|
|
59
59
|
readOnly: u,
|
|
60
60
|
variant: "outlined",
|
|
61
|
-
label: i ? i(
|
|
61
|
+
label: i ? i(r) : s(r),
|
|
62
62
|
classes: {
|
|
63
63
|
root: "h-fit w-fit min-h-[32px]",
|
|
64
64
|
label: "block whitespace-normal"
|
|
65
65
|
},
|
|
66
66
|
disabled: !!I || !!m,
|
|
67
67
|
onDelete: () => {
|
|
68
|
-
Array.isArray(x) && y(x.filter((
|
|
68
|
+
Array.isArray(x) && y(x.filter((b) => !D(b, r)));
|
|
69
69
|
}
|
|
70
|
-
}, C(
|
|
70
|
+
}, C(r))), c > 0 ? /* @__PURE__ */ l(B, {
|
|
71
71
|
dataTest: "remaining-count-tag-chip",
|
|
72
72
|
label: `+${c}`,
|
|
73
73
|
variant: "outlined",
|
|
@@ -82,48 +82,48 @@ var ye = oe((k, F) => {
|
|
|
82
82
|
width: 24
|
|
83
83
|
}) : void 0,
|
|
84
84
|
renderOption: (e, t, d) => {
|
|
85
|
-
const
|
|
85
|
+
const a = typeof t == "object" ? !!t?.disabled : !1, c = V ? V(t) : null;
|
|
86
86
|
if (o) {
|
|
87
|
-
const
|
|
87
|
+
const b = d.selected;
|
|
88
88
|
return /* @__PURE__ */ q("li", {
|
|
89
89
|
...e,
|
|
90
90
|
role: "option",
|
|
91
|
-
"aria-selected":
|
|
91
|
+
"aria-selected": b,
|
|
92
92
|
key: e.id,
|
|
93
|
-
onClick:
|
|
94
|
-
className: j("flex min-h-10 cursor-pointer items-center gap-x-1 bg-white px-2 text-base aria-selected:bg-gama-50 hover:bg-gama-50",
|
|
95
|
-
"aria-disabled":
|
|
93
|
+
onClick: a ? void 0 : e.onClick,
|
|
94
|
+
className: j("flex min-h-10 cursor-pointer items-center gap-x-1 bg-white px-2 text-base aria-selected:bg-gama-50 hover:bg-gama-50", a && "cursor-not-allowed bg-delta-50 aria-selected:!bg-delta-50 hover:!bg-delta-50 [&_*]:cursor-not-allowed"),
|
|
95
|
+
"aria-disabled": a
|
|
96
96
|
}, /* @__PURE__ */ l(L, {
|
|
97
97
|
arrow: !0,
|
|
98
98
|
title: c,
|
|
99
99
|
children: /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ l(te, {
|
|
100
|
-
disabled:
|
|
100
|
+
disabled: a,
|
|
101
101
|
dataTest: `${C(t)}-checkbox`,
|
|
102
102
|
size: "small",
|
|
103
103
|
decorative: !0,
|
|
104
104
|
className: "min-w-[36px]",
|
|
105
|
-
checked:
|
|
105
|
+
checked: b
|
|
106
106
|
}), i ? i(t) : /* @__PURE__ */ l("span", {
|
|
107
107
|
className: "line-clamp-2 h-fit min-w-0 flex-1 break-words text-base text-delta-800",
|
|
108
108
|
children: s(t)
|
|
109
109
|
})] })
|
|
110
110
|
}));
|
|
111
111
|
}
|
|
112
|
-
const
|
|
112
|
+
const r = d.selected;
|
|
113
113
|
return /* @__PURE__ */ q("li", {
|
|
114
114
|
...e,
|
|
115
115
|
role: "option",
|
|
116
|
-
"aria-selected":
|
|
116
|
+
"aria-selected": r,
|
|
117
117
|
key: e.id,
|
|
118
|
-
className: j("flex min-h-10 cursor-pointer items-center gap-x-1 px-2 text-base aria-selected:bg-gama-50 hover:bg-gama-50",
|
|
119
|
-
onClick:
|
|
120
|
-
"aria-disabled":
|
|
118
|
+
className: j("flex min-h-10 cursor-pointer items-center gap-x-1 px-2 text-base aria-selected:bg-gama-50 hover:bg-gama-50", a && "cursor-not-allowed bg-delta-50 aria-selected:!bg-delta-50 hover:!bg-delta-50 [&_*]:cursor-not-allowed"),
|
|
119
|
+
onClick: a ? void 0 : e.onClick,
|
|
120
|
+
"aria-disabled": a
|
|
121
121
|
}, /* @__PURE__ */ l(L, {
|
|
122
122
|
arrow: !0,
|
|
123
123
|
title: c,
|
|
124
124
|
children: /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ l("span", {
|
|
125
125
|
className: "w-5 min-w-5",
|
|
126
|
-
children:
|
|
126
|
+
children: r && /* @__PURE__ */ l(Z, {
|
|
127
127
|
className: "size-5 min-h-5 min-w-5 text-gama-500",
|
|
128
128
|
height: 20,
|
|
129
129
|
width: 20
|
|
@@ -11,12 +11,12 @@ import { useFormControlContext as je } from "../../miscellaneous/FormControlCont
|
|
|
11
11
|
import { Children as N, cloneElement as Ke, isValidElement as P, useEffect as _, useId as Me, useMemo as Ye, useRef as $, useState as q } from "react";
|
|
12
12
|
import { jsx as n, jsxs as B } from "react/jsx-runtime";
|
|
13
13
|
import { FloatingPortal as ze, autoUpdate as Oe, flip as We, offset as $e, shift as Ge, size as Je, useClick as Qe, useDismiss as Xe, useFloating as Ze, useInteractions as et, useMergeRefs as G, useRole as tt } from "@floating-ui/react";
|
|
14
|
-
var gt = ({ dataTest: H, value: I, defaultValue: J, onChange: L, error: Q, errorText: X, helperText: T, reserveHelperText: Z, expandHelperText: ee = !0, allowClear: U, disabled: te, readOnly: i, name: m, placeholder: w, displayEmpty: A, multiple:
|
|
15
|
-
const c = je(), j = `${H}-listbox`,
|
|
16
|
-
if (
|
|
14
|
+
var gt = ({ dataTest: H, value: I, defaultValue: J, onChange: L, error: Q, errorText: X, helperText: T, reserveHelperText: Z, expandHelperText: ee = !0, allowClear: U, disabled: te, readOnly: i, name: m, placeholder: w, displayEmpty: A, multiple: d, renderValue: V, fullWidth: re, className: oe, style: se, sx: ne, variant: le, children: v, MenuProps: ae, onFocus: ie, onBlur: ce, labelId: g }) => {
|
|
15
|
+
const c = je(), j = `${H}-listbox`, b = le === "standard", u = Q ?? c?.error ?? !1, s = te ?? c?.disabled ?? !1, K = u ? X ?? T : T, { show: R, role: de } = Ue("StyledSelect", u, K, Z, i), M = Me(), { fieldRef: ue, rowRef: fe, rowStyle: pe } = Te(ee && R), [o, y] = q(!1), [h, S] = q(!1), [me, Y] = q(J), k = I !== void 0, r = k ? I : me, l = Array.isArray(r) ? r.length > 0 : r !== void 0 && r !== "" && r !== null, a = $(null), z = $(null), ge = (e) => {
|
|
16
|
+
if (y(e), e) return;
|
|
17
17
|
const t = document.activeElement;
|
|
18
18
|
t && t !== document.body && !a.current?.contains(t) || z.current?.focus();
|
|
19
|
-
}, { refs: f, floatingStyles:
|
|
19
|
+
}, { refs: f, floatingStyles: be, context: D } = Ze({
|
|
20
20
|
open: o,
|
|
21
21
|
onOpenChange: ge,
|
|
22
22
|
placement: "bottom-start",
|
|
@@ -30,7 +30,7 @@ var gt = ({ dataTest: H, value: I, defaultValue: J, onChange: L, error: Q, error
|
|
|
30
30
|
t.floating.style.minWidth = `${e.reference.width + 20}px`;
|
|
31
31
|
} })
|
|
32
32
|
]
|
|
33
|
-
}), { getReferenceProps:
|
|
33
|
+
}), { getReferenceProps: ye, getFloatingProps: he } = et([
|
|
34
34
|
Qe(D, { enabled: !s && !i }),
|
|
35
35
|
Xe(D),
|
|
36
36
|
tt(D, { role: "listbox" })
|
|
@@ -53,25 +53,25 @@ var gt = ({ dataTest: H, value: I, defaultValue: J, onChange: L, error: Q, error
|
|
|
53
53
|
return () => cancelAnimationFrame(e);
|
|
54
54
|
}, [o]);
|
|
55
55
|
const Ae = (e, t) => {
|
|
56
|
-
const x =
|
|
56
|
+
const x = d ? Array.isArray(r) && r.includes(e) ? r.filter((E) => E !== e) : [...Array.isArray(r) ? r : [], e] : e;
|
|
57
57
|
k || Y(x), L?.({ target: {
|
|
58
58
|
value: x,
|
|
59
59
|
name: m
|
|
60
|
-
} }, t),
|
|
60
|
+
} }, t), d || (y(!1), requestAnimationFrame(() => f.domReference.current?.focus()));
|
|
61
61
|
}, W = () => {
|
|
62
|
-
const e =
|
|
62
|
+
const e = d ? [] : "";
|
|
63
63
|
k || Y(e), L?.({ target: {
|
|
64
64
|
value: e,
|
|
65
65
|
name: m
|
|
66
|
-
} }, null),
|
|
66
|
+
} }, null), y(!1), S(!1);
|
|
67
67
|
}, ve = N.map(v, (e) => {
|
|
68
68
|
if (!P(e)) return e;
|
|
69
69
|
const t = e.props.value;
|
|
70
70
|
return Ke(e, {
|
|
71
|
-
selected:
|
|
71
|
+
selected: d ? Array.isArray(r) && r.includes(t) : t === r,
|
|
72
72
|
onClick: () => Ae(t, e.props.children)
|
|
73
73
|
});
|
|
74
|
-
}), Re = N.toArray(v).find((e) => P(e) && e.props.value === r), Se = V ? V(r) :
|
|
74
|
+
}), Re = N.toArray(v).find((e) => P(e) && e.props.value === r), Se = V ? V(r) : d && Array.isArray(r) ? N.toArray(v).filter((e) => P(e) && r.includes(e.props.value)).map((e) => {
|
|
75
75
|
const t = e.props.children;
|
|
76
76
|
return typeof t == "string" || typeof t == "number" ? String(t) : "";
|
|
77
77
|
}).join(", ") : Re?.props.children, ke = (e) => {
|
|
@@ -79,7 +79,7 @@ var gt = ({ dataTest: H, value: I, defaultValue: J, onChange: L, error: Q, error
|
|
|
79
79
|
e.preventDefault(), W();
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
|
-
e.key !== "ArrowDown" && e.key !== "ArrowUp" || s || i || (e.preventDefault(),
|
|
82
|
+
e.key !== "ArrowDown" && e.key !== "ArrowUp" || s || i || (e.preventDefault(), y(!0), requestAnimationFrame(() => {
|
|
83
83
|
if (a.current?.querySelector('[role="option"][aria-selected="true"]')) return;
|
|
84
84
|
const t = a.current?.querySelectorAll('[role="option"]:not([aria-disabled="true"])');
|
|
85
85
|
t?.length && t[e.key === "ArrowUp" ? t.length - 1 : 0]?.focus();
|
|
@@ -89,9 +89,9 @@ var gt = ({ dataTest: H, value: I, defaultValue: J, onChange: L, error: Q, error
|
|
|
89
89
|
if (t.length === 0) return;
|
|
90
90
|
const x = t.findIndex((E) => E === document.activeElement);
|
|
91
91
|
e.key === "ArrowDown" || e.key === "ArrowUp" ? (e.preventDefault(), t[(x + (e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length]?.focus()) : (e.key === "Enter" || e.key === " ") && (e.preventDefault(), document.activeElement?.click());
|
|
92
|
-
}, C =
|
|
92
|
+
}, C = b && (o || h), Fe = s ? "text-delta-300" : C ? "text-gama-500" : "text-delta-800", Ce = s ? "text-delta-300" : "text-delta-700";
|
|
93
93
|
return /* @__PURE__ */ B("div", {
|
|
94
|
-
ref:
|
|
94
|
+
ref: ue,
|
|
95
95
|
className: p("group relative inline-flex flex-col", re && "w-full", oe),
|
|
96
96
|
style: {
|
|
97
97
|
fontFamily: "Roboto, Helvetica, Arial, sans-serif",
|
|
@@ -103,14 +103,14 @@ var gt = ({ dataTest: H, value: I, defaultValue: J, onChange: L, error: Q, error
|
|
|
103
103
|
ref: xe,
|
|
104
104
|
type: "button",
|
|
105
105
|
"data-testid": H,
|
|
106
|
-
...
|
|
106
|
+
...ye({ onKeyDown: ke }),
|
|
107
107
|
role: "combobox",
|
|
108
108
|
"aria-haspopup": "listbox",
|
|
109
109
|
"aria-expanded": o,
|
|
110
110
|
"aria-controls": j,
|
|
111
111
|
"aria-labelledby": g,
|
|
112
112
|
"aria-label": g ? void 0 : m,
|
|
113
|
-
"aria-invalid":
|
|
113
|
+
"aria-invalid": u ? !0 : void 0,
|
|
114
114
|
"aria-describedby": R ? M : void 0,
|
|
115
115
|
"aria-disabled": s ? !0 : void 0,
|
|
116
116
|
disabled: s,
|
|
@@ -120,8 +120,8 @@ var gt = ({ dataTest: H, value: I, defaultValue: J, onChange: L, error: Q, error
|
|
|
120
120
|
onBlur: (e) => {
|
|
121
121
|
S(!1), ce?.(e);
|
|
122
122
|
},
|
|
123
|
-
style: { minWidth: l && !
|
|
124
|
-
className: p("relative flex w-full items-center justify-between text-left outline-none", "h-10 rounded-lg border-0 px-3 text-base transition-colors", C ? "bg-gama-50" : "bg-transparent", Fe,
|
|
123
|
+
style: { minWidth: l && !b ? 105 : void 0 },
|
|
124
|
+
className: p("relative flex w-full items-center justify-between text-left outline-none", "h-10 rounded-lg border-0 px-3 text-base transition-colors", C ? "bg-gama-50" : "bg-transparent", Fe, b && "min-w-0", s && "cursor-not-allowed", i && "pointer-events-none"),
|
|
125
125
|
children: [
|
|
126
126
|
/* @__PURE__ */ n("span", {
|
|
127
127
|
className: p("min-w-0 flex-1 truncate", !l && "text-delta-500"),
|
|
@@ -148,10 +148,10 @@ var gt = ({ dataTest: H, value: I, defaultValue: J, onChange: L, error: Q, error
|
|
|
148
148
|
}),
|
|
149
149
|
/* @__PURE__ */ n("div", { className: Ve({
|
|
150
150
|
focused: o || h,
|
|
151
|
-
error:
|
|
151
|
+
error: u,
|
|
152
152
|
disabled: s,
|
|
153
153
|
readOnly: i,
|
|
154
|
-
borderless:
|
|
154
|
+
borderless: b
|
|
155
155
|
}) })
|
|
156
156
|
]
|
|
157
157
|
}),
|
|
@@ -166,20 +166,20 @@ var gt = ({ dataTest: H, value: I, defaultValue: J, onChange: L, error: Q, error
|
|
|
166
166
|
...F ? _e : {},
|
|
167
167
|
style: {
|
|
168
168
|
...F ? qe : {},
|
|
169
|
-
...
|
|
169
|
+
...be,
|
|
170
170
|
fontFamily: "Roboto, Helvetica, Arial, sans-serif"
|
|
171
171
|
},
|
|
172
172
|
...he(),
|
|
173
173
|
onKeyDown: De,
|
|
174
|
-
className: p("z-[1300] m-0 max-h-72 list-none overflow-auto rounded-lg border border-solid border-delta-300 bg-white px-0 py-2 shadow-[0px_2px_4px_0px_rgba(34,33,51,0.15)]", ae?.className),
|
|
174
|
+
className: p("z-[1300] m-0 max-h-72 list-none overflow-auto rounded-lg border border-solid border-delta-300 bg-white px-0 py-2 shadow-[0px_2px_4px_0px_rgba(34,33,51,0.15)]", "[&>li:not(:last-child)]:border-0 [&>li:not(:last-child)]:border-b", "[&>li:not(:last-child)]:border-solid [&>li:not(:last-child)]:border-delta-200", ae?.className),
|
|
175
175
|
children: ve
|
|
176
176
|
})
|
|
177
177
|
}),
|
|
178
178
|
R && /* @__PURE__ */ n(Le, {
|
|
179
179
|
ref: fe,
|
|
180
180
|
id: M,
|
|
181
|
-
role:
|
|
182
|
-
error:
|
|
181
|
+
role: de,
|
|
182
|
+
error: u,
|
|
183
183
|
message: K,
|
|
184
184
|
className: "m-0 mr-[14px] box-border items-center",
|
|
185
185
|
style: pe
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { cn as
|
|
2
|
-
import { CheckIcon as
|
|
3
|
-
import { jsx as
|
|
4
|
-
var
|
|
1
|
+
import { cn as l } from "../../../helpers/cn.js";
|
|
2
|
+
import { CheckIcon as n } from "../../icons/check-icon/CheckIcon.js";
|
|
3
|
+
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
4
|
+
var x = ({ children: r, selected: e, disabled: t, className: o, onClick: i }) => /* @__PURE__ */ s("li", {
|
|
5
5
|
role: "option",
|
|
6
6
|
"aria-selected": e ? !0 : void 0,
|
|
7
|
-
"aria-disabled":
|
|
7
|
+
"aria-disabled": t ? !0 : void 0,
|
|
8
8
|
tabIndex: -1,
|
|
9
|
-
onClick:
|
|
10
|
-
className:
|
|
11
|
-
children: [/* @__PURE__ */
|
|
9
|
+
onClick: t ? void 0 : i,
|
|
10
|
+
className: l("flex items-center gap-1 px-2 py-2.5 text-base outline-none", t ? "cursor-not-allowed text-delta-300" : "cursor-pointer text-delta-800 hover:bg-delta-50", e && "bg-gama-50", o),
|
|
11
|
+
children: [/* @__PURE__ */ a("span", {
|
|
12
12
|
className: "flex w-6 justify-center",
|
|
13
|
-
children: e && /* @__PURE__ */
|
|
13
|
+
children: e && /* @__PURE__ */ a(n, {
|
|
14
14
|
width: 22,
|
|
15
15
|
height: 22,
|
|
16
16
|
className: "text-gama-500"
|
|
17
17
|
})
|
|
18
|
-
}), /* @__PURE__ */
|
|
18
|
+
}), /* @__PURE__ */ a("span", {
|
|
19
19
|
className: "line-clamp-2 min-w-0 flex-1 break-words",
|
|
20
|
-
children:
|
|
20
|
+
children: r
|
|
21
21
|
})]
|
|
22
22
|
});
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
x as StyledSelectItem
|
|
25
25
|
};
|
|
@@ -149,7 +149,7 @@ function Pt({ dataTest: r, options: p, renderInput: ee, value: v, onChange: N, g
|
|
|
149
149
|
endAdornment: Ue
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
}, Ve = k("box-border flex min-h-10 cursor-pointer items-center gap-x-3 px-3 py-1.5 text-base text-delta-800", "aria-selected:bg-gama-50 data-[active]:bg-gama-50 data-[active]:text-delta-800", "aria-disabled:cursor-default aria-disabled:!bg-transparent aria-disabled:text-delta-300"
|
|
152
|
+
}, Ve = k("box-border flex min-h-10 cursor-pointer items-center gap-x-3 px-3 py-1.5 text-base text-delta-800", "aria-selected:bg-gama-50 data-[active]:bg-gama-50 data-[active]:text-delta-800", "aria-disabled:cursor-default aria-disabled:!bg-transparent aria-disabled:text-delta-300"), He = (e, t, l) => {
|
|
153
153
|
const { key: d, ...u } = e;
|
|
154
154
|
return /* @__PURE__ */ y("li", {
|
|
155
155
|
...u,
|
|
@@ -213,7 +213,7 @@ function Pt({ dataTest: r, options: p, renderInput: ee, value: v, onChange: N, g
|
|
|
213
213
|
...V?.popper?.style
|
|
214
214
|
},
|
|
215
215
|
...$e(),
|
|
216
|
-
className: k("z-[1300] m-0 list-none overflow-auto rounded-lg border border-solid border-delta-300 bg-white px-0 py-2 shadow-[0px_2px_4px_0px_rgba(34,33,51,0.15)]", fe?.listbox, V?.popper?.className),
|
|
216
|
+
className: k("z-[1300] m-0 list-none overflow-auto rounded-lg border border-solid border-delta-300 bg-white px-0 py-2 shadow-[0px_2px_4px_0px_rgba(34,33,51,0.15)]", "[&>li:not(:last-child)]:border-0 [&>li:not(:last-child)]:border-b", "[&>li:not(:last-child)]:border-solid [&>li:not(:last-child)]:border-delta-200", fe?.listbox, V?.popper?.className),
|
|
217
217
|
children: [pe && o && /* @__PURE__ */ y("div", {
|
|
218
218
|
role: "group",
|
|
219
219
|
className: "flex min-h-12 items-center gap-x-1 border-0 border-b border-solid border-delta-200 px-4 text-sm text-delta-700",
|