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 */ 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. */ type StepperPassThrough = PassThrough>; /** * Defines valid pass-through options in StepList component. * @template I Type of instance. * * @group Interface */ 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. */ type StepListPassThrough = PassThrough>; /** * Defines valid pass-through options in StepperSeparator component. * @template I Type of instance. * * @group Interface */ 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. */ type StepperSeparatorPassThrough = PassThrough>; /** * Defines valid pass-through options in StepItem component. * @template I Type of instance. * * @group Interface */ 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. */ type StepItemPassThrough = PassThrough>; /** * Defines valid pass-through options in Step component. * @template I Type of instance. * * @group Interface */ 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. */ type StepPassThrough = PassThrough>; /** * Defines valid pass-through options in StepPanel component. * @template I Type of instance. * * @group Interface */ 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. */ type StepPanelPassThrough = PassThrough>; /** * Defines valid pass-through options in StepPanels component. * @template I Type of instance. * * @group Interface */ 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. */ 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 */ 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 */ interface StepPanelContentTemplateContext { activateCallback: (index: number) => void; value: number | undefined; active: boolean; } export type { StepContentTemplateContext, StepItemPassThrough, StepItemPassThroughOptions, StepListPassThrough, StepListPassThroughOptions, StepPanelContentTemplateContext, StepPanelPassThrough, StepPanelPassThroughOptions, StepPanelsPassThrough, StepPanelsPassThroughOptions, StepPassThrough, StepPassThroughOptions, StepperPassThrough, StepperPassThroughOptions, StepperSeparatorPassThrough, StepperSeparatorPassThroughOptions };