@dust-tt/sparkle 0.2.250 → 0.2.252

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
@@ -99444,6 +99444,7 @@ var typeIcons = {
99444
99444
  notion: SvgNotion,
99445
99445
  slack: SvgSlack,
99446
99446
  image: SvgImage,
99447
+ snowflake: SvgSnowflake,
99447
99448
  };
99448
99449
  var typeSizing = {
99449
99450
  fixed: { xs: "s-w-48", sm: "s-w-64" },
@@ -129161,17 +129162,14 @@ function Tab(_a) {
129161
129162
  React.createElement("nav", { className: "s-flex s-space-x-0", "aria-label": "Tabs" }, renderTabs())));
129162
129163
  }
129163
129164
 
129164
- function TextArea(_a) {
129165
- var placeholder = _a.placeholder, value = _a.value, onChange = _a.onChange, error = _a.error, _b = _a.showErrorLabel, showErrorLabel = _b === void 0 ? false : _b, className = _a.className, _c = _a.minRows, minRows = _c === void 0 ? 10 : _c;
129166
- var textareaRef = React.useRef(null);
129165
+ var TextArea = React.forwardRef(function (_a, ref) {
129166
+ var error = _a.error, _b = _a.showErrorLabel, showErrorLabel = _b === void 0 ? false : _b, className = _a.className, _c = _a.minRows, minRows = _c === void 0 ? 10 : _c, props = __rest(_a, ["error", "showErrorLabel", "className", "minRows"]);
129167
129167
  return (React.createElement("div", { className: "s-flex s-flex-col s-gap-1 s-p-px" },
129168
- React.createElement("textarea", { rows: minRows, ref: textareaRef, className: classNames("overflow-y-auto s-block s-w-full s-min-w-0 s-rounded-xl s-text-sm s-placeholder-element-700 s-transition-all s-duration-200 s-scrollbar-hide", !error
129168
+ React.createElement("textarea", __assign({ rows: minRows, ref: ref, className: classNames("overflow-y-auto s-block s-w-full s-min-w-0 s-rounded-xl s-text-sm s-placeholder-element-700 s-transition-all s-duration-200 s-scrollbar-hide", !error
129169
129169
  ? "s-border-structure-100 focus:s-border-action-300 focus:s-ring-action-300"
129170
- : "s-border-red-500 focus:s-border-red-500 focus:s-ring-red-500", "s-border-structure-200 s-bg-structure-50", "s-resize-y", className !== null && className !== void 0 ? className : ""), placeholder: placeholder, value: value !== null && value !== void 0 ? value : "", onChange: function (e) {
129171
- onChange(e.target.value);
129172
- } }),
129170
+ : "s-border-red-500 focus:s-border-red-500 focus:s-ring-red-500", "s-border-structure-200 s-bg-structure-50", "s-resize-y", className !== null && className !== void 0 ? className : "") }, props)),
129173
129171
  error && showErrorLabel && (React.createElement("div", { className: "s-ml-2 s-text-sm s-text-warning-500" }, error))));
129174
- }
129172
+ });
129175
129173
 
129176
129174
  function Tree(_a) {
129177
129175
  var children = _a.children, isLoading = _a.isLoading, _b = _a.isBoxed, isBoxed = _b === void 0 ? false : _b, tailwindIconTextColor = _a.tailwindIconTextColor, _c = _a.variant, variant = _c === void 0 ? "finder" : _c;