@yahoo/uds-v5-wip 1.46.0 → 1.47.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.
|
@@ -95,16 +95,16 @@ interface CompositeBinding {
|
|
|
95
95
|
layers: Record<string, string>;
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
|
-
* Forward
|
|
99
|
-
*
|
|
100
|
-
* HTML attr / event name; if it's a composed component, `from` is
|
|
101
|
-
* of that component's existing props.
|
|
98
|
+
* Forward a JSX prop value to one of the component's layers as an
|
|
99
|
+
* existing surface key. If the target layer is a primitive, `from` is
|
|
100
|
+
* an HTML attr / event name; if it's a composed component, `from` is
|
|
101
|
+
* one of that component's existing props.
|
|
102
102
|
*
|
|
103
|
-
* `from` is a bare string (no braces) — the
|
|
104
|
-
*
|
|
105
|
-
* registered
|
|
103
|
+
* `from` is a bare string (no braces) — the absence of `styleProp` /
|
|
104
|
+
* `composite` keys is how the framework discriminates this shape from
|
|
105
|
+
* the registered-binding shapes.
|
|
106
106
|
*/
|
|
107
|
-
interface
|
|
107
|
+
interface ForwardBinding {
|
|
108
108
|
layer: string;
|
|
109
109
|
from: string;
|
|
110
110
|
}
|
|
@@ -144,7 +144,7 @@ type StylePropShorthand = StylePropRef;
|
|
|
144
144
|
* `'{bg}'` is allowed only in the primitive form's props (see
|
|
145
145
|
* `PrimitivePropBinding`).
|
|
146
146
|
*/
|
|
147
|
-
type VerbosePropBinding = StylePropBinding | SingleLayerCompositeBinding | CompositeBinding |
|
|
147
|
+
type VerbosePropBinding = StylePropBinding | SingleLayerCompositeBinding | CompositeBinding | ForwardBinding | BoolMarker | EnumMarker<any>;
|
|
148
148
|
/**
|
|
149
149
|
* All allowed shapes for a single entry in the primitive form's `props`
|
|
150
150
|
* block. Primitive form adds the `StylePropShorthand` brace-ref
|
|
@@ -198,4 +198,4 @@ interface ComponentConfigValue<TLayers extends Record<string, LayerInput>, TProp
|
|
|
198
198
|
* function destructures `props.<layerName>` into the JSX position.
|
|
199
199
|
*/
|
|
200
200
|
//#endregion
|
|
201
|
-
export { BoolMarker, ComponentConfigValue, ComposedLayer, CompositeBinding, EnumMarker, HtmlTag, LayerInput, PrimitiveLayer, PrimitivePropBinding, PropBinding, RootTag, SingleLayerCompositeBinding, StylePropBinding, StylePropShorthand,
|
|
201
|
+
export { BoolMarker, ComponentConfigValue, ComposedLayer, CompositeBinding, EnumMarker, ForwardBinding, HtmlTag, LayerInput, PrimitiveLayer, PrimitivePropBinding, PropBinding, RootTag, SingleLayerCompositeBinding, StylePropBinding, StylePropShorthand, VerbosePropBinding };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentRef, CompositeRef, RegisteredComponents, RegisteredComposites, RegisteredStyleProps, StylePropRef } from "./component-refs.js";
|
|
2
|
-
import { BoolMarker, ComponentConfigValue, ComposedLayer, CompositeBinding, EnumMarker, HtmlTag, LayerInput, PrimitiveLayer, PrimitivePropBinding, PropBinding, RootTag, SingleLayerCompositeBinding, StylePropBinding, StylePropShorthand,
|
|
2
|
+
import { BoolMarker, ComponentConfigValue, ComposedLayer, CompositeBinding, EnumMarker, ForwardBinding, HtmlTag, LayerInput, PrimitiveLayer, PrimitivePropBinding, PropBinding, RootTag, SingleLayerCompositeBinding, StylePropBinding, StylePropShorthand, VerbosePropBinding } from "./component-config.js";
|
|
3
3
|
import { Props } from "./Props.js";
|
|
4
4
|
import { BoundComponent } from "./defineComponent.js";
|
|
5
5
|
import { ColorFn, ColorKeyword, CssAngle, CssColor, CssLength, CssPercentage, CssRatio, CssTime, CssValue, CssValueTypeName, HexColor, HslColor, RgbColor } from "./types/css-values.js";
|
|
@@ -1235,8 +1235,9 @@ const transformOrigin = defineStyleProp({
|
|
|
1235
1235
|
classPrefix: "origin"
|
|
1236
1236
|
}).metadata({ label: "Transform origin" });
|
|
1237
1237
|
const transition = defineStyleProp({
|
|
1238
|
-
cssProperty: "transition
|
|
1239
|
-
classPrefix: "transition"
|
|
1238
|
+
cssProperty: "transition",
|
|
1239
|
+
classPrefix: "transition",
|
|
1240
|
+
arbitrary: "string"
|
|
1240
1241
|
}).metadata({ label: "Transition" });
|
|
1241
1242
|
const transitionDuration = defineStyleProp({
|
|
1242
1243
|
cssProperty: "transition-duration",
|