diff --git a/sparkle/package-lock.json b/sparkle/package-lock.json index 1c4c9db812ac..3c6fe1e7a91a 100644 --- a/sparkle/package-lock.json +++ b/sparkle/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dust-tt/sparkle", - "version": "0.2.138", + "version": "0.2.139", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dust-tt/sparkle", - "version": "0.2.138", + "version": "0.2.139", "license": "ISC", "dependencies": { "@headlessui/react": "^1.7.17", diff --git a/sparkle/package.json b/sparkle/package.json index 6352862ad9b6..47da99781d64 100644 --- a/sparkle/package.json +++ b/sparkle/package.json @@ -1,6 +1,6 @@ { "name": "@dust-tt/sparkle", - "version": "0.2.138", + "version": "0.2.139", "scripts": { "build": "rm -rf dist && rollup -c", "build:with-tw-base": "rollup -c --environment INCLUDE_TW_BASE:true", diff --git a/sparkle/src/components/PriceTable.tsx b/sparkle/src/components/PriceTable.tsx index 8359cd8b0133..47d851ff964a 100644 --- a/sparkle/src/components/PriceTable.tsx +++ b/sparkle/src/components/PriceTable.tsx @@ -190,21 +190,31 @@ PriceTable.Item = function ({ interface PriceTableActionContainerProps { children: ReactNode; size?: "xs" | "sm"; + position?: "top" | "bottom"; } PriceTable.ActionContainer = function ({ children, size = "xs", + position = "bottom", }: PriceTableActionContainerProps) { return ( -
-
{children}
-
+ <> + {position === "bottom" ?
: null} +
+
+ {children} +
+
+ ); }; diff --git a/sparkle/src/stories/PriceTable.stories.tsx b/sparkle/src/stories/PriceTable.stories.tsx index fe8e49465448..c2d07d7e049b 100644 --- a/sparkle/src/stories/PriceTable.stories.tsx +++ b/sparkle/src/stories/PriceTable.stories.tsx @@ -14,30 +14,15 @@ export const PricingXS = () => { return (
- - - - - - - - -
- Your current plan -
-
-
+ +