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.
- package/README.md +3 -3
- package/package.json +6 -4
- package/src/bindings/{i-binding.d.ts → i-binding.ts} +11 -11
- package/src/bindings/{i-observer.d.ts → i-observer.ts} +2 -2
- package/src/bindings/{i-reactive.d.ts → i-reactive.ts} +4 -4
- package/src/bindings/i-ref.ts +5 -0
- package/src/bindings/{i-watcher.d.ts → i-watcher.ts} +52 -38
- package/src/{i-dot-component.d.ts → i-dot-component.ts} +113 -84
- package/src/{i-dot.d.ts → i-dot.ts} +1041 -1047
- package/src/{i-event-bus.d.ts → i-event-bus.ts} +10 -10
- package/src/{index.d.ts → index.ts} +14 -14
- package/src/styles/at-rules/{i-at-color-profile-builder.d.ts → i-at-color-profile-builder.ts} +4 -4
- package/src/styles/at-rules/{i-at-counter-style-builder.d.ts → i-at-counter-style-builder.ts} +14 -14
- package/src/styles/at-rules/{i-at-font-family-builder.d.ts → i-at-font-family-builder.ts} +18 -18
- package/src/styles/at-rules/{i-at-font-palette-values.d.ts → i-at-font-palette-values.ts} +5 -5
- package/src/styles/at-rules/{i-at-keyframes-builder.d.ts → i-at-keyframes-builder.ts} +7 -7
- package/src/styles/at-rules/{i-at-page-builder.d.ts → i-at-page-builder.ts} +19 -19
- package/src/styles/complex-css-types/{i-filter-prop.d.ts → i-filter-prop.ts} +19 -19
- package/src/styles/complex-css-types/{i-shadow-prop.d.ts → i-shadow-prop.ts} +11 -11
- package/src/styles/complex-css-types/{i-transformation-prop.d.ts → i-transformation-prop.ts} +32 -32
- package/src/styles/{css-types.d.ts → css-types.ts} +141 -141
- package/src/styles/{i-css-prop.d.ts → i-css-prop.ts} +295 -295
- package/src/styles/{i-dot-css.d.ts → i-dot-css.ts} +218 -214
- package/src/styles/mapped-types/{angle-prop.d.ts → angle-prop.ts} +15 -15
- package/src/styles/mapped-types/{color-props.d.ts → color-props.ts} +60 -60
- package/src/styles/mapped-types/{length-prop.d.ts → length-prop.ts} +21 -19
- 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" | "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
type
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
(Qty extends
|
|
15
|
-
(Qty extends
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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;
|
package/src/bindings/i-ref.d.ts
DELETED