"use client"; /* * Documentation: * Icon — https://app.subframe.com/f023064a5ca0/library?component=Icon_e24ec5dc-9821-430d-8254-1d72a7d46218 * KanbanCard — https://app.subframe.com/f023064a5ca0/library?component=KanbanCard_27235bcb-e61b-4880-9ae6-3f12d290a434 */ import React from "react"; import { FeatherFlag } from "@subframe/core"; import { FeatherLock } from "@subframe/core"; import * as SubframeUtils from "../../utils"; import { Icon } from "../Icon"; export interface KanbanCardRootProps extends React.HTMLAttributes { tagsSlot?: React.ReactNode; hideTags?: boolean; titleSlot?: React.ReactNode; valueSlot?: React.ReactNode; priceLocked?: boolean; lockedValueSlot?: React.ReactNode; footerLeftSlot?: React.ReactNode; footerRightSlot?: React.ReactNode; flagVariant?: | "primary" | "secondary" | "tertiary" | "destructive" | "neutral" | "success" | "warning" | "information"; keepTagRowSpace?: boolean; className?: string; } const KanbanCardRoot = React.forwardRef( function KanbanCardRoot( { tagsSlot, hideTags = false, titleSlot, valueSlot, priceLocked = false, lockedValueSlot, footerLeftSlot, footerRightSlot, flagVariant = "primary", keepTagRowSpace = false, className, ...otherProps }: KanbanCardRootProps, ref ) { return (
} /> {tagsSlot ? (
{tagsSlot}
) : null}
{titleSlot ? (
{titleSlot}
) : null}
{valueSlot ? (
{valueSlot}
) : null} {priceLocked && lockedValueSlot ? (
{lockedValueSlot}
) : null}
{footerLeftSlot ? (
{footerLeftSlot}
) : null} {footerRightSlot ? (
{footerRightSlot}
) : null}
); } ); export const KanbanCard = KanbanCardRoot;