@pichetch08/trip-ui 0.2.4 → 0.2.5
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.
|
@@ -34,7 +34,7 @@ function SearchBar({
|
|
|
34
34
|
if (!isControlled) setInternalValue("");
|
|
35
35
|
onClear == null ? void 0 : onClear();
|
|
36
36
|
};
|
|
37
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 bg-surface-container-low border border-outline-variant/40 rounded-xl px-4
|
|
37
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 bg-surface-container-low border border-outline-variant/40 rounded-xl px-4 h-10", children: [
|
|
38
38
|
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "material-symbols-outlined text-outline text-xl", children: "search" }),
|
|
39
39
|
/* @__PURE__ */ jsx(
|
|
40
40
|
"input",
|
|
@@ -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" ? "
|
|
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" ? "h-10 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: [
|