@proximus/lavender-common 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/PxElement.d.ts +21 -0
- package/dist/WithExtraAttributes.d.ts +89 -0
- package/dist/WrappedInteractiveStateController.d.ts +8 -0
- package/dist/accessibility.d.ts +2 -0
- package/dist/attributeSetters.d.ts +10 -0
- package/dist/common.d.ts +9 -169
- package/dist/debug.d.ts +11 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +531 -326
- package/dist/nativeAttributes.d.ts +74 -0
- package/dist/nativeProperties.d.ts +82 -0
- package/dist/nativeTypes.d.ts +7 -0
- package/dist/utilities.d.ts +5 -0
- package/dist/values.d.ts +27 -0
- package/package.json +1 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export declare const nativeButtonAttributes: {
|
|
2
|
+
disabled: "disabled"[];
|
|
3
|
+
name: "name"[];
|
|
4
|
+
value: "value"[];
|
|
5
|
+
type: "type"[];
|
|
6
|
+
formaction: "formAction"[];
|
|
7
|
+
formenctype: "formEnctype"[];
|
|
8
|
+
formmethod: "formMethod"[];
|
|
9
|
+
formnovalidate: "formNoValidate"[];
|
|
10
|
+
formtarget: "formTarget"[];
|
|
11
|
+
form: never[];
|
|
12
|
+
autofocus: "autofocus"[];
|
|
13
|
+
title: "title"[];
|
|
14
|
+
popovertarget: never[];
|
|
15
|
+
popovertargetaction: "popoverTargetAction"[];
|
|
16
|
+
command: "command"[];
|
|
17
|
+
commandfor: never[];
|
|
18
|
+
};
|
|
19
|
+
export declare const nativeAnchorAttributes: {
|
|
20
|
+
href: ("search" | "href" | "hash" | "host" | "hostname" | "password" | "pathname" | "port" | "protocol" | "username")[];
|
|
21
|
+
target: "target"[];
|
|
22
|
+
rel: ("rel" | "relList")[];
|
|
23
|
+
download: "download"[];
|
|
24
|
+
hreflang: "hreflang"[];
|
|
25
|
+
type: "type"[];
|
|
26
|
+
ping: "ping"[];
|
|
27
|
+
referrerpolicy: "referrerPolicy"[];
|
|
28
|
+
title: "title"[];
|
|
29
|
+
charset: "charset"[];
|
|
30
|
+
coords: "coords"[];
|
|
31
|
+
name: "name"[];
|
|
32
|
+
rev: "rev"[];
|
|
33
|
+
};
|
|
34
|
+
export declare const nativeInputAttributes: {
|
|
35
|
+
accept: "accept"[];
|
|
36
|
+
alt: "alt"[];
|
|
37
|
+
autocomplete: "autocomplete"[];
|
|
38
|
+
autofocus: "autofocus"[];
|
|
39
|
+
capture: "capture"[];
|
|
40
|
+
checked: "defaultChecked"[];
|
|
41
|
+
dirname: "dirName"[];
|
|
42
|
+
disabled: "disabled"[];
|
|
43
|
+
form: never[];
|
|
44
|
+
formaction: "formAction"[];
|
|
45
|
+
formenctype: "formEnctype"[];
|
|
46
|
+
formmethod: "formMethod"[];
|
|
47
|
+
formnovalidate: "formNoValidate"[];
|
|
48
|
+
formtarget: "formTarget"[];
|
|
49
|
+
height: "height"[];
|
|
50
|
+
inputmode: "inputMode"[];
|
|
51
|
+
enterkeyhint: "enterKeyHint"[];
|
|
52
|
+
list: never[];
|
|
53
|
+
max: "max"[];
|
|
54
|
+
maxlength: "maxLength"[];
|
|
55
|
+
min: "min"[];
|
|
56
|
+
minlength: "minLength"[];
|
|
57
|
+
multiple: "multiple"[];
|
|
58
|
+
name: "name"[];
|
|
59
|
+
pattern: "pattern"[];
|
|
60
|
+
placeholder: "placeholder"[];
|
|
61
|
+
popovertarget: never[];
|
|
62
|
+
popovertargetaction: "popoverTargetAction"[];
|
|
63
|
+
readonly: "readOnly"[];
|
|
64
|
+
required: "required"[];
|
|
65
|
+
size: "size"[];
|
|
66
|
+
src: "src"[];
|
|
67
|
+
step: "step"[];
|
|
68
|
+
title: "title"[];
|
|
69
|
+
type: "type"[];
|
|
70
|
+
usemap: "useMap"[];
|
|
71
|
+
value: ("value" | "defaultValue")[];
|
|
72
|
+
webkitdirectory: "webkitdirectory"[];
|
|
73
|
+
width: "width"[];
|
|
74
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export declare const nativeButtonProperties: {
|
|
2
|
+
form: "readonly";
|
|
3
|
+
labels: "readonly";
|
|
4
|
+
popoverTargetElement: "writable";
|
|
5
|
+
commandForElement: "writable";
|
|
6
|
+
validity: "readonly";
|
|
7
|
+
validationMessage: "readonly";
|
|
8
|
+
willValidate: "readonly";
|
|
9
|
+
};
|
|
10
|
+
export declare const nativeButtonMethods: ("checkValidity" | "reportValidity" | "setCustomValidity")[];
|
|
11
|
+
export declare const nativeAnchorProperties: {
|
|
12
|
+
text: "writable";
|
|
13
|
+
shape: "writable";
|
|
14
|
+
origin: "readonly";
|
|
15
|
+
};
|
|
16
|
+
export declare const nativeAnchorMethods: "toString"[];
|
|
17
|
+
export declare const nativeInputProperties: {
|
|
18
|
+
checked: "writable";
|
|
19
|
+
indeterminate: "writable";
|
|
20
|
+
files: "writable";
|
|
21
|
+
selectionStart: "writable";
|
|
22
|
+
selectionEnd: "writable";
|
|
23
|
+
selectionDirection: "writable";
|
|
24
|
+
valueAsDate: "writable";
|
|
25
|
+
valueAsNumber: "writable";
|
|
26
|
+
form: "readonly";
|
|
27
|
+
list: "readonly";
|
|
28
|
+
labels: "readonly";
|
|
29
|
+
webkitEntries: "readonly";
|
|
30
|
+
popoverTargetElement: "writable";
|
|
31
|
+
validity: "readonly";
|
|
32
|
+
validationMessage: "readonly";
|
|
33
|
+
willValidate: "readonly";
|
|
34
|
+
};
|
|
35
|
+
export declare const nativeInputMethods: ("select" | "checkValidity" | "reportValidity" | "setCustomValidity" | "setRangeText" | "setSelectionRange" | "showPicker" | "stepDown" | "stepUp")[];
|
|
36
|
+
export declare const nativeTextAreaProperties: {
|
|
37
|
+
value: "writable";
|
|
38
|
+
defaultValue: "writable";
|
|
39
|
+
selectionStart: "writable";
|
|
40
|
+
selectionEnd: "writable";
|
|
41
|
+
selectionDirection: "writable";
|
|
42
|
+
textLength: "readonly";
|
|
43
|
+
type: "readonly";
|
|
44
|
+
form: "readonly";
|
|
45
|
+
labels: "readonly";
|
|
46
|
+
validity: "readonly";
|
|
47
|
+
validationMessage: "readonly";
|
|
48
|
+
willValidate: "readonly";
|
|
49
|
+
};
|
|
50
|
+
export declare const nativeTextAreaMethods: ("select" | "checkValidity" | "reportValidity" | "setCustomValidity" | "setRangeText" | "setSelectionRange")[];
|
|
51
|
+
export declare const nativeSelectProperties: {
|
|
52
|
+
value: "writable";
|
|
53
|
+
selectedIndex: "writable";
|
|
54
|
+
length: "writable";
|
|
55
|
+
options: "readonly";
|
|
56
|
+
selectedOptions: "readonly";
|
|
57
|
+
type: "readonly";
|
|
58
|
+
form: "readonly";
|
|
59
|
+
labels: "readonly";
|
|
60
|
+
validity: "readonly";
|
|
61
|
+
validationMessage: "readonly";
|
|
62
|
+
willValidate: "readonly";
|
|
63
|
+
};
|
|
64
|
+
export declare const nativeSelectMethods: ("checkValidity" | "reportValidity" | "setCustomValidity" | "showPicker" | "add" | "item" | "namedItem")[];
|
|
65
|
+
export declare const nativeImageProperties: {
|
|
66
|
+
currentSrc: "readonly";
|
|
67
|
+
naturalWidth: "readonly";
|
|
68
|
+
naturalHeight: "readonly";
|
|
69
|
+
complete: "readonly";
|
|
70
|
+
x: "readonly";
|
|
71
|
+
y: "readonly";
|
|
72
|
+
};
|
|
73
|
+
export declare const nativeImageMethods: "decode"[];
|
|
74
|
+
export declare const nativeFieldsetProperties: {
|
|
75
|
+
form: "readonly";
|
|
76
|
+
elements: "readonly";
|
|
77
|
+
type: "readonly";
|
|
78
|
+
validity: "readonly";
|
|
79
|
+
validationMessage: "readonly";
|
|
80
|
+
willValidate: "readonly";
|
|
81
|
+
};
|
|
82
|
+
export declare const nativeFieldsetMethods: ("checkValidity" | "reportValidity" | "setCustomValidity")[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type NativeMemberName<HTML_TYPE extends Element> = Extract<keyof HTML_TYPE, string>;
|
|
2
|
+
/** Empty property lists describe attributes without a reflecting property. */
|
|
3
|
+
export type NativeAttributeMap<HTML_TYPE extends Element> = Readonly<Record<string, readonly NativeMemberName<HTML_TYPE>[]>>;
|
|
4
|
+
/** Additional native properties, excluding aliases already in nativeAttributes. */
|
|
5
|
+
export type NativePropertyMap<HTML_TYPE extends Element> = Readonly<Partial<Record<Exclude<NativeMemberName<HTML_TYPE>, keyof typeof Object.prototype>, 'writable' | 'readonly'>>>;
|
|
6
|
+
export type NativeMethodList<HTML_TYPE extends Element> = readonly NativeMemberName<HTML_TYPE>[];
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function omitKeys<OBJECT extends object, KEY extends keyof OBJECT = never>(object: OBJECT, ...keys: readonly KEY[]): Omit<OBJECT, KEY>;
|
|
2
|
+
export declare function addGlobalStylesheet(inlineStyles: string): void;
|
|
3
|
+
export declare function isFalsy(value: string | boolean): boolean;
|
|
4
|
+
export declare function getViewportFormat(): "mobile" | "tablet" | "laptop";
|
|
5
|
+
export declare function checkName(values: string[], value: string | null): boolean;
|
package/dist/values.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const gridGapValues: string[];
|
|
2
|
+
export declare const flexboxAlignSelfValues: readonly ["", "default", "auto", "flex-start", "start", "flex-end", "end", "center", "baseline", "stretch"];
|
|
3
|
+
export declare const cssGridAlignSelfValues: readonly ["", "default", "start", "end", "center", "stretch"];
|
|
4
|
+
export declare const cssGridJustifySelfValues: readonly ["", "default", "start", "end", "center", "stretch"];
|
|
5
|
+
export declare const cssGridColSpanValues: string[];
|
|
6
|
+
export declare const cssGridOrderValues: string[];
|
|
7
|
+
export declare const cssGridPlaceSelfValues: string[];
|
|
8
|
+
export declare const fontsizeValues: string[];
|
|
9
|
+
export declare const colorValues: string[];
|
|
10
|
+
export declare const fontweightValues: string[];
|
|
11
|
+
export declare const iconSizeValues: readonly ["Xs", "S", "M", "L", "Xl"];
|
|
12
|
+
export declare const iconSizeValuesKC: string[];
|
|
13
|
+
export type IconSize = (typeof iconSizeValues)[number];
|
|
14
|
+
export declare const textalignValues: string[];
|
|
15
|
+
export declare const paddingValues: string[];
|
|
16
|
+
export declare const borderValues: string[];
|
|
17
|
+
export declare const borderRadiusValues: string[];
|
|
18
|
+
export declare const borderColorValues: string[];
|
|
19
|
+
export declare const borderSideValues: string[];
|
|
20
|
+
export declare const backgroundColorValues: string[];
|
|
21
|
+
export declare const backgroundSizeValues: string[];
|
|
22
|
+
export declare const boxShadowValues: string[];
|
|
23
|
+
export declare const headingValues: string[];
|
|
24
|
+
export declare const gradientValues: string[];
|
|
25
|
+
export declare const gapValues: string[];
|
|
26
|
+
export declare const noBorderRadiusValues: string[];
|
|
27
|
+
export declare const assetContainerImgWidthValues: string[];
|