import React from "react"; import { PlusPopconfirm as PlusPopconfirmElement } from "../dist/components/popconfirm/index.js"; export type { PlusPopconfirmElement }; export interface PlusPopconfirmProps extends Pick< React.AllHTMLAttributes, | "children" | "dir" | "hidden" | "id" | "lang" | "slot" | "style" | "title" | "translate" | "onClick" | "onFocus" | "onBlur" > { /** Determines whether a status icon should be displayed in the popconfirm. */ statusIcon?: boolean; /** Determines whether the arrow should be displayed. */ showArrow?: boolean; /** The size of the popconfirm. Available options: - `sm` (small) - `md` (medium - default) - `lg` (large) */ size?: PlusPopconfirmElement["size"]; /** The position of the popconfirm relative to the target element. Available options: - `top` (default) - `top-start` - `top-end` - `bottom` - `bottom-start` - `bottom-end` - `left` - `left-start` - `left-end` - `right` - `right-start` - `right-end` */ orientation?: PlusPopconfirmElement["orientation"]; /** Determines how the popconfirm is triggered. Available options: - `click` (default) - Popconfirm toggles on click. - `hover` - Popconfirm appears on hover. */ trigger?: PlusPopconfirmElement["trigger"]; /** The title of the popconfirm. */ title?: PlusPopconfirmElement["title"]; /** The text for the confirm button. */ confirmText?: PlusPopconfirmElement["confirmText"]; /** The text for the cancel button. */ cancelText?: PlusPopconfirmElement["cancelText"]; /** The status of the popconfirm, which affects its styling. Available options: - `success` (green) - `warning` (yellow) - `danger` (red) - `info` (blue) - `primary` (default theme color) - `default` (gray - default) */ status?: PlusPopconfirmElement["status"]; /** A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the class selectors or functions like the method `Document.getElementsByClassName()`. */ className?: string; /** Contains a space-separated list of the part names of the element that should be exposed on the host element. */ exportparts?: string; /** Used for labels to link them with their inputs (using input id). */ htmlFor?: string; /** Used to help React identify which items have changed, are added, or are removed within a list. */ key?: number | string; /** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */ part?: string; /** A mutable ref object whose `.current` property is initialized to the passed argument (`initialValue`). The returned object will persist for the full lifetime of the component. */ ref?: any; /** Allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the `Tab` key, hence the name) and determine their relative ordering for sequential focus navigation. */ tabIndex?: number; /** Emitted when the popconfirm is opened */ onPlusPopconfirmOpen?: (event: CustomEvent) => void; /** Emitted when the popconfirm is closed */ onPlusPopconfirmClose?: (event: CustomEvent) => void; /** Emitted when the confirm button is clicked */ onPlusPopconfirmConfirm?: (event: CustomEvent) => void; /** Emitted when the cancel button is clicked */ onPlusPopconfirmCancel?: (event: CustomEvent) => void; } /** * Popconfirm component that displays a confirmation dialog in a floating panel. * --- * * * ### **Events:** * - **plus-popconfirm-open** - Emitted when the popconfirm is opened * - **plus-popconfirm-close** - Emitted when the popconfirm is closed * - **plus-popconfirm-confirm** - Emitted when the confirm button is clicked * - **plus-popconfirm-cancel** - Emitted when the cancel button is clicked * * ### **Slots:** * - _default_ - The target element that triggers the popconfirm * - **icon** - Custom icon for the popconfirm * - **title** - The popconfirm title * - **header** - The entire header section * - **footer** - The footer section with action buttons * - **content** - The main content inside the popconfirm * * ### **CSS Parts:** * - **popconfirm** - The popconfirm container element * - **arrow** - The popconfirm arrow indicator * - **header** - The popconfirm header section * - **title** - The popconfirm title * - **content** - The main content inside the popconfirm * - **footer** - The footer section with action buttons */ export const PlusPopconfirm: React.ForwardRefExoticComponent;