dothtml-interfaces 0.4.6 → 1.0.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.
Files changed (27) hide show
  1. package/README.md +3 -3
  2. package/package.json +6 -4
  3. package/src/bindings/{i-binding.d.ts → i-binding.ts} +11 -11
  4. package/src/bindings/{i-observer.d.ts → i-observer.ts} +2 -2
  5. package/src/bindings/{i-reactive.d.ts → i-reactive.ts} +4 -4
  6. package/src/bindings/i-ref.ts +5 -0
  7. package/src/bindings/{i-watcher.d.ts → i-watcher.ts} +52 -38
  8. package/src/{i-dot-component.d.ts → i-dot-component.ts} +113 -84
  9. package/src/{i-dot.d.ts → i-dot.ts} +1041 -1047
  10. package/src/{i-event-bus.d.ts → i-event-bus.ts} +10 -10
  11. package/src/{index.d.ts → index.ts} +14 -14
  12. package/src/styles/at-rules/{i-at-color-profile-builder.d.ts → i-at-color-profile-builder.ts} +4 -4
  13. package/src/styles/at-rules/{i-at-counter-style-builder.d.ts → i-at-counter-style-builder.ts} +14 -14
  14. package/src/styles/at-rules/{i-at-font-family-builder.d.ts → i-at-font-family-builder.ts} +18 -18
  15. package/src/styles/at-rules/{i-at-font-palette-values.d.ts → i-at-font-palette-values.ts} +5 -5
  16. package/src/styles/at-rules/{i-at-keyframes-builder.d.ts → i-at-keyframes-builder.ts} +7 -7
  17. package/src/styles/at-rules/{i-at-page-builder.d.ts → i-at-page-builder.ts} +19 -19
  18. package/src/styles/complex-css-types/{i-filter-prop.d.ts → i-filter-prop.ts} +19 -19
  19. package/src/styles/complex-css-types/{i-shadow-prop.d.ts → i-shadow-prop.ts} +11 -11
  20. package/src/styles/complex-css-types/{i-transformation-prop.d.ts → i-transformation-prop.ts} +32 -32
  21. package/src/styles/{css-types.d.ts → css-types.ts} +141 -141
  22. package/src/styles/{i-css-prop.d.ts → i-css-prop.ts} +295 -295
  23. package/src/styles/{i-dot-css.d.ts → i-dot-css.ts} +218 -214
  24. package/src/styles/mapped-types/{angle-prop.d.ts → angle-prop.ts} +15 -15
  25. package/src/styles/mapped-types/{color-props.d.ts → color-props.ts} +60 -60
  26. package/src/styles/mapped-types/{length-prop.d.ts → length-prop.ts} +21 -19
  27. package/src/bindings/i-ref.d.ts +0 -4
@@ -1,19 +1,21 @@
1
- import { IReactive } from "../../bindings/i-reactive";
2
- import { IBinding } from "../../bindings/i-binding";
3
- import { GKV } from "../css-types";
4
- // import { NumericLength } from "./css-types";
5
-
6
- type LengthUnitSuffix = "" | "Cm" | "Ch" | "Em" | "Ex" | "In" | "Mm" | "P" | "Pc" | "Pt" | "Px" | "Rem" | "Vh" | "Vw" | "VMax" | "VMin";
7
-
8
- type V<S> = IBinding<any> | number | S;
9
-
10
- type LengthProp<Prefix extends string, Qty extends 1|2|3|4 = 1, S extends string|IReactive = GKV> = {
11
- [Key in LengthUnitSuffix as `${Prefix}${Key}`]?: (
12
- (Qty extends 1 ? V<S>|[V<S>] : void) |
13
- (Qty extends 2 ? [V<S>, V<S>] : void) |
14
- (Qty extends 3 ? [V<S>, V<S>, V<S>] : void) |
15
- (Qty extends 4 ? [V<S>, V<S>, V<S>, V<S>] : void)
16
- );
17
- };
18
-
19
- export default LengthProp;
1
+ import { IReactive } from "../../bindings/i-reactive";
2
+ import { IBinding } from "../../bindings/i-binding";
3
+ import { GKV } from "../css-types";
4
+ // import { NumericLength } from "./css-types";
5
+
6
+ type LengthUnitSuffix = "" | "Cm" | "Mm" | "In" | "Px" | "Pt" | "Pc" | "Ch" | "Em" | "Ex" | "Lh" | "Rem" | "Vh" | "Vw" | "Vmin" | "Vmax" | "Cqw" | "Cqh" | "Cqi" | "Cqb" | "Cqmin" | "Cqmax" | "P";
7
+ // Following esoteric options removed (but technically correct):
8
+ // "Q" | "Cap" | "Ic" | "Rlh" | "Vb" | "Vi"
9
+
10
+ type V<S> = IBinding<any> | number | S;
11
+
12
+ type LengthProp<Prefix extends string, Qty extends 1|2|3|4 = 1, S extends string|IReactive = GKV> = {
13
+ [Key in LengthUnitSuffix as `${Prefix}${Key}`]?: (
14
+ (Qty extends 1 ? V<S>|[V<S>] : void) |
15
+ (Qty extends 2 ? [V<S>, V<S>] : void) |
16
+ (Qty extends 3 ? [V<S>, V<S>, V<S>] : void) |
17
+ (Qty extends 4 ? [V<S>, V<S>, V<S>, V<S>] : void)
18
+ );
19
+ };
20
+
21
+ export default LengthProp;
@@ -1,4 +0,0 @@
1
-
2
- export interface IRef<T extends HTMLElement = HTMLElement>{
3
- get element(): T;
4
- }