@hotelinking/ui 16.45.6 → 16.46.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.d.ts CHANGED
@@ -169,6 +169,19 @@ declare const Sizes: readonly ["small", "medium", "big"];
169
169
 
170
170
  declare type Sizes_2 = (typeof Sizes)[number];
171
171
 
172
+ export declare type StepStatus = "complete" | "current" | "upcoming";
173
+
174
+ export declare type StepType = {
175
+ /** Step unique identifier */
176
+ id: string | number;
177
+ /** Step name */
178
+ name: string;
179
+ /** Step description */
180
+ description: string;
181
+ /** Step status. If not provided, defaults to "upcoming" */
182
+ status?: StepStatus;
183
+ };
184
+
172
185
  export declare type TableItemType = {
173
186
  /** item checkbox is disabled */
174
187
  disabled?: boolean;
@@ -1544,6 +1557,34 @@ export declare interface UiStatsInterface {
1544
1557
  loading?: boolean;
1545
1558
  }
1546
1559
 
1560
+ export declare const uiSteps: DefineComponent<UiStepsInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1561
+ stepCompleted: (step: StepType) => any;
1562
+ stepCurrent: (step: StepType) => any;
1563
+ stepUpcoming: (step: StepType) => any;
1564
+ stepClick: (step: StepType, index: number) => any;
1565
+ }, string, PublicProps, Readonly<UiStepsInterface> & Readonly<{
1566
+ onStepCompleted?: ((step: StepType) => any) | undefined;
1567
+ onStepCurrent?: ((step: StepType) => any) | undefined;
1568
+ onStepUpcoming?: ((step: StepType) => any) | undefined;
1569
+ onStepClick?: ((step: StepType, index: number) => any) | undefined;
1570
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1571
+
1572
+ export declare interface UiStepsEventsInterface {
1573
+ /** Emitted when a completed step is clicked */
1574
+ (e: "stepCompleted", step: StepType): void;
1575
+ /** Emitted when the current step is clicked */
1576
+ (e: "stepCurrent", step: StepType): void;
1577
+ /** Emitted when an upcoming step is clicked */
1578
+ (e: "stepUpcoming", step: StepType): void;
1579
+ /** Emitted when any step is clicked (includes step and index) */
1580
+ (e: "stepClick", step: StepType, index: number): void;
1581
+ }
1582
+
1583
+ export declare interface UiStepsInterface {
1584
+ /** Array of steps */
1585
+ steps: StepType[];
1586
+ }
1587
+
1547
1588
  export declare const uiStripedCard: DefineComponent<UiStripedCardInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1548
1589
  itemClicked: (T: string) => any;
1549
1590
  }, string, PublicProps, Readonly<UiStripedCardInterface> & Readonly<{