@dust-tt/sparkle 0.2.265-rc-1 → 0.2.265-rc-2

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/cjs/index.js CHANGED
@@ -113501,12 +113501,12 @@ Label$1.displayName = Root$4.displayName;
113501
113501
 
113502
113502
  var inputStyleClasses = cn("s-text-sm s-bg-background s-rounded-xl s-border s-border-border-dark s-flex s-h-9 s-w-full s-px-3 s-py-1.5 ", "file:s-border-0 file:s-bg-transparent file:s-text-sm file:s-font-medium file:s-text-foreground", "placeholder:s-text-muted-foreground", "focus-visible:s-outline-none focus-visible:s-ring-2 focus-visible:s-ring-offset-2 focus-visible:s-ring-ring focus-visible:s-border-primary-400", "disabled:s-cursor-not-allowed disabled:s-opacity-50 disabled:s-text-muted-foreground");
113503
113503
  var Input = React.forwardRef(function (_a, ref) {
113504
- var className = _a.className, error = _a.error, label = _a.label, _b = _a.showErrorLabel, showErrorLabel = _b === void 0 ? false : _b, props = __rest(_a, ["className", "error", "label", "showErrorLabel"]);
113504
+ var className = _a.className, error = _a.error, value = _a.value, label = _a.label, _b = _a.showErrorLabel, showErrorLabel = _b === void 0 ? false : _b, props = __rest(_a, ["className", "error", "value", "label", "showErrorLabel"]);
113505
113505
  return (React.createElement("div", { className: "s-flex s-flex-col s-gap-1 s-p-px" },
113506
113506
  label && (React.createElement(Label$1, { htmlFor: props.name, className: "s-pb-1 s-text-element-700 dark:s-text-element-700-dark" }, label)),
113507
113507
  React.createElement("input", __assign({ ref: ref, className: cn(inputStyleClasses, className, !error
113508
113508
  ? cn("s-ring-structure-200 focus:s-ring-action-300", "dark:s-ring-structure-300-dark dark:focus:s-ring-action-300-dark")
113509
- : cn("s-ring-warning-200 focus:s-ring-warning-300", "dark:s-ring-warning-200-dark dark:focus:s-ring-warning-300-dark")), "data-1p-ignore": props.type !== "password" }, props)),
113509
+ : cn("s-ring-warning-200 focus:s-ring-warning-300", "dark:s-ring-warning-200-dark dark:focus:s-ring-warning-300-dark")), "data-1p-ignore": props.type !== "password", value: value !== null && value !== void 0 ? value : undefined }, props)),
113510
113510
  React.createElement("div", { className: "s-ml-2 s-text-sm s-text-warning-500" }, showErrorLabel && error ? error : null)));
113511
113511
  });
113512
113512
  Input.displayName = "Input";