@l3mpire/ui 2.18.0 → 2.18.1
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.js +22 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7895,6 +7895,27 @@ var AdvancedRow = ({
|
|
|
7895
7895
|
] }),
|
|
7896
7896
|
condition.operator && !isNoValueOperator(condition.operator) && (() => {
|
|
7897
7897
|
const inputType = getValueInputType(propertyDef.type, condition.operator);
|
|
7898
|
+
const isInline = inputType === "TextInput" || inputType === "NumberInput";
|
|
7899
|
+
if (isInline) {
|
|
7900
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
7901
|
+
"input",
|
|
7902
|
+
{
|
|
7903
|
+
type: inputType === "NumberInput" ? "number" : "text",
|
|
7904
|
+
value: condition.value ?? "",
|
|
7905
|
+
onChange: (e) => handleValueChange(
|
|
7906
|
+
inputType === "NumberInput" ? e.target.value === "" ? null : Number(e.target.value) : e.target.value
|
|
7907
|
+
),
|
|
7908
|
+
placeholder: "Enter value...",
|
|
7909
|
+
className: cn(
|
|
7910
|
+
"flex-1 min-w-[80px] px-base py-sm",
|
|
7911
|
+
"bg-[var(--color-background)] border border-[var(--color-input)] rounded-base",
|
|
7912
|
+
"text-sm font-regular leading-sm text-[var(--color-foreground)]",
|
|
7913
|
+
"placeholder:text-[var(--color-muted-foreground)]",
|
|
7914
|
+
"focus:outline-none focus:ring-2 focus:ring-[var(--color-ring)] focus:ring-offset-0"
|
|
7915
|
+
)
|
|
7916
|
+
}
|
|
7917
|
+
);
|
|
7918
|
+
}
|
|
7898
7919
|
const dateWide = inputType === "DatePicker" || inputType === "DateRange";
|
|
7899
7920
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(PopoverPrimitive11.Root, { open: valueOpen, onOpenChange: setValueOpen, children: [
|
|
7900
7921
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(PopoverPrimitive11.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
@@ -7910,7 +7931,7 @@ var AdvancedRow = ({
|
|
|
7910
7931
|
"text-sm font-regular leading-sm whitespace-nowrap truncate text-left",
|
|
7911
7932
|
hasValue ? "text-[var(--color-foreground)]" : "text-[var(--color-muted-foreground)]"
|
|
7912
7933
|
),
|
|
7913
|
-
children: hasValue ? displayValue : "
|
|
7934
|
+
children: hasValue ? displayValue : "Select a value"
|
|
7914
7935
|
}
|
|
7915
7936
|
),
|
|
7916
7937
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { className: "flex items-center gap-xs shrink-0", children: [
|