@proximus/lavender-progress-stepper 0.0.0-stage → 1.4.20-alpha.12

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.
@@ -0,0 +1,39 @@
1
+ import { WithExtraAttributes } from '@proximus/lavender-common';
2
+ export declare const progressStepperDirectionValues: string[];
3
+ export declare const progressStepperDirectionAttributes: string[];
4
+ /**
5
+ * @summary Displays the progression of a user through a sequence of steps.
6
+ * @slot - `px-progress-stepper-item` and `px-progress-stepper-link` elements.
7
+ * @attr {"default" | "vertical" | "horizontal"} direction - Layout direction of the stepper for all breakpoints. Defaults to `horizontal`.
8
+ * @attr {"default" | "vertical" | "horizontal"} direction--mobile - Layout direction on mobile. Overrides `direction`.
9
+ * @attr {"default" | "vertical" | "horizontal"} direction--tablet - Layout direction on tablet. Overrides `direction`.
10
+ * @attr {"default" | "vertical" | "horizontal"} direction--laptop - Layout direction on laptop. Overrides `direction`.
11
+ * @attr {"default" | "vertical" | "horizontal"} direction--desktop - Layout direction on desktop. Overrides `direction`.
12
+ * @attr {string} icon-from - Name of the `px-icon-set` used for the items icons. Defaults to `lavender`.
13
+ * @attr {string} aria-label - Navigation label when steps contain links.
14
+ */
15
+ export declare class ProgressStepper extends WithExtraAttributes {
16
+ #private;
17
+ protected static readonly template: HTMLTemplateElement;
18
+ constructor();
19
+ static get observedAttributes(): string[];
20
+ connectedCallback(): void;
21
+ disconnectedCallback(): void;
22
+ attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
23
+ updateDirection(attrName: string, newValue: string, attrValues: string[]): void;
24
+ configureChildren(): void;
25
+ get $slot(): HTMLSlotElement | null;
26
+ get $children(): NodeListOf<Element>;
27
+ get direction(): string | null;
28
+ set direction(value: string | null);
29
+ get directionMobile(): string | null;
30
+ set directionMobile(value: string | null);
31
+ get directionTablet(): string | null;
32
+ set directionTablet(value: string | null);
33
+ get directionLaptop(): string | null;
34
+ set directionLaptop(value: string | null);
35
+ get directionDesktop(): string | null;
36
+ set directionDesktop(value: string | null);
37
+ get iconFrom(): string | null;
38
+ set iconFrom(value: string | null);
39
+ }
@@ -0,0 +1,25 @@
1
+ import '@proximus/lavender-icon';
2
+ import '@proximus/lavender-span';
3
+ import { WithExtraAttributes } from '@proximus/lavender-common';
4
+ export declare const progressStepperItemStateValues: string[];
5
+ export declare abstract class ProgressStepperBase extends WithExtraAttributes {
6
+ protected static createItemTemplate(titleTag: 'span' | 'a'): HTMLTemplateElement;
7
+ protected constructor(template: HTMLTemplateElement);
8
+ static get observedAttributes(): string[];
9
+ attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
10
+ updateState(attrName: string, newValue: string, attrValues: string[]): void;
11
+ protected applyAriaCurrent(): void;
12
+ get $el(): HTMLLIElement;
13
+ get $title(): HTMLElement | null;
14
+ get $indicatorNumber(): HTMLElement | null;
15
+ get $icon(): HTMLElement | null;
16
+ get $shownSR(): HTMLElement | null;
17
+ get state(): string | null;
18
+ set state(value: string | null);
19
+ get item(): string | null;
20
+ set item(value: string | null);
21
+ get iconFrom(): string | null;
22
+ set iconFrom(value: string | null);
23
+ get completedLabel(): string | null;
24
+ set completedLabel(value: string | null);
25
+ }
@@ -0,0 +1,16 @@
1
+ import { ProgressStepperBase } from './ProgressStepperBase';
2
+ export { progressStepperItemStateValues } from './ProgressStepperBase';
3
+ export declare const PROGRESS_STEPPER_ITEM_CONNECTED_EVENT = "px-progress-stepper-item-connected";
4
+ /**
5
+ * @summary A non-clickable step of a `px-progress-stepper`.
6
+ * @slot title - Title of the step.
7
+ * @slot helper - Helper text displayed below the title.
8
+ * @attr {"upcoming" | "current" | "completed"} state - State of the step. Defaults to `upcoming`.
9
+ * @attr {string} icon-from - Name of the `px-icon-set` used for the check icon. Defaults to `lavender`.
10
+ * @attr {string} completed-label - Screen-reader text for a completed step.
11
+ */
12
+ export declare class ProgressStepperItem extends ProgressStepperBase {
13
+ protected static readonly template: HTMLTemplateElement;
14
+ constructor();
15
+ connectedCallback(): void;
16
+ }
@@ -0,0 +1,20 @@
1
+ import { ProgressStepperBase } from './ProgressStepperBase';
2
+ export declare const PROGRESS_STEPPER_LINK_CONNECTED_EVENT = "px-progress-stepper-link-connected";
3
+ /**
4
+ * @summary A clickable step of a `px-progress-stepper`.
5
+ * @slot title - Title of the step, rendered as a link.
6
+ * @slot helper - Helper text displayed below the title.
7
+ * @attr {string} href - URL of the step.
8
+ * @attr {"upcoming" | "current" | "completed"} state - State of the step. Defaults to `upcoming`.
9
+ * @attr {string} icon-from - Name of the `px-icon-set` used for the check icon. Defaults to `lavender`.
10
+ * @attr {string} completed-label - Screen-reader text for a completed step.
11
+ */
12
+ export declare class ProgressStepperLink extends ProgressStepperBase {
13
+ protected static readonly template: HTMLTemplateElement;
14
+ constructor();
15
+ static get observedAttributes(): string[];
16
+ connectedCallback(): void;
17
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
18
+ get href(): string | null;
19
+ set href(value: string | null);
20
+ }