@dust-tt/sparkle 0.2.138 → 0.2.139

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.
@@ -12,7 +12,7 @@ interface PriceTableProps {
12
12
  export declare function PriceTable({ title, price, color, size, priceLabel, className, magnified, children, }: PriceTableProps): React.JSX.Element;
13
13
  export declare namespace PriceTable {
14
14
  var Item: ({ label, variant, size, className, }: PriceTableItemProps) => React.JSX.Element;
15
- var ActionContainer: ({ children, size, }: PriceTableActionContainerProps) => React.JSX.Element;
15
+ var ActionContainer: ({ children, size, position, }: PriceTableActionContainerProps) => React.JSX.Element;
16
16
  var Container: ({ children }: PriceTableContainerProps) => React.JSX.Element;
17
17
  }
18
18
  interface PriceTableItemProps {
@@ -24,6 +24,7 @@ interface PriceTableItemProps {
24
24
  interface PriceTableActionContainerProps {
25
25
  children: ReactNode;
26
26
  size?: "xs" | "sm";
27
+ position?: "top" | "bottom";
27
28
  }
28
29
  interface PriceTableContainerProps {
29
30
  children: ReactNode;
package/dist/esm/index.js CHANGED
@@ -54711,9 +54711,13 @@ PriceTable.Item = function (_a) {
54711
54711
  : "", "s-overflow-hidden") }, label)));
54712
54712
  };
54713
54713
  PriceTable.ActionContainer = function (_a) {
54714
- var children = _a.children, _b = _a.size, size = _b === void 0 ? "xs" : _b;
54715
- return (React__default.createElement("div", { className: classNames("s-flex s-w-full s-flex-grow s-justify-center s-px-2", size === "xs" ? "s-py-2" : "s-py-4") },
54716
- React__default.createElement("div", { className: "s-flex s-h-full s-flex-col s-justify-end" }, children)));
54714
+ var children = _a.children, _b = _a.size, size = _b === void 0 ? "xs" : _b, _c = _a.position, position = _c === void 0 ? "bottom" : _c;
54715
+ return (React__default.createElement(React__default.Fragment, null,
54716
+ position === "bottom" ? React__default.createElement("div", { className: "s-h-full s-w-full" }) : null,
54717
+ React__default.createElement("div", { className: classNames("s-flex s-w-full s-justify-center s-px-2", size === "xs" ? "s-py-2" : "s-py-4", position === "top"
54718
+ ? "s-border-b s-border-structure-100 dark:s-border-structure-200-dark/50"
54719
+ : "") },
54720
+ React__default.createElement("div", { className: "s-flex s-h-full s-flex-col s-justify-end" }, children))));
54717
54721
  };
54718
54722
  PriceTable.Container = function (_a) {
54719
54723
  var children = _a.children;