@pichetch08/trip-ui 0.2.3 → 0.2.4
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.
|
@@ -94,7 +94,7 @@ function SelectPicker({
|
|
|
94
94
|
"aria-controls": "select-picker-listbox",
|
|
95
95
|
"aria-required": required,
|
|
96
96
|
onClick: () => toggleOpen(!open),
|
|
97
|
-
className: `relative w-full bg-surface-container-low border rounded-xl text-left transition-all duration-200 font-medium outline-none active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30 pr-10 ${size === "sm" ? "py-2 px-3 text-sm" : "py-4 px-6"} ${icon ? size === "sm" ? "pl-8" : "pl-12" : ""} ${open ? "bg-surface ring-2 ring-primary/20 border-primary" : error ? "border-red-400 bg-red-50/30" : "border-transparent hover:border-outline-variant"}`,
|
|
97
|
+
className: `relative w-full bg-surface-container-low border rounded-xl text-left transition-all duration-200 font-medium outline-none active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30 pr-10 ${size === "sm" ? "py-2.5 px-3 text-sm" : "py-4 px-6"} ${icon ? size === "sm" ? "pl-8" : "pl-12" : ""} ${open ? "bg-surface ring-2 ring-primary/20 border-primary" : error ? "border-red-400 bg-red-50/30" : "border-transparent hover:border-outline-variant"}`,
|
|
98
98
|
children: [
|
|
99
99
|
icon && /* @__PURE__ */ jsx("span", { className: `material-symbols-outlined absolute top-1/2 -translate-y-1/2 text-on-surface-variant ${size === "sm" ? "left-2.5 text-base" : "left-4"}`, children: icon }),
|
|
100
100
|
selectedOption ? /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2 text-on-surface", children: [
|
|
@@ -113,7 +113,7 @@ function SelectPicker({
|
|
|
113
113
|
"div",
|
|
114
114
|
{
|
|
115
115
|
ref: dropdownRef,
|
|
116
|
-
className: "absolute z-50 left-0
|
|
116
|
+
className: "absolute z-50 left-0 min-w-[180px] bg-surface rounded-2xl shadow-2xl border border-outline-variant/30 overflow-hidden animate-in fade-in slide-in-from-top-2 duration-150",
|
|
117
117
|
children: [
|
|
118
118
|
searchable && /* @__PURE__ */ jsx("div", { className: "p-3 border-b border-outline-variant/20", children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
119
119
|
/* @__PURE__ */ jsx("span", { className: "material-symbols-outlined absolute left-3 top-1/2 -translate-y-1/2 text-on-surface-variant text-lg", children: "search" }),
|