@tempots/dom 28.3.1 → 28.4.1

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.
@@ -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' | 'false' | 'true';
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 | 'false' | 'true';
22
+ expanded: boolean;
23
23
  flowto: string;
24
- grabbed: boolean | 'false' | 'true';
24
+ grabbed: boolean;
25
25
  haspopup: boolean;
26
26
  hidden: boolean;
27
- invalid: boolean | 'grammar' | 'false' | 'spelling' | 'true';
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' | 'false' | 'true';
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 AttrPrimitive = string | number | boolean | null | undefined;
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> = ExpandValueUnion<NoDistribute<T>> | Value<T> | Value<T | null> | Value<T | undefined> | Value<T | null | undefined> | null | undefined;
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: 'true' | 'false';
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: 'true' | 'false';
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: 'true' | 'false' | 'auto';
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: 'true' | 'false';
146
+ preserveAlpha: boolean;
147
147
  preserveAspectRatio: string;
148
148
  primitiveUnits: string;
149
149
  r: number;