@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.mjs
CHANGED
|
@@ -7805,6 +7805,27 @@ var AdvancedRow = ({
|
|
|
7805
7805
|
] }),
|
|
7806
7806
|
condition.operator && !isNoValueOperator(condition.operator) && (() => {
|
|
7807
7807
|
const inputType = getValueInputType(propertyDef.type, condition.operator);
|
|
7808
|
+
const isInline = inputType === "TextInput" || inputType === "NumberInput";
|
|
7809
|
+
if (isInline) {
|
|
7810
|
+
return /* @__PURE__ */ jsx56(
|
|
7811
|
+
"input",
|
|
7812
|
+
{
|
|
7813
|
+
type: inputType === "NumberInput" ? "number" : "text",
|
|
7814
|
+
value: condition.value ?? "",
|
|
7815
|
+
onChange: (e) => handleValueChange(
|
|
7816
|
+
inputType === "NumberInput" ? e.target.value === "" ? null : Number(e.target.value) : e.target.value
|
|
7817
|
+
),
|
|
7818
|
+
placeholder: "Enter value...",
|
|
7819
|
+
className: cn(
|
|
7820
|
+
"flex-1 min-w-[80px] px-base py-sm",
|
|
7821
|
+
"bg-[var(--color-background)] border border-[var(--color-input)] rounded-base",
|
|
7822
|
+
"text-sm font-regular leading-sm text-[var(--color-foreground)]",
|
|
7823
|
+
"placeholder:text-[var(--color-muted-foreground)]",
|
|
7824
|
+
"focus:outline-none focus:ring-2 focus:ring-[var(--color-ring)] focus:ring-offset-0"
|
|
7825
|
+
)
|
|
7826
|
+
}
|
|
7827
|
+
);
|
|
7828
|
+
}
|
|
7808
7829
|
const dateWide = inputType === "DatePicker" || inputType === "DateRange";
|
|
7809
7830
|
return /* @__PURE__ */ jsxs50(PopoverPrimitive11.Root, { open: valueOpen, onOpenChange: setValueOpen, children: [
|
|
7810
7831
|
/* @__PURE__ */ jsx56(PopoverPrimitive11.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs50(
|
|
@@ -7820,7 +7841,7 @@ var AdvancedRow = ({
|
|
|
7820
7841
|
"text-sm font-regular leading-sm whitespace-nowrap truncate text-left",
|
|
7821
7842
|
hasValue ? "text-[var(--color-foreground)]" : "text-[var(--color-muted-foreground)]"
|
|
7822
7843
|
),
|
|
7823
|
-
children: hasValue ? displayValue : "
|
|
7844
|
+
children: hasValue ? displayValue : "Select a value"
|
|
7824
7845
|
}
|
|
7825
7846
|
),
|
|
7826
7847
|
/* @__PURE__ */ jsxs50("span", { className: "flex items-center gap-xs shrink-0", children: [
|