@process.co/ui 0.0.18 → 0.0.19
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/css/ui.css +22 -0
- package/dist/components/fields/index.cjs +12 -19
- package/dist/components/fields/index.cjs.map +1 -1
- package/dist/components/fields/index.js +12 -19
- package/dist/components/fields/index.js.map +1 -1
- package/dist/components/slots/index.cjs +3284 -0
- package/dist/components/slots/index.cjs.map +1 -0
- package/dist/components/slots/index.d.cts +2 -0
- package/dist/components/slots/index.d.ts +2 -0
- package/dist/components/slots/index.js +3261 -0
- package/dist/components/slots/index.js.map +1 -0
- package/dist/index-CcOhL3Cy.d.cts +13 -0
- package/dist/index-CcOhL3Cy.d.ts +13 -0
- package/dist/index.cjs +459 -448
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +415 -405
- package/dist/index.js.map +1 -1
- package/package.json +11 -1
|
@@ -3096,17 +3096,10 @@ function Input({
|
|
|
3096
3096
|
const isExpression = React33.useMemo(() => {
|
|
3097
3097
|
return value != null && typeof value === "object" && "expression" in value;
|
|
3098
3098
|
}, [value]);
|
|
3099
|
-
const handleChange = React33.useCallback(
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
expression: newValue,
|
|
3104
|
-
type: "expression"
|
|
3105
|
-
});
|
|
3106
|
-
} else {
|
|
3107
|
-
onChange(newValue);
|
|
3108
|
-
}
|
|
3109
|
-
}, [onChange]);
|
|
3099
|
+
const handleChange = React33.useCallback(
|
|
3100
|
+
(e) => onChange(e.target.value),
|
|
3101
|
+
[onChange]
|
|
3102
|
+
);
|
|
3110
3103
|
const showError = hasRequiredError || required && !displayValue;
|
|
3111
3104
|
const isWaiting = resolvedExpectedType.startsWith("Waiting for:") || resolvedExpectedType.startsWith("Subscribing to:");
|
|
3112
3105
|
return /* @__PURE__ */ React33.createElement("div", { className: cn("uii:mb-2", className) }, /* @__PURE__ */ React33.createElement("div", { className: "uii:flex uii:items-center uii:gap-2 uii:mt-2" }, /* @__PURE__ */ React33.createElement(
|
|
@@ -8431,14 +8424,14 @@ function Select3({
|
|
|
8431
8424
|
}
|
|
8432
8425
|
onChange(newValue);
|
|
8433
8426
|
}, [onChange]);
|
|
8434
|
-
const handleExpressionChange = React33.useCallback(
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8427
|
+
const handleExpressionChange = React33.useCallback(
|
|
8428
|
+
(e) => {
|
|
8429
|
+
const newValue = e.target.value;
|
|
8430
|
+
setExpressionValue(newValue);
|
|
8431
|
+
onChange(newValue);
|
|
8432
|
+
},
|
|
8433
|
+
[onChange]
|
|
8434
|
+
);
|
|
8442
8435
|
const handleSwitchToValue = React33.useCallback(() => {
|
|
8443
8436
|
setIsExpressionMode(false);
|
|
8444
8437
|
setExpressionValue("");
|