@proximus/lavender-button 2.0.0-alpha.227 → 2.0.0-alpha.229
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 +72 -9
- package/dist/custom-elements.json +820 -29
- package/dist/index.es.js +23 -14
- package/dist/vscode.html-custom-data.json +147 -4
- package/dist/web-types.json +216 -7
- package/package.json +1 -1
package/dist/Button.d.ts
CHANGED
|
@@ -1,18 +1,45 @@
|
|
|
1
1
|
import { PxElement } from '@proximus/lavender-common';
|
|
2
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
|
+
/**
|
|
5
|
+
* @summary Primary button for actions, forms, and more.
|
|
6
|
+
* @slot before - Content to be placed before the button text.
|
|
7
|
+
* @slot after - Content to be placed after the button text.
|
|
8
|
+
* @attr {string} commandfor - The ID of the command target.
|
|
9
|
+
* @attr {string} popovertarget - The ID of the target popover.
|
|
10
|
+
* @attr {string} form - The ID of the associated form; the form property is the native form reference.
|
|
11
|
+
*/
|
|
4
12
|
export declare class Button extends PxElement<HTMLButtonElement> {
|
|
5
|
-
/**
|
|
6
|
-
* @summary Primary button for actions, forms, and more.
|
|
7
|
-
* @slot before - Content to be placed before the button text,
|
|
8
|
-
* @slot after - Content to be placed after the button text
|
|
9
|
-
* @attr {string} name - The name of the button, submitted as a pair with the button's value as part of the form data.
|
|
10
|
-
* @attr {string} value - The value associated with the button's name when it's submitted with a form.
|
|
11
|
-
* @attr {string} type - The default behavior of the button. Possible values are 'submit', 'reset', and 'button'.
|
|
12
|
-
* @attr {boolean} disabled - Whether the button is disabled.
|
|
13
|
-
*/
|
|
14
13
|
protected static readonly template: HTMLTemplateElement;
|
|
15
14
|
static nativeName: string;
|
|
15
|
+
static nativeProperties: {
|
|
16
|
+
form: "readonly";
|
|
17
|
+
labels: "readonly";
|
|
18
|
+
popoverTargetElement: "writable";
|
|
19
|
+
commandForElement: "writable";
|
|
20
|
+
validity: "readonly";
|
|
21
|
+
validationMessage: "readonly";
|
|
22
|
+
willValidate: "readonly";
|
|
23
|
+
};
|
|
24
|
+
static nativeMethods: ("checkValidity" | "reportValidity" | "setCustomValidity")[];
|
|
25
|
+
static nativeAttributes: {
|
|
26
|
+
disabled: "disabled"[];
|
|
27
|
+
name: "name"[];
|
|
28
|
+
value: "value"[];
|
|
29
|
+
type: "type"[];
|
|
30
|
+
formaction: "formAction"[];
|
|
31
|
+
formenctype: "formEnctype"[];
|
|
32
|
+
formmethod: "formMethod"[];
|
|
33
|
+
formnovalidate: "formNoValidate"[];
|
|
34
|
+
formtarget: "formTarget"[];
|
|
35
|
+
form: never[];
|
|
36
|
+
autofocus: "autofocus"[];
|
|
37
|
+
title: "title"[];
|
|
38
|
+
popovertarget: never[];
|
|
39
|
+
popovertargetaction: "popoverTargetAction"[];
|
|
40
|
+
command: "command"[];
|
|
41
|
+
commandfor: never[];
|
|
42
|
+
};
|
|
16
43
|
constructor();
|
|
17
44
|
static get observedAttributes(): string[];
|
|
18
45
|
connectedCallback(): void;
|
|
@@ -57,4 +84,40 @@ export declare class Button extends PxElement<HTMLButtonElement> {
|
|
|
57
84
|
set ariaExpanded(value: string | null);
|
|
58
85
|
get size(): string | null;
|
|
59
86
|
set size(value: string | null);
|
|
87
|
+
readonly form: HTMLFormElement | null;
|
|
88
|
+
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
89
|
+
popoverTargetElement: Element | null;
|
|
90
|
+
commandForElement: Element | null;
|
|
91
|
+
/** @attr disabled - Whether the native button is disabled. */
|
|
92
|
+
disabled: boolean;
|
|
93
|
+
/** @attr name - The name submitted with the button's value. */
|
|
94
|
+
name: string;
|
|
95
|
+
/** @attr value - The value associated with the button. */
|
|
96
|
+
value: string;
|
|
97
|
+
/** @attr type - The native button behavior: submit, reset, or button. */
|
|
98
|
+
type: 'submit' | 'reset' | 'button';
|
|
99
|
+
/** @attr formaction - The submission URL override. */
|
|
100
|
+
formAction: string;
|
|
101
|
+
/** @attr formenctype - The submission encoding override. */
|
|
102
|
+
formEnctype: string;
|
|
103
|
+
/** @attr formmethod - The submission method override. */
|
|
104
|
+
formMethod: string;
|
|
105
|
+
/** @attr formnovalidate - Whether submission bypasses validation. */
|
|
106
|
+
formNoValidate: boolean;
|
|
107
|
+
/** @attr formtarget - The submission target override. */
|
|
108
|
+
formTarget: string;
|
|
109
|
+
/** @attr autofocus - Whether the native button requests autofocus. */
|
|
110
|
+
autofocus: boolean;
|
|
111
|
+
/** @attr title - The native button tooltip. */
|
|
112
|
+
title: string;
|
|
113
|
+
/** @attr popovertargetaction - The action for the target popover. */
|
|
114
|
+
popoverTargetAction: string;
|
|
115
|
+
/** @attr command - The command for the target element, where supported. */
|
|
116
|
+
command: string;
|
|
117
|
+
readonly validity: ValidityState;
|
|
118
|
+
readonly validationMessage: string;
|
|
119
|
+
readonly willValidate: boolean;
|
|
120
|
+
readonly checkValidity: HTMLButtonElement['checkValidity'];
|
|
121
|
+
readonly reportValidity: HTMLButtonElement['reportValidity'];
|
|
122
|
+
readonly setCustomValidity: HTMLButtonElement['setCustomValidity'];
|
|
60
123
|
}
|