@pichetch08/trip-ui 0.2.3 → 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 py-2.5", children: [
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" ? "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" ? "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: [
@@ -113,7 +113,7 @@ function SelectPicker({
113
113
  "div",
114
114
  {
115
115
  ref: dropdownRef,
116
- className: "absolute z-50 left-0 right-0 bg-surface rounded-2xl shadow-2xl border border-outline-variant/30 overflow-hidden animate-in fade-in slide-in-from-top-2 duration-150",
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" }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pichetch08/trip-ui",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Trip UI — shared React component library built with Tailwind v4 and Material Design 3 tokens",
5
5
  "author": "pichetch08",
6
6
  "license": "MIT",