@dust-tt/sparkle 0.1.82 → 0.1.83

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.
@@ -16,7 +16,7 @@ export type ButtonProps = {
16
16
  };
17
17
  export declare function Button({ variant, type, size, onClick, disabled, labelVisible, label, icon, className, tooltipPosition, hasMagnifying, avatar, }: ButtonProps): React.JSX.Element;
18
18
  export declare namespace Button {
19
- var List: ({ children, isWrapping, className }: ButtonListProps) => React.JSX.Element;
19
+ var List: ({ children, isWrapping, className, }: ButtonListProps) => React.JSX.Element;
20
20
  }
21
21
  interface ButtonListProps {
22
22
  children: ReactNode;
package/dist/cjs/index.js CHANGED
@@ -563,7 +563,7 @@ function Button(_a) {
563
563
  return labelVisible ? (buttonBase) : (React.createElement(Tooltip, { label: label, position: tooltipPosition }, buttonBase));
564
564
  }
565
565
  Button.List = function (_a) {
566
- var children = _a.children, isWrapping = _a.isWrapping, className = _a.className;
566
+ var children = _a.children, _b = _a.isWrapping, isWrapping = _b === void 0 ? false : _b, className = _a.className;
567
567
  var modifiedChildren = React.Children.map(children, function (child) {
568
568
  // Check if this child is a Button
569
569
  if (React.isValidElement(child) && child.type === Button) {