inferred-types 0.55.11 → 0.55.13
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/modules/inferred-types/dist/index.cjs +12 -1
- package/modules/inferred-types/dist/index.cjs.map +1 -1
- package/modules/inferred-types/dist/index.d.ts +11 -3
- package/modules/inferred-types/dist/index.js +12 -1
- package/modules/inferred-types/dist/index.js.map +1 -1
- package/modules/runtime/dist/index.cjs +12 -1
- package/modules/runtime/dist/index.cjs.map +1 -1
- package/modules/runtime/dist/index.d.ts +6 -2
- package/modules/runtime/dist/index.js +12 -1
- package/modules/runtime/dist/index.js.map +1 -1
- package/modules/types/dist/index.d.ts +5 -1
- package/package.json +1 -1
|
@@ -9799,6 +9799,8 @@ interface CssAlignProperties$1 {
|
|
|
9799
9799
|
"align-items"?: CssAlignItems$1;
|
|
9800
9800
|
/** [Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) */
|
|
9801
9801
|
"align-self"?: CssAlignSelf$1;
|
|
9802
|
+
/** [Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align) */
|
|
9803
|
+
"vertical-align"?: "baseline" | "top" | "middle" | "bottom" | "sub" | "text-top";
|
|
9802
9804
|
}
|
|
9803
9805
|
|
|
9804
9806
|
type Cascade$1<T extends readonly string[], TResult extends string = ""> = [] extends T ? TResult : Cascade$1<AfterFirst$1<T>, `${TResult}${First$1<T> | ""}`>;
|
|
@@ -10810,7 +10812,9 @@ type CssDefinition$1 = {
|
|
|
10810
10812
|
"z-index"?: Suggest$1<`${number}` | "auto" | CssGlobal$1>;
|
|
10811
10813
|
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/zoom) */
|
|
10812
10814
|
"zoom"?: Suggest$1<`${number}` | `${number}%` | "normal" | "reset" | CssGlobal$1>;
|
|
10813
|
-
} & CssBorderProperties$1 & CssBackgroundProperties$1 & CssAbsolutionPositioningProperties$1 & CssOffsetProperties$1 & CssBreakProperties$1 & CssBoxProperties$1 & CssTextProperties$1 & CssStrokeProperties$1 & CssJustifyProperties$1 & CssAlignProperties$1 & CssPlaceProperties$1 & CssAnimationProperties$1 & CssMarginProperties$1 & CssPaddingProperties$1 & CssOutlineProperties$1 & CssOverflowProperties$1 & CssOffsetProperties$1 & CssTransformProperties$1 & CssFontProperties$1
|
|
10815
|
+
} & CssBorderProperties$1 & CssBackgroundProperties$1 & CssAbsolutionPositioningProperties$1 & CssOffsetProperties$1 & CssBreakProperties$1 & CssBoxProperties$1 & CssTextProperties$1 & CssStrokeProperties$1 & CssJustifyProperties$1 & CssAlignProperties$1 & CssPlaceProperties$1 & CssAnimationProperties$1 & CssMarginProperties$1 & CssPaddingProperties$1 & CssOutlineProperties$1 & CssOverflowProperties$1 & CssOffsetProperties$1 & CssTransformProperties$1 & CssFontProperties$1 & {
|
|
10816
|
+
[key: string]: string;
|
|
10817
|
+
};
|
|
10814
10818
|
|
|
10815
10819
|
type CssFontFamily$1 = `"${string}"` | "serif" | "san-serif" | "monospace" | "cursive" | "fantasy" | "system-ui" | "ui-serif" | "ui-sans-serif" | "ui-monospace" | "ui-rounded" | "emoji" | "math" | "fansong";
|
|
10816
10820
|
type CssFontFeatureSetting$1 = "normal" | "liga" | "tnum" | "smcp";
|
|
@@ -16141,7 +16145,7 @@ interface CssFromDefnOption {
|
|
|
16141
16145
|
*
|
|
16142
16146
|
* converts a `CssDefinition` into a CSS string
|
|
16143
16147
|
*/
|
|
16144
|
-
declare function cssFromDefinition<T extends CssDefinition$1, O extends CssFromDefnOption>(defn: T, opt?: O): string;
|
|
16148
|
+
declare function cssFromDefinition<T extends CssDefinition$1 | undefined, O extends CssFromDefnOption>(defn: T, opt?: O): string;
|
|
16145
16149
|
declare function defineCss<T extends CssDefinition$1>(defn: T): {
|
|
16146
16150
|
defn: T;
|
|
16147
16151
|
} & (<S extends string>(selector?: S) => string);
|
|
@@ -27354,6 +27358,8 @@ interface CssAlignProperties {
|
|
|
27354
27358
|
"align-items"?: CssAlignItems;
|
|
27355
27359
|
/** [Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) */
|
|
27356
27360
|
"align-self"?: CssAlignSelf;
|
|
27361
|
+
/** [Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align) */
|
|
27362
|
+
"vertical-align"?: "baseline" | "top" | "middle" | "bottom" | "sub" | "text-top";
|
|
27357
27363
|
}
|
|
27358
27364
|
|
|
27359
27365
|
type Cascade<T extends readonly string[], TResult extends string = ""> = [] extends T ? TResult : Cascade<AfterFirst<T>, `${TResult}${First<T> | ""}`>;
|
|
@@ -28506,7 +28512,9 @@ type CssDefinition = {
|
|
|
28506
28512
|
"z-index"?: Suggest<`${number}` | "auto" | CssGlobal>;
|
|
28507
28513
|
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/zoom) */
|
|
28508
28514
|
"zoom"?: Suggest<`${number}` | `${number}%` | "normal" | "reset" | CssGlobal>;
|
|
28509
|
-
} & CssBorderProperties & CssBackgroundProperties & CssAbsolutionPositioningProperties & CssOffsetProperties & CssBreakProperties & CssBoxProperties & CssTextProperties & CssStrokeProperties & CssJustifyProperties & CssAlignProperties & CssPlaceProperties & CssAnimationProperties & CssMarginProperties & CssPaddingProperties & CssOutlineProperties & CssOverflowProperties & CssOffsetProperties & CssTransformProperties & CssFontProperties
|
|
28515
|
+
} & CssBorderProperties & CssBackgroundProperties & CssAbsolutionPositioningProperties & CssOffsetProperties & CssBreakProperties & CssBoxProperties & CssTextProperties & CssStrokeProperties & CssJustifyProperties & CssAlignProperties & CssPlaceProperties & CssAnimationProperties & CssMarginProperties & CssPaddingProperties & CssOutlineProperties & CssOverflowProperties & CssOffsetProperties & CssTransformProperties & CssFontProperties & {
|
|
28516
|
+
[key: string]: string;
|
|
28517
|
+
};
|
|
28510
28518
|
|
|
28511
28519
|
type CssFontFamily = `"${string}"` | "serif" | "san-serif" | "monospace" | "cursive" | "fantasy" | "system-ui" | "ui-serif" | "ui-sans-serif" | "ui-monospace" | "ui-rounded" | "emoji" | "math" | "fansong";
|
|
28512
28520
|
type CssFontFeatureSetting = "normal" | "liga" | "tnum" | "smcp";
|
|
@@ -4744,10 +4744,21 @@ ${frameToCss(frames)}
|
|
|
4744
4744
|
};
|
|
4745
4745
|
}
|
|
4746
4746
|
function cssFromDefinition(defn, opt) {
|
|
4747
|
+
if (isUndefined(defn)) {
|
|
4748
|
+
return "";
|
|
4749
|
+
}
|
|
4747
4750
|
const inline = isDefined(opt?.inline) ? opt.inline : true;
|
|
4748
4751
|
const indent = isString(opt?.indent) ? opt.indent : "";
|
|
4749
4752
|
const nextDefn = inline ? " " : "\n";
|
|
4750
|
-
return Object.keys(defn).map(
|
|
4753
|
+
return Object.keys(defn).map(
|
|
4754
|
+
(key) => {
|
|
4755
|
+
const val = ensureTrailing(
|
|
4756
|
+
defn[key],
|
|
4757
|
+
";"
|
|
4758
|
+
);
|
|
4759
|
+
return `${indent}${key}: ${val}`;
|
|
4760
|
+
}
|
|
4761
|
+
).join(nextDefn);
|
|
4751
4762
|
}
|
|
4752
4763
|
function defineCss(defn) {
|
|
4753
4764
|
const fn2 = (selector) => {
|