@dust-tt/sparkle 0.2.287-rc-2 → 0.2.287

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
@@ -85165,12 +85165,12 @@ var Input = React.forwardRef(function (_a, ref) {
85165
85165
  Input.displayName = "Input";
85166
85166
 
85167
85167
  function LinkWrapper(_a) {
85168
- var href = _a.href, target = _a.target, rel = _a.rel, replace = _a.replace, shallow = _a.shallow, className = _a.className, children = _a.children;
85168
+ var children = _a.children, href = _a.href, rel = _a.rel, replace = _a.replace, shallow = _a.shallow, target = _a.target;
85169
85169
  var components = React.useContext(SparkleContext).components;
85170
85170
  if (href) {
85171
- return (React.createElement(components.link, { href: href, target: target, rel: rel, replace: replace, shallow: shallow, className: className }, children));
85171
+ return (React.createElement(components.link, { href: href, target: target, rel: rel, replace: replace, shallow: shallow }, children));
85172
85172
  }
85173
- return React.createElement(React.Fragment, null, children);
85173
+ return children;
85174
85174
  }
85175
85175
 
85176
85176
  function ok$2() {}
@@ -106753,7 +106753,7 @@ var NavigationListItem = React__namespace.forwardRef(function (_a, ref) {
106753
106753
  icon && React__namespace.createElement(Icon, { visual: icon, size: "sm" }),
106754
106754
  label && (React__namespace.createElement("span", { className: "s-grow s-overflow-hidden s-text-ellipsis s-whitespace-nowrap" }, label)),
106755
106755
  selected && moreMenu && (React__namespace.createElement("div", { className: "-s-mr-2 s-flex s-h-4 s-items-center" }, moreMenu)))));
106756
- return (React__namespace.createElement(LinkWrapper, { href: href, target: target, rel: rel, replace: replace, shallow: shallow, className: className }, content));
106756
+ return (React__namespace.createElement(LinkWrapper, { href: href, target: target, rel: rel, replace: replace, shallow: shallow }, content));
106757
106757
  });
106758
106758
  NavigationListItem.displayName = "NavigationListItem";
106759
106759
  var variantStyles = cva("", {
@@ -109810,9 +109810,9 @@ var NewDropdownMenuContent = React__namespace.forwardRef(function (_a, ref) {
109810
109810
  NewDropdownMenuContent.displayName = Content2.displayName;
109811
109811
  var NewDropdownMenuItem = React__namespace.forwardRef(function (_a, ref) {
109812
109812
  var children = _a.children, variant = _a.variant, description = _a.description, className = _a.className, inset = _a.inset, icon = _a.icon, label = _a.label, href = _a.href, target = _a.target, rel = _a.rel, asChild = _a.asChild, replace = _a.replace, shallow = _a.shallow, props = __rest(_a, ["children", "variant", "description", "className", "inset", "icon", "label", "href", "target", "rel", "asChild", "replace", "shallow"]);
109813
- var content = (React__namespace.createElement(Item2$1, __assign({ ref: ref, className: cn(menuStyleClasses.item({ variant: variant }), inset ? menuStyleClasses.inset : "", className) }, props, { asChild: !!href || asChild }),
109814
- React__namespace.createElement(ItemWithLabelIconAndDescription, { label: label, icon: icon, description: description }, children)));
109815
- return (React__namespace.createElement(LinkWrapper, { href: href, target: target, rel: rel, replace: replace, shallow: shallow }, content));
109813
+ return (React__namespace.createElement(Item2$1, __assign({ ref: ref, className: cn(menuStyleClasses.item({ variant: variant }), inset ? menuStyleClasses.inset : "", className) }, props, { asChild: asChild }),
109814
+ React__namespace.createElement(LinkWrapper, { href: href, target: target, rel: rel, replace: replace, shallow: shallow },
109815
+ React__namespace.createElement(ItemWithLabelIconAndDescription, { label: label, icon: icon, description: description }, children))));
109816
109816
  });
109817
109817
  NewDropdownMenuItem.displayName = Item2$1.displayName;
109818
109818
  var NewDropdownMenuCheckboxItem = React__namespace.forwardRef(function (_a, ref) {
@@ -112813,7 +112813,7 @@ var TabsTrigger = React__namespace.forwardRef(function (_a, ref) {
112813
112813
  var content = (React__namespace.createElement(Trigger, __assign({ ref: ref, className: cn("s-border-0 s-border-b-2 s-border-primary-800/0 s-pb-1 disabled:s-pointer-events-none data-[state=active]:s-border-primary-800", className), asChild: true }, props),
112814
112814
  React__namespace.createElement("div", null,
112815
112815
  React__namespace.createElement(Button, { variant: "ghost", size: "sm", label: label, icon: icon }))));
112816
- return (React__namespace.createElement(LinkWrapper, { href: href, target: target, rel: rel, replace: replace, shallow: shallow, className: className }, content));
112816
+ return (React__namespace.createElement(LinkWrapper, { href: href, target: target, rel: rel, replace: replace, shallow: shallow }, content));
112817
112817
  });
112818
112818
  var TabsContent = React__namespace.forwardRef(function (_a, ref) {
112819
112819
  var className = _a.className, props = __rest(_a, ["className"]);