@dust-tt/sparkle 0.2.1-aric → 0.2.2-aric

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
@@ -32115,9 +32115,9 @@ function Chip(_a) {
32115
32115
  children));
32116
32116
  }
32117
32117
  Chip.List = function (_a) {
32118
- var children = _a.children, className = _a.className;
32118
+ var children = _a.children, className = _a.className, isWrapping = _a.isWrapping;
32119
32119
  return (React.createElement("div", { className: classNames(className ? className : "", "s-flex") },
32120
- React.createElement("div", { className: "s-flex s-flex-row s-gap-2" }, children)));
32120
+ React.createElement("div", { className: classNames("s-flex s-flex-row s-gap-2", isWrapping ? "s-flex-wrap" : "") }, children)));
32121
32121
  };
32122
32122
 
32123
32123
  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),