import { type Size } from './p-btn.types'; import PIcon from '../p-icon/p-icon.vue'; import { type VariantProps } from 'tailwind-variants'; import { type PropType } from 'vue'; import { type RouteLocationRaw } from 'vue-router'; /** * Type for the icon prop */ type Icon = InstanceType['$props']['icon']; declare const btn: import("tailwind-variants").TVReturnType<{ readonly type: { readonly primary: { readonly button: "bg-primary text-surface hover:bg-accent active:bg-p-blue-80"; readonly loader: "text-surface"; }; readonly secondary: { readonly button: "bg-p-gray-20 hover:bg-p-gray-30 active:bg-p-gray-40"; readonly loader: "text-p-purple-60"; }; readonly 'primary-outline': { readonly button: "bg-p-blue-10 text-p-purple-60 ring-1 ring-inset ring-p-purple-60 hover:bg-p-gray-20"; readonly loader: "text-p-purple-60"; }; readonly 'secondary-outline': { readonly button: "bg-surface text-p-purple-60 ring-1 ring-inset ring-p-gray-30 hover:bg-p-blue-10 aria-selected:bg-p-blue-10"; readonly loader: "text-p-purple-60"; }; readonly 'secondary-outline-blue': { readonly button: "bg-surface text-p-purple-60 ring-1 ring-inset ring-p-gray-30 hover:bg-p-blue-10 aria-selected:bg-p-blue-15 aria-selected:text-p-blue-60"; readonly loader: "text-p-purple-60"; }; readonly error: { readonly button: "bg-p-red-40 text-white hover:bg-p-red-50"; readonly loader: "text-white"; }; readonly 'error-outline': { readonly button: "bg-surface text-p-red-50 ring-1 ring-inset ring-p-red-20 hover:bg-p-red-10/30"; readonly loader: "text-p-red-50"; }; readonly success: { readonly button: "bg-p-green-40 text-white hover:bg-p-green-50"; readonly loader: "text-white"; }; readonly black: { readonly button: "bg-night text-white hover:bg-p-gray-80"; readonly loader: "text-white"; }; readonly 'black-outline-gradient': { readonly button: "bg-gradient-to-r from-[#17c0e8] via-[#8e8bda] to-[#f65ece] hover:bg-gradient-to-l p-px group"; readonly content: "bg-night rounded-[calc(theme(borderRadius.DEFAULT)-1px)] text-white group-hover:bg-p-gray-80 transition-colors duration-300"; readonly icon: "-mx-px"; readonly loader: "text-white"; }; readonly 'primary-link': { readonly button: "bg-transparent text-primary underline hover:text-accent"; readonly loader: "text-p-blue-60"; }; readonly 'secondary-ghost': { readonly button: "text-on-surface hover:bg-p-gray-20"; readonly loader: "text-p-purple-60"; }; readonly 'secondary-ghost-dark': { readonly button: "text-white hover:bg-p-purple-50"; readonly loader: "text-p-blue-15"; }; }; readonly size: { readonly sm: { readonly button: "text-sm leading-5 h-8"; readonly content: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 gap-1"; readonly icon: "text-base p-0.5"; }; readonly md: { readonly button: "text-base h-10"; readonly content: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 gap-2"; readonly icon: "text-xl"; }; readonly lg: { readonly button: "text-lg leading-6 h-12"; readonly content: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 gap-2.5"; readonly icon: "text-2xl"; }; }; }, { readonly button: "relative inline-flex whitespace-nowrap rounded font-medium outline-none disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:cursor-default aria-disabled:opacity-50"; readonly content: "flex items-center justify-center has-[.slot-wrapper:empty]:gap-0 w-full"; readonly loader: "absolute bottom-0 left-0 right-0 top-0 flex items-center justify-center font-medium"; readonly icon: "shrink-0"; }, undefined, { readonly type: { readonly primary: { readonly button: "bg-primary text-surface hover:bg-accent active:bg-p-blue-80"; readonly loader: "text-surface"; }; readonly secondary: { readonly button: "bg-p-gray-20 hover:bg-p-gray-30 active:bg-p-gray-40"; readonly loader: "text-p-purple-60"; }; readonly 'primary-outline': { readonly button: "bg-p-blue-10 text-p-purple-60 ring-1 ring-inset ring-p-purple-60 hover:bg-p-gray-20"; readonly loader: "text-p-purple-60"; }; readonly 'secondary-outline': { readonly button: "bg-surface text-p-purple-60 ring-1 ring-inset ring-p-gray-30 hover:bg-p-blue-10 aria-selected:bg-p-blue-10"; readonly loader: "text-p-purple-60"; }; readonly 'secondary-outline-blue': { readonly button: "bg-surface text-p-purple-60 ring-1 ring-inset ring-p-gray-30 hover:bg-p-blue-10 aria-selected:bg-p-blue-15 aria-selected:text-p-blue-60"; readonly loader: "text-p-purple-60"; }; readonly error: { readonly button: "bg-p-red-40 text-white hover:bg-p-red-50"; readonly loader: "text-white"; }; readonly 'error-outline': { readonly button: "bg-surface text-p-red-50 ring-1 ring-inset ring-p-red-20 hover:bg-p-red-10/30"; readonly loader: "text-p-red-50"; }; readonly success: { readonly button: "bg-p-green-40 text-white hover:bg-p-green-50"; readonly loader: "text-white"; }; readonly black: { readonly button: "bg-night text-white hover:bg-p-gray-80"; readonly loader: "text-white"; }; readonly 'black-outline-gradient': { readonly button: "bg-gradient-to-r from-[#17c0e8] via-[#8e8bda] to-[#f65ece] hover:bg-gradient-to-l p-px group"; readonly content: "bg-night rounded-[calc(theme(borderRadius.DEFAULT)-1px)] text-white group-hover:bg-p-gray-80 transition-colors duration-300"; readonly icon: "-mx-px"; readonly loader: "text-white"; }; readonly 'primary-link': { readonly button: "bg-transparent text-primary underline hover:text-accent"; readonly loader: "text-p-blue-60"; }; readonly 'secondary-ghost': { readonly button: "text-on-surface hover:bg-p-gray-20"; readonly loader: "text-p-purple-60"; }; readonly 'secondary-ghost-dark': { readonly button: "text-white hover:bg-p-purple-50"; readonly loader: "text-p-blue-15"; }; }; readonly size: { readonly sm: { readonly button: "text-sm leading-5 h-8"; readonly content: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 gap-1"; readonly icon: "text-base p-0.5"; }; readonly md: { readonly button: "text-base h-10"; readonly content: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 gap-2"; readonly icon: "text-xl"; }; readonly lg: { readonly button: "text-lg leading-6 h-12"; readonly content: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 gap-2.5"; readonly icon: "text-2xl"; }; }; }, { readonly button: "relative inline-flex whitespace-nowrap rounded font-medium outline-none disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:cursor-default aria-disabled:opacity-50"; readonly content: "flex items-center justify-center has-[.slot-wrapper:empty]:gap-0 w-full"; readonly loader: "absolute bottom-0 left-0 right-0 top-0 flex items-center justify-center font-medium"; readonly icon: "shrink-0"; }, import("tailwind-variants").TVReturnType<{ readonly type: { readonly primary: { readonly button: "bg-primary text-surface hover:bg-accent active:bg-p-blue-80"; readonly loader: "text-surface"; }; readonly secondary: { readonly button: "bg-p-gray-20 hover:bg-p-gray-30 active:bg-p-gray-40"; readonly loader: "text-p-purple-60"; }; readonly 'primary-outline': { readonly button: "bg-p-blue-10 text-p-purple-60 ring-1 ring-inset ring-p-purple-60 hover:bg-p-gray-20"; readonly loader: "text-p-purple-60"; }; readonly 'secondary-outline': { readonly button: "bg-surface text-p-purple-60 ring-1 ring-inset ring-p-gray-30 hover:bg-p-blue-10 aria-selected:bg-p-blue-10"; readonly loader: "text-p-purple-60"; }; readonly 'secondary-outline-blue': { readonly button: "bg-surface text-p-purple-60 ring-1 ring-inset ring-p-gray-30 hover:bg-p-blue-10 aria-selected:bg-p-blue-15 aria-selected:text-p-blue-60"; readonly loader: "text-p-purple-60"; }; readonly error: { readonly button: "bg-p-red-40 text-white hover:bg-p-red-50"; readonly loader: "text-white"; }; readonly 'error-outline': { readonly button: "bg-surface text-p-red-50 ring-1 ring-inset ring-p-red-20 hover:bg-p-red-10/30"; readonly loader: "text-p-red-50"; }; readonly success: { readonly button: "bg-p-green-40 text-white hover:bg-p-green-50"; readonly loader: "text-white"; }; readonly black: { readonly button: "bg-night text-white hover:bg-p-gray-80"; readonly loader: "text-white"; }; readonly 'black-outline-gradient': { readonly button: "bg-gradient-to-r from-[#17c0e8] via-[#8e8bda] to-[#f65ece] hover:bg-gradient-to-l p-px group"; readonly content: "bg-night rounded-[calc(theme(borderRadius.DEFAULT)-1px)] text-white group-hover:bg-p-gray-80 transition-colors duration-300"; readonly icon: "-mx-px"; readonly loader: "text-white"; }; readonly 'primary-link': { readonly button: "bg-transparent text-primary underline hover:text-accent"; readonly loader: "text-p-blue-60"; }; readonly 'secondary-ghost': { readonly button: "text-on-surface hover:bg-p-gray-20"; readonly loader: "text-p-purple-60"; }; readonly 'secondary-ghost-dark': { readonly button: "text-white hover:bg-p-purple-50"; readonly loader: "text-p-blue-15"; }; }; readonly size: { readonly sm: { readonly button: "text-sm leading-5 h-8"; readonly content: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 gap-1"; readonly icon: "text-base p-0.5"; }; readonly md: { readonly button: "text-base h-10"; readonly content: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 gap-2"; readonly icon: "text-xl"; }; readonly lg: { readonly button: "text-lg leading-6 h-12"; readonly content: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 gap-2.5"; readonly icon: "text-2xl"; }; }; }, { readonly button: "relative inline-flex whitespace-nowrap rounded font-medium outline-none disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:cursor-default aria-disabled:opacity-50"; readonly content: "flex items-center justify-center has-[.slot-wrapper:empty]:gap-0 w-full"; readonly loader: "absolute bottom-0 left-0 right-0 top-0 flex items-center justify-center font-medium"; readonly icon: "shrink-0"; }, undefined, unknown, unknown, undefined>>; /** * Native button types (HTML attribute values) */ declare const BUTTON_NATIVE_TYPES: readonly ["button", "submit", "reset"]; type ButtonNativeType = (typeof BUTTON_NATIVE_TYPES)[number]; type ButtonType = NonNullable['type']>; declare const _default: typeof __VLS_export; export default _default; declare const __VLS_export: __VLS_WithSlots; default: string; validator(value: ButtonType): boolean; }; /** * The button native type e.g button, submit, reset */ nativeType: { type: PropType; default: string; validator(value: ButtonNativeType): boolean; }; /** * The button size e.g sm, md, lg */ size: { type: PropType; default: string; validator(value: Size): boolean; }; /** * Whether the button is loading */ loading: { type: BooleanConstructor; default: boolean; }; /** * Whether the button is selected (sets aria-selected attribute) */ selected: { type: BooleanConstructor; default: boolean; }; /** * Exactly as the `to` prop in `RouterLink`, when used, it renders a link that triggers a navigation on click. * See https://router.vuejs.org/api/#RouteLocationRaw */ to: { type: PropType; default: string; }; /** * The icon to display on the button */ icon: { type: PropType; default: string; }; /** * The icon to display on the right side of the button */ iconRight: { type: PropType; default: string; }; }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly; default: string; validator(value: ButtonType): boolean; }; /** * The button native type e.g button, submit, reset */ nativeType: { type: PropType; default: string; validator(value: ButtonNativeType): boolean; }; /** * The button size e.g sm, md, lg */ size: { type: PropType; default: string; validator(value: Size): boolean; }; /** * Whether the button is loading */ loading: { type: BooleanConstructor; default: boolean; }; /** * Whether the button is selected (sets aria-selected attribute) */ selected: { type: BooleanConstructor; default: boolean; }; /** * Exactly as the `to` prop in `RouterLink`, when used, it renders a link that triggers a navigation on click. * See https://router.vuejs.org/api/#RouteLocationRaw */ to: { type: PropType; default: string; }; /** * The icon to display on the button */ icon: { type: PropType; default: string; }; /** * The icon to display on the right side of the button */ iconRight: { type: PropType; default: string; }; }>> & Readonly<{}>, { icon: "delete" | "edit" | "send" | "settings" | "empty" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-down" | "ok-circle" | "cancel-circle" | "ok" | "cancel" | "ok-bold" | "cancel-bold" | "archive" | "lock" | "drag-horizontal" | "drag-vertical" | "email" | "location" | "calendar" | "save" | "copy" | "plus" | "add" | "more" | "filters" | "bar-chart" | "list" | "formula" | "refresh" | "download" | "upload" | "info" | "help" | "search" | "warning" | (string & {}); size: "sm" | "md" | "lg"; type: ButtonType; nativeType: "button" | "submit" | "reset"; loading: boolean; selected: boolean; to: string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric; iconRight: "delete" | "edit" | "send" | "settings" | "empty" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-down" | "ok-circle" | "cancel-circle" | "ok" | "cancel" | "ok-bold" | "cancel-bold" | "archive" | "lock" | "drag-horizontal" | "drag-vertical" | "email" | "location" | "calendar" | "save" | "copy" | "plus" | "add" | "more" | "filters" | "bar-chart" | "list" | "formula" | "refresh" | "download" | "upload" | "info" | "help" | "search" | "warning" | (string & {}); }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, { /** * Default slot - the content of the button. * This should contain the text or HTML to display inside the button. */ default?: () => void; }>; type __VLS_WithSlots = T & { new (): { $slots: S; }; };