import { MotionOptions } from "@primeuix/motion"; import { PassThrough, PassThroughOption } from "primeng/api"; /** * Defines valid pass-through options in Stepper component. * @template I Type of instance. * * @group Interface */ export interface StepperPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; /** * Used to pass options to the motion component/directive. */ motion?: MotionOptions; } /** * Defines valid pass-through options in Stepper component. * @see {@link StepperPassThroughOptions} * * @template I Type of instance. */ export type StepperPassThrough = PassThrough>; /** * Defines valid pass-through options in StepList component. * @template I Type of instance. * * @group Interface */ export interface StepListPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * Defines valid pass-through options in StepList component. * @see {@link StepListPassThroughOptions} * * @template I Type of instance. */ export type StepListPassThrough = PassThrough>; /** * Defines valid pass-through options in StepperSeparator component. * @template I Type of instance. * * @group Interface */ export interface StepperSeparatorPassThroughOptions { /** * Used to pass attributes to the separator's DOM element. */ root?: PassThroughOption; } /** * Defines valid pass-through options in StepperSeparator component. * @see {@link StepperSeparatorPassThroughOptions} * * @template I Type of instance. */ export type StepperSeparatorPassThrough = PassThrough>; /** * Defines valid pass-through options in StepItem component. * @template I Type of instance. * * @group Interface */ export interface StepItemPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * Defines valid pass-through options in StepItem component. * @see {@link StepItemPassThroughOptions} * * @template I Type of instance. */ export type StepItemPassThrough = PassThrough>; /** * Defines valid pass-through options in Step component. * @template I Type of instance. * * @group Interface */ export interface StepPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; /** * Used to pass attributes to the header's DOM element. */ header?: PassThroughOption; /** * Used to pass attributes to the number's DOM element. */ number?: PassThroughOption; /** * Used to pass attributes to the title's DOM element. */ title?: PassThroughOption; } /** * Defines valid pass-through options in Step component. * @see {@link StepPassThroughOptions} * * @template I Type of instance. */ export type StepPassThrough = PassThrough>; /** * Defines valid pass-through options in StepPanel component. * @template I Type of instance. * * @group Interface */ export interface StepPanelPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; /** * Used to pass attributes to the content wrapper DOM element. */ contentWrapper?: PassThroughOption; /** * Used to pass attributes to the content's DOM element. */ content?: PassThroughOption; } /** * Defines valid pass-through options in StepPanel component. * @see {@link StepPanelPassThroughOptions} * * @template I Type of instance. */ export type StepPanelPassThrough = PassThrough>; /** * Defines valid pass-through options in StepPanels component. * @template I Type of instance. * * @group Interface */ export interface StepPanelsPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; } /** * Defines valid pass-through options in StepPanels component. * @see {@link StepPanelsPassThroughOptions} * * @template I Type of instance. */ export type StepPanelsPassThrough = PassThrough>; /** * Context interface for the StepPanel content template. * @property {() => void} activateCallback - Callback function to activate a step. * @property {number} value - The value associated with the step. * @property {boolean} active - A flag indicating whether the step is active. * @group Interface */ export interface StepContentTemplateContext { activateCallback: () => void; value: number | undefined; active: boolean; } /** * Context interface for the StepPanel content template. * @property {(index: number) => void} activateCallback - Callback function to activate a step. * @property {number} value - The value associated with the step. * @property {boolean} active - A flag indicating whether the step is active. * @group Interface */ export interface StepPanelContentTemplateContext { activateCallback: (index: number) => void; value: number | undefined; active: boolean; }