diff --git a/front/components/assistant/conversation/InputBar.tsx b/front/components/assistant/conversation/InputBar.tsx index 498ff8bd682b..70235a5f1bd9 100644 --- a/front/components/assistant/conversation/InputBar.tsx +++ b/front/components/assistant/conversation/InputBar.tsx @@ -382,7 +382,7 @@ export function AssistantInputBar({
+
+
+ {title} +
+
+ + {price} + + + {priceLabel} + +
+
+
+ {children} +
+
+ ); +} + +const iconTable = { + check: Check, + dash: Dash, + xmark: XMark, +}; + +const iconColorTable = { + check: "s-text-emerald-500", + dash: "s-text-amber-500", + xmark: "s-text-red-500", +}; + +interface PriceTableItemProps { + label: string; + variant?: "check" | "dash" | "xmark"; + className?: string; +} + +PriceTable.Item = function ({ + label, + variant = "check", + className = "", +}: PriceTableItemProps) { + return ( +
+
+ +
+
+ {label} +
+
+ ); +}; + +interface PriceTableActionContainerProps { + children: ReactNode; +} + +PriceTable.ActionContainer = function ({ + children, +}: PriceTableActionContainerProps) { + return ( +
+
{children}
+
+ ); +}; + +interface PriceTableContainerProps { + children: ReactNode; +} + +PriceTable.Container = function ({ children }: PriceTableContainerProps) { + return
{children}
; +}; diff --git a/sparkle/src/stories/PriceTable.stories.tsx b/sparkle/src/stories/PriceTable.stories.tsx new file mode 100644 index 000000000000..0e2fbc39858d --- /dev/null +++ b/sparkle/src/stories/PriceTable.stories.tsx @@ -0,0 +1,70 @@ +import type { Meta } from "@storybook/react"; +import React from "react"; + +import { Button, PriceTable } from "../index_with_tw_base"; + +const meta = { + title: "Molecule/PriceTable", + component: PriceTable, +} satisfies Meta; + +export default meta; + +export const Pricing = () => { + return ( +
+ + + + + + + + + + + + + + + + + + +
+ ); +};