@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.
- package/dist/cjs/components/PriceTable.d.ts +2 -1
- package/dist/cjs/index.js +7 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/PriceTable.d.ts +2 -1
- package/dist/esm/index.js +7 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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/cjs/index.js
CHANGED
|
@@ -54731,9 +54731,13 @@ PriceTable.Item = function (_a) {
|
|
|
54731
54731
|
: "", "s-overflow-hidden") }, label)));
|
|
54732
54732
|
};
|
|
54733
54733
|
PriceTable.ActionContainer = function (_a) {
|
|
54734
|
-
var children = _a.children, _b = _a.size, size = _b === void 0 ? "xs" : _b;
|
|
54735
|
-
return (React.createElement(
|
|
54736
|
-
React.createElement("div", { className: "s-
|
|
54734
|
+
var children = _a.children, _b = _a.size, size = _b === void 0 ? "xs" : _b, _c = _a.position, position = _c === void 0 ? "bottom" : _c;
|
|
54735
|
+
return (React.createElement(React.Fragment, null,
|
|
54736
|
+
position === "bottom" ? React.createElement("div", { className: "s-h-full s-w-full" }) : null,
|
|
54737
|
+
React.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"
|
|
54738
|
+
? "s-border-b s-border-structure-100 dark:s-border-structure-200-dark/50"
|
|
54739
|
+
: "") },
|
|
54740
|
+
React.createElement("div", { className: "s-flex s-h-full s-flex-col s-justify-end" }, children))));
|
|
54737
54741
|
};
|
|
54738
54742
|
PriceTable.Container = function (_a) {
|
|
54739
54743
|
var children = _a.children;
|