// @subframe/sync-disable // @ts-nocheck "use client"; /* * Documentation: * Badge Shortcut — https://app.subframe.com/f023064a5ca0/library?component=Badge+Shortcut_97bdb082-1124-4dd7-a335-b14b822d0157 * Search Input — https://app.subframe.com/f023064a5ca0/library?component=Search+Input_75a35ed3-52c0-4435-8586-e390eb77d723 */ import React from "react"; import { FeatherLoader } from "@subframe/core"; import { FeatherSearch } from "@subframe/core"; import { FeatherX } from "@subframe/core"; import * as SubframeUtils from "../../utils"; import { BadgeShortcut } from "../BadgeShortcut"; export interface InputProps extends Omit, "placeholder"> { placeholder?: React.ReactNode; className?: string; } const Input = React.forwardRef(function Input( { placeholder, className, ...otherProps }: InputProps, ref ) { return ( ); }); export interface SearchInputRootProps extends React.HTMLAttributes { disabled?: boolean; error?: boolean; state?: "default" | "loading" | "filled"; variant?: "outline" | "filled"; size?: "small" | "medium" | "large"; fillContainer?: boolean; borderless?: boolean; noPadding?: boolean; showLabel?: boolean; label?: React.ReactNode; helpText?: React.ReactNode; message?: React.ReactNode; hideShortcut?: boolean; children?: React.ReactNode; className?: string; } const SearchInputRoot = React.forwardRef( function SearchInputRoot( { disabled = false, error = false, state = "default", variant = "outline", size = "medium", fillContainer = false, borderless = false, noPadding = false, showLabel = false, label, helpText, message, hideShortcut = false, children, className, ...otherProps }: SearchInputRootProps, ref ) { return (
{label ? ( {label} ) : null} {helpText ? ( {helpText} ) : null}
{children ? (
{children}
) : null}
K
{message ? ( {message} ) : null}
); } ); export const SearchInput = Object.assign(SearchInputRoot, { Input, });