@proximus/lavender-button 2.0.0-alpha.20 → 2.0.0-alpha.200

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/Button.d.ts CHANGED
@@ -1,19 +1,22 @@
1
1
  import { PxElement } from '@proximus/lavender-common';
2
- export declare const variantValues: readonly ["", "default", "secondary", "tertiary", "link", "patch", "patch-info", "patch-black-friday", "patch-eco", "actionable-tag", "header-dropdown"];
2
+ export declare const variantValues: readonly ["", "default", "secondary", "tertiary", "link", "patch", "patch-info", "patch-black-friday", "patch-eco", "actionable-tag", "actionable-tag-secondary", "header-dropdown", "header-minimal-dropdown"];
3
3
  export declare const shapeValues: string[];
4
- export type ButtonVariant = (typeof variantValues)[number];
5
4
  /**
6
5
  * @summary Primary button for actions, forms, and more.
7
6
  * @slot before - Content to be placed before the button text,
8
7
  * @slot after - Content to be placed after the button text
8
+ * @attr {string} name - The name of the button, submitted as a pair with the button's value as part of the form data.
9
+ * @attr {string} value - The value associated with the button's name when it's submitted with a form.
10
+ * @attr {string} type - The default behavior of the button. Possible values are 'submit', 'reset', and 'button'.
11
+ * @attr {boolean} disabled - Whether the button is disabled.
9
12
  */
10
13
  export declare class Button extends PxElement<HTMLButtonElement> {
11
14
  static nativeName: string;
12
- internals: ElementInternals;
13
15
  private template;
14
16
  constructor();
15
17
  static get observedAttributes(): string[];
16
18
  connectedCallback(): void;
19
+ disconnectedCallback(): void;
17
20
  attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
18
21
  checkClass(value: string): void;
19
22
  _toggleClass(oldValue: string, newValue: string): void;
@@ -22,34 +25,36 @@ export declare class Button extends PxElement<HTMLButtonElement> {
22
25
  updateExtended(attributeName: string, newValue: string): void;
23
26
  updateLoading(): void;
24
27
  updateShape(attrName: string, newValue: string, attrValue: string[]): void;
25
- get variant(): string;
26
- set variant(value: string);
27
- get state(): string;
28
- set state(value: string);
29
- get extended(): string;
30
- set extended(value: string);
31
- get extendedMobile(): string;
32
- set extendedMobile(value: string);
33
- get extendedTablet(): string;
34
- set extendedTablet(value: string);
35
- get extendedLaptop(): string;
36
- set extendedLaptop(value: string);
37
- get extendedDesktop(): string;
38
- set extendedDesktop(value: string);
39
- get loading(): string;
40
- set loading(value: string);
41
- get shape(): string;
42
- set shape(value: string);
43
- get shapeMobile(): string;
44
- set shapeMobile(value: string);
45
- get shapeTablet(): string;
46
- set shapeTablet(value: string);
47
- get shapeLaptop(): string;
48
- set shapeLaptop(value: string);
49
- get shapeDesktop(): string;
50
- set shapeDesktop(value: string);
51
- get inverted(): string;
52
- set inverted(value: string);
53
- get ariaExpanded(): string;
54
- set ariaExpanded(value: string);
28
+ get variant(): string | null;
29
+ set variant(value: string | null);
30
+ get state(): string | null;
31
+ set state(value: string | null);
32
+ get extended(): boolean;
33
+ set extended(value: boolean);
34
+ get extendedMobile(): boolean;
35
+ set extendedMobile(value: boolean);
36
+ get extendedTablet(): boolean;
37
+ set extendedTablet(value: boolean);
38
+ get extendedLaptop(): boolean;
39
+ set extendedLaptop(value: boolean);
40
+ get extendedDesktop(): boolean;
41
+ set extendedDesktop(value: boolean);
42
+ get loading(): boolean;
43
+ set loading(value: boolean);
44
+ get shape(): string | null;
45
+ set shape(value: string | null);
46
+ get shapeMobile(): string | null;
47
+ set shapeMobile(value: string | null);
48
+ get shapeTablet(): string | null;
49
+ set shapeTablet(value: string | null);
50
+ get shapeLaptop(): string | null;
51
+ set shapeLaptop(value: string | null);
52
+ get shapeDesktop(): string | null;
53
+ set shapeDesktop(value: string | null);
54
+ get inverted(): boolean;
55
+ set inverted(value: boolean);
56
+ get ariaExpanded(): string | null;
57
+ set ariaExpanded(value: string | null);
58
+ get size(): string | null;
59
+ set size(value: string | null);
55
60
  }
@@ -0,0 +1,17 @@
1
+ import { Button } from './Button';
2
+ /**
3
+ * @summary A wrapper button that propagates interactive states (hover/focus) to child components.
4
+ * @slot before - Content to be placed before the button text.
5
+ * @slot after - Content to be placed after the button text.
6
+ * @attr {string} name - The name of the button, submitted as a pair with the button's value as part of the form data.
7
+ * @attr {string} value - The value associated with the button's name when it's submitted with a form.
8
+ * @attr {string} type - The default behavior of the button. Possible values are 'submit', 'reset', and 'button'.
9
+ * @attr {boolean} disabled - Whether the button is disabled.
10
+ */
11
+ export declare class ButtonWrapper extends Button {
12
+ #private;
13
+ constructor();
14
+ connectedCallback(): void;
15
+ disconnectedCallback(): void;
16
+ attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
17
+ }