@iclips/ui 1.4.9 → 1.4.10
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +79 -68
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2123,79 +2123,90 @@ function MC({
|
|
|
2123
2123
|
] }) : !s && t.value && ((y = u.find((b) => b.value === t.value)) == null ? void 0 : y.label) || "Selecionar valor"
|
|
2124
2124
|
}
|
|
2125
2125
|
) }),
|
|
2126
|
-
/* @__PURE__ */ f(
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
const M = s ? p.includes(b.value) : t.value === b.value;
|
|
2153
|
-
return /* @__PURE__ */ f(
|
|
2154
|
-
"div",
|
|
2155
|
-
{
|
|
2156
|
-
className: C(
|
|
2157
|
-
"flex items-center space-x-2",
|
|
2158
|
-
b.isFilho && "pl-4"
|
|
2159
|
-
),
|
|
2160
|
-
children: s ? /* @__PURE__ */ w(Pe, { children: [
|
|
2161
|
-
/* @__PURE__ */ f(
|
|
2162
|
-
V3,
|
|
2163
|
-
{
|
|
2164
|
-
id: `${t.id}-${b.value}`,
|
|
2165
|
-
checked: M,
|
|
2166
|
-
onCheckedChange: () => m(b.value)
|
|
2167
|
-
}
|
|
2168
|
-
),
|
|
2169
|
-
/* @__PURE__ */ f(
|
|
2170
|
-
"label",
|
|
2126
|
+
/* @__PURE__ */ f(
|
|
2127
|
+
Ge,
|
|
2128
|
+
{
|
|
2129
|
+
className: "w-80 max-w-[calc(100vw-2rem)] p-3",
|
|
2130
|
+
align: "start",
|
|
2131
|
+
collisionPadding: 8,
|
|
2132
|
+
children: /* @__PURE__ */ w("div", { className: "space-y-2", children: [
|
|
2133
|
+
/* @__PURE__ */ f(Xe, { className: "text-xs text-muted-foreground", children: s ? "Selecionar valores" : "Selecionar valor" }),
|
|
2134
|
+
/* @__PURE__ */ w("div", { className: "relative", children: [
|
|
2135
|
+
/* @__PURE__ */ f(Za, { className: "absolute left-2 top-2.5 h-4 w-4 text-muted-foreground" }),
|
|
2136
|
+
/* @__PURE__ */ f(
|
|
2137
|
+
lt,
|
|
2138
|
+
{
|
|
2139
|
+
type: "text",
|
|
2140
|
+
placeholder: "Buscar...",
|
|
2141
|
+
value: c,
|
|
2142
|
+
onChange: (b) => d(b.target.value),
|
|
2143
|
+
className: "h-9 pl-8",
|
|
2144
|
+
autoFocus: !0
|
|
2145
|
+
}
|
|
2146
|
+
)
|
|
2147
|
+
] }),
|
|
2148
|
+
/* @__PURE__ */ f("div", { className: "space-y-2 max-h-[320px] overflow-y-auto overflow-x-hidden", children: h.length === 0 ? /* @__PURE__ */ f("div", { className: "text-sm text-muted-foreground text-center py-4", children: "Nenhum resultado encontrado" }) : h.map((b) => {
|
|
2149
|
+
if (b.isHeader && !b.selecionavel)
|
|
2150
|
+
return /* @__PURE__ */ f(
|
|
2151
|
+
"div",
|
|
2171
2152
|
{
|
|
2172
|
-
|
|
2173
|
-
className:
|
|
2174
|
-
"text-sm cursor-pointer flex-1",
|
|
2175
|
-
b.isHeader && "font-semibold uppercase tracking-wide"
|
|
2176
|
-
),
|
|
2153
|
+
title: b.label,
|
|
2154
|
+
className: "truncate pt-1 text-xs font-semibold uppercase tracking-wide text-muted-foreground",
|
|
2177
2155
|
children: b.label
|
|
2178
|
-
}
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2156
|
+
},
|
|
2157
|
+
b.value
|
|
2158
|
+
);
|
|
2159
|
+
const M = s ? p.includes(b.value) : t.value === b.value;
|
|
2160
|
+
return /* @__PURE__ */ f(
|
|
2161
|
+
"div",
|
|
2182
2162
|
{
|
|
2183
|
-
variant: "ghost",
|
|
2184
|
-
size: "sm",
|
|
2185
2163
|
className: C(
|
|
2186
|
-
"w-
|
|
2187
|
-
b.
|
|
2188
|
-
M && "bg-muted"
|
|
2164
|
+
"flex min-w-0 items-center space-x-2",
|
|
2165
|
+
b.isFilho && "pl-4"
|
|
2189
2166
|
),
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2167
|
+
children: s ? /* @__PURE__ */ w(Pe, { children: [
|
|
2168
|
+
/* @__PURE__ */ f(
|
|
2169
|
+
V3,
|
|
2170
|
+
{
|
|
2171
|
+
id: `${t.id}-${b.value}`,
|
|
2172
|
+
checked: M,
|
|
2173
|
+
onCheckedChange: () => m(b.value)
|
|
2174
|
+
}
|
|
2175
|
+
),
|
|
2176
|
+
/* @__PURE__ */ f(
|
|
2177
|
+
"label",
|
|
2178
|
+
{
|
|
2179
|
+
htmlFor: `${t.id}-${b.value}`,
|
|
2180
|
+
title: b.label,
|
|
2181
|
+
className: C(
|
|
2182
|
+
"min-w-0 flex-1 cursor-pointer truncate text-sm",
|
|
2183
|
+
b.isHeader && "font-semibold uppercase tracking-wide"
|
|
2184
|
+
),
|
|
2185
|
+
children: b.label
|
|
2186
|
+
}
|
|
2187
|
+
)
|
|
2188
|
+
] }) : /* @__PURE__ */ f(
|
|
2189
|
+
P,
|
|
2190
|
+
{
|
|
2191
|
+
variant: "ghost",
|
|
2192
|
+
size: "sm",
|
|
2193
|
+
title: b.label,
|
|
2194
|
+
className: C(
|
|
2195
|
+
"w-full min-w-0 justify-start",
|
|
2196
|
+
b.isHeader && "font-semibold uppercase tracking-wide",
|
|
2197
|
+
M && "bg-muted"
|
|
2198
|
+
),
|
|
2199
|
+
onClick: () => r({ value: b.value }),
|
|
2200
|
+
children: /* @__PURE__ */ f("span", { className: "truncate", children: b.label })
|
|
2201
|
+
}
|
|
2202
|
+
)
|
|
2203
|
+
},
|
|
2204
|
+
b.value
|
|
2205
|
+
);
|
|
2206
|
+
}) })
|
|
2207
|
+
] })
|
|
2208
|
+
}
|
|
2209
|
+
)
|
|
2199
2210
|
] })
|
|
2200
2211
|
) : (a == null ? void 0 : a.type) === "date" ? (
|
|
2201
2212
|
// Date picker
|