@dust-tt/sparkle 0.1.82 → 0.1.84

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,11 +16,11 @@ 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;
23
- isWrapping: boolean;
23
+ isWrapping?: boolean;
24
24
  className?: string;
25
25
  }
26
26
  export {};
package/dist/esm/index.js CHANGED
@@ -543,7 +543,7 @@ function Button(_a) {
543
543
  return labelVisible ? (buttonBase) : (React__default.createElement(Tooltip, { label: label, position: tooltipPosition }, buttonBase));
544
544
  }
545
545
  Button.List = function (_a) {
546
- var children = _a.children, isWrapping = _a.isWrapping, className = _a.className;
546
+ var children = _a.children, _b = _a.isWrapping, isWrapping = _b === void 0 ? false : _b, className = _a.className;
547
547
  var modifiedChildren = Children.map(children, function (child) {
548
548
  // Check if this child is a Button
549
549
  if (React__default.isValidElement(child) && child.type === Button) {