@pichetch08/trip-ui 0.2.8 → 0.2.11
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/components/shared/date-picker.js +1 -1
- package/dist/components/shared/date-range-picker.js +1 -1
- package/dist/components/shared/filter-tabs.js +1 -1
- package/dist/components/shared/number-input.js +3 -3
- package/dist/components/shared/select-picker.js +1 -1
- package/dist/components/shared/time-picker.js +1 -1
- package/package.json +1 -1
|
@@ -138,7 +138,7 @@ function DatePicker({
|
|
|
138
138
|
"aria-haspopup": "dialog",
|
|
139
139
|
"aria-required": required,
|
|
140
140
|
onClick: () => setOpen(!open),
|
|
141
|
-
className: `relative w-full bg-surface-container-low border rounded-xl text-left transition-all font-medium outline-none active:scale-[0.99] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30 ${size === "sm" ? `h-10 px-3 text-sm ${icon ? "pl-
|
|
141
|
+
className: `relative w-full bg-surface-container-low border rounded-xl text-left transition-all font-medium outline-none active:scale-[0.99] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30 ${size === "sm" ? `h-10 px-3 text-sm ${icon ? "pl-10" : ""}` : `py-4 px-6 ${icon ? "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"}`,
|
|
142
142
|
children: [
|
|
143
143
|
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 }),
|
|
144
144
|
displayValue ? /* @__PURE__ */ jsx("span", { className: "text-on-surface", children: displayValue }) : /* @__PURE__ */ jsx("span", { className: "text-outline/40", children: placeholder })
|
|
@@ -317,7 +317,7 @@ function DateRangePicker({
|
|
|
317
317
|
"aria-haspopup": "dialog",
|
|
318
318
|
"aria-required": required,
|
|
319
319
|
onClick: handleOpen,
|
|
320
|
-
className: `relative w-full bg-surface-container-low border rounded-xl text-left transition-all font-medium outline-none active:scale-[0.99] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30 overflow-hidden ${size === "sm" ? "h-10 pl-
|
|
320
|
+
className: `relative w-full bg-surface-container-low border rounded-xl text-left transition-all font-medium outline-none active:scale-[0.99] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30 overflow-hidden ${size === "sm" ? "h-10 pl-10 pr-9 text-sm" : "py-4 pl-12 pr-10"} ${open ? "bg-surface ring-2 ring-primary/20 border-primary" : error ? "border-red-400 bg-red-50/30" : "border-transparent hover:border-outline-variant"}`,
|
|
321
321
|
children: [
|
|
322
322
|
/* @__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 }),
|
|
323
323
|
displayText ? /* @__PURE__ */ jsx("span", { className: "text-on-surface text-sm truncate block", children: displayText }) : /* @__PURE__ */ jsxs("span", { className: "text-outline/40 text-sm truncate block", children: [
|
|
@@ -5,7 +5,7 @@ function FilterTabs({
|
|
|
5
5
|
activeTab,
|
|
6
6
|
onTabChange
|
|
7
7
|
}) {
|
|
8
|
-
return /* @__PURE__ */ jsx("div", { role: "tablist", className: "flex items-center gap-2 border-b border-outline-variant/20 overflow-x-auto", children: tabs.map((tab) => {
|
|
8
|
+
return /* @__PURE__ */ jsx("div", { role: "tablist", className: "flex items-center gap-2 border-b border-outline-variant/20 overflow-x-auto w-full scrollbar-hide", children: tabs.map((tab) => {
|
|
9
9
|
const isActive = activeTab === tab.id;
|
|
10
10
|
return /* @__PURE__ */ jsxs(
|
|
11
11
|
"button",
|
|
@@ -69,11 +69,11 @@ function NumberInput({
|
|
|
69
69
|
"aria-label": decrementLabel,
|
|
70
70
|
disabled: disabled || !canDecrement,
|
|
71
71
|
onClick: decrement,
|
|
72
|
-
className: "px-4 py-
|
|
72
|
+
className: "px-4 py-3 text-on-surface-variant hover:bg-surface-container hover:text-on-surface transition-colors disabled:opacity-30 disabled:cursor-not-allowed shrink-0 active:scale-[0.95] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",
|
|
73
73
|
children: /* @__PURE__ */ jsx("span", { className: "material-symbols-outlined leading-none text-xl", "aria-hidden": "true", children: "remove" })
|
|
74
74
|
}
|
|
75
75
|
),
|
|
76
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center flex-1 gap-1 py-
|
|
76
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center flex-1 gap-1 py-3", children: [
|
|
77
77
|
prefix && /* @__PURE__ */ jsx("span", { className: "text-on-surface-variant font-medium text-sm shrink-0", children: prefix }),
|
|
78
78
|
/* @__PURE__ */ jsx(
|
|
79
79
|
"input",
|
|
@@ -102,7 +102,7 @@ function NumberInput({
|
|
|
102
102
|
"aria-label": incrementLabel,
|
|
103
103
|
disabled: disabled || !canIncrement,
|
|
104
104
|
onClick: increment,
|
|
105
|
-
className: "px-4 py-
|
|
105
|
+
className: "px-4 py-3 text-on-surface-variant hover:bg-surface-container hover:text-on-surface transition-colors disabled:opacity-30 disabled:cursor-not-allowed shrink-0 active:scale-[0.95] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",
|
|
106
106
|
children: /* @__PURE__ */ jsx("span", { className: "material-symbols-outlined leading-none text-xl", "aria-hidden": "true", children: "add" })
|
|
107
107
|
}
|
|
108
108
|
)
|
|
@@ -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" ? "h-10 px-3 text-sm" : "py-4 px-6"} ${icon ? size === "sm" ? "pl-
|
|
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-10" : "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: [
|
|
@@ -125,7 +125,7 @@ function TimePicker({
|
|
|
125
125
|
"aria-haspopup": "dialog",
|
|
126
126
|
"aria-required": required,
|
|
127
127
|
onClick: () => setOpen(!open),
|
|
128
|
-
className: `relative w-full bg-surface-container-low border rounded-xl text-left transition-all font-medium outline-none active:scale-[0.99] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30 ${size === "sm" ? `h-10 px-3 text-sm ${icon ? "pl-
|
|
128
|
+
className: `relative w-full bg-surface-container-low border rounded-xl text-left transition-all font-medium outline-none active:scale-[0.99] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30 ${size === "sm" ? `h-10 px-3 text-sm ${icon ? "pl-10" : ""}` : `py-4 px-6 ${icon ? "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"}`,
|
|
129
129
|
children: [
|
|
130
130
|
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 }),
|
|
131
131
|
displayValue ? /* @__PURE__ */ jsx("span", { className: "text-on-surface", children: displayValue }) : /* @__PURE__ */ jsx("span", { className: "text-outline/40", children: placeholder })
|