@tempots/dom 28.3.1 → 28.4.0
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/index.cjs +1 -1
- package/index.js +0 -2
- package/package.json +1 -1
- package/renderable/attribute.d.ts +479 -478
- package/types/aria-attributes.d.ts +5 -5
- package/types/domain.d.ts +2 -6
- package/types/svg-attributes.d.ts +4 -4
|
@@ -8,7 +8,7 @@ export type AriaAttributes = {
|
|
|
8
8
|
atomic: boolean;
|
|
9
9
|
autocomplete: 'none' | 'inline' | 'list' | 'both';
|
|
10
10
|
busy: boolean;
|
|
11
|
-
checked: boolean | 'mixed'
|
|
11
|
+
checked: boolean | 'mixed';
|
|
12
12
|
colcount: number;
|
|
13
13
|
colindex: number;
|
|
14
14
|
colspan: number;
|
|
@@ -19,12 +19,12 @@ export type AriaAttributes = {
|
|
|
19
19
|
disabled: boolean;
|
|
20
20
|
dropeffect: 'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup';
|
|
21
21
|
errormessage: string;
|
|
22
|
-
expanded: boolean
|
|
22
|
+
expanded: boolean;
|
|
23
23
|
flowto: string;
|
|
24
|
-
grabbed: boolean
|
|
24
|
+
grabbed: boolean;
|
|
25
25
|
haspopup: boolean;
|
|
26
26
|
hidden: boolean;
|
|
27
|
-
invalid: boolean | 'grammar' | '
|
|
27
|
+
invalid: boolean | 'grammar' | 'spelling';
|
|
28
28
|
keyshortcuts: string;
|
|
29
29
|
label: string;
|
|
30
30
|
labelledby: string;
|
|
@@ -37,7 +37,7 @@ export type AriaAttributes = {
|
|
|
37
37
|
owns: string;
|
|
38
38
|
placeholder: string;
|
|
39
39
|
posinset: number;
|
|
40
|
-
pressed: boolean | 'mixed'
|
|
40
|
+
pressed: boolean | 'mixed';
|
|
41
41
|
readonly: boolean;
|
|
42
42
|
relevant: 'additions' | 'removals' | 'text' | 'all';
|
|
43
43
|
required: boolean;
|
package/types/domain.d.ts
CHANGED
|
@@ -148,17 +148,13 @@ export type Size = {
|
|
|
148
148
|
*/
|
|
149
149
|
readonly height: number;
|
|
150
150
|
};
|
|
151
|
-
type
|
|
152
|
-
type NoDistribute<T> = [T] extends [any] ? T : never;
|
|
153
|
-
type IsFullyPrimitive<T> = [NoDistribute<T>] extends [AttrPrimitive] ? true : false;
|
|
154
|
-
type ExpandPrimitiveUnion<T> = Value<T> | (T extends any ? Value<T> : never);
|
|
155
|
-
type ExpandValueUnion<T> = IsFullyPrimitive<T> extends true ? ExpandPrimitiveUnion<T> : Value<T>;
|
|
151
|
+
type WithNullish<X> = Value<X> | Value<X | null> | Value<X | undefined> | Value<X | null | undefined>;
|
|
156
152
|
/**
|
|
157
153
|
* Represents a nullable value or a signal of a nullable value.
|
|
158
154
|
* @typeParam T - The type of the value.
|
|
159
155
|
* @public
|
|
160
156
|
*/
|
|
161
|
-
export type NValue<T> =
|
|
157
|
+
export type NValue<T> = WithNullish<T> | null | undefined;
|
|
162
158
|
/**
|
|
163
159
|
* Gets the value type of a given Value type.
|
|
164
160
|
* If the type is a `Signal`, it returns the inferred value type.
|
|
@@ -15,7 +15,7 @@ export type SVGAttributes = {
|
|
|
15
15
|
ascent: number;
|
|
16
16
|
attributeName: string;
|
|
17
17
|
attributeType: string;
|
|
18
|
-
autoReverse:
|
|
18
|
+
autoReverse: boolean;
|
|
19
19
|
azimuth: number;
|
|
20
20
|
baseFrequency: number;
|
|
21
21
|
baseProfile: string;
|
|
@@ -55,7 +55,7 @@ export type SVGAttributes = {
|
|
|
55
55
|
enableBackground: string;
|
|
56
56
|
end: number;
|
|
57
57
|
exponent: number;
|
|
58
|
-
externalResourcesRequired:
|
|
58
|
+
externalResourcesRequired: boolean;
|
|
59
59
|
fill: string;
|
|
60
60
|
'fill-opacity': number;
|
|
61
61
|
'fill-rule': string;
|
|
@@ -64,7 +64,7 @@ export type SVGAttributes = {
|
|
|
64
64
|
filterUnits: string;
|
|
65
65
|
'flood-color': string;
|
|
66
66
|
'flood-opacity': number;
|
|
67
|
-
focusable:
|
|
67
|
+
focusable: boolean | 'auto';
|
|
68
68
|
'font-family': string;
|
|
69
69
|
'font-size': number;
|
|
70
70
|
'font-size-adjust': number;
|
|
@@ -143,7 +143,7 @@ export type SVGAttributes = {
|
|
|
143
143
|
pointsAtX: number;
|
|
144
144
|
pointsAtY: number;
|
|
145
145
|
pointsAtZ: number;
|
|
146
|
-
preserveAlpha:
|
|
146
|
+
preserveAlpha: boolean;
|
|
147
147
|
preserveAspectRatio: string;
|
|
148
148
|
primitiveUnits: string;
|
|
149
149
|
r: number;
|