@dust-tt/sparkle 0.2.1 → 0.2.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.
@@ -9,10 +9,11 @@ type ChipProps = {
9
9
  };
10
10
  export declare function Chip({ size, color, label, children, className, isBusy, }: ChipProps): React.JSX.Element;
11
11
  export declare namespace Chip {
12
- var List: ({ children, className }: ListChipProps) => React.JSX.Element;
12
+ var List: ({ children, className, isWrapping }: ListChipProps) => React.JSX.Element;
13
13
  }
14
14
  interface ListChipProps {
15
15
  children: ReactNode;
16
16
  className?: string;
17
+ isWrapping?: boolean;
17
18
  }
18
19
  export {};
package/dist/cjs/index.js CHANGED
@@ -32111,9 +32111,9 @@ function Chip(_a) {
32111
32111
  children));
32112
32112
  }
32113
32113
  Chip.List = function (_a) {
32114
- var children = _a.children, className = _a.className;
32114
+ var children = _a.children, className = _a.className, isWrapping = _a.isWrapping;
32115
32115
  return (React.createElement("div", { className: classNames(className ? className : "", "s-flex") },
32116
- React.createElement("div", { className: "s-flex s-flex-row s-gap-2" }, children)));
32116
+ React.createElement("div", { className: classNames("s-flex s-flex-row s-gap-2", isWrapping ? "s-flex-wrap" : "") }, children)));
32117
32117
  };
32118
32118
 
32119
32119
  var SvgArrowDownCircle = function (props) { return (React__namespace.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24" }, props),