@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/esm/index.js CHANGED
@@ -32091,9 +32091,9 @@ function Chip(_a) {
32091
32091
  children));
32092
32092
  }
32093
32093
  Chip.List = function (_a) {
32094
- var children = _a.children, className = _a.className;
32094
+ var children = _a.children, className = _a.className, isWrapping = _a.isWrapping;
32095
32095
  return (React__default.createElement("div", { className: classNames(className ? className : "", "s-flex") },
32096
- React__default.createElement("div", { className: "s-flex s-flex-row s-gap-2" }, children)));
32096
+ React__default.createElement("div", { className: classNames("s-flex s-flex-row s-gap-2", isWrapping ? "s-flex-wrap" : "") }, children)));
32097
32097
  };
32098
32098
 
32099
32099
  var SvgArrowDownCircle = function (props) { return (React.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24" }, props),