@yahoo/uds-v5-wip 1.54.0 → 1.55.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/dist/config/dist/Props.d.ts +0 -5
- package/dist/config/dist/component-config.d.ts +0 -34
- package/dist/config/dist/component-refs.d.ts +0 -13
- package/dist/config/dist/component-resolution.d.ts +1 -1
- package/dist/config/dist/consts/defaultColors.d.ts +1 -2
- package/dist/config/dist/createConfig.d.ts +0 -12
- package/dist/config/dist/createConfig.js +1 -1
- package/dist/config/dist/defineComponent.d.ts +0 -7
- package/dist/config/dist/defineStyleProp.d.ts +1 -31
- package/dist/config/dist/index.d.ts +1 -1
- package/dist/config/dist/resolveStyleProp.d.ts +0 -7
- package/dist/config/dist/serialize.d.ts +1 -2
- package/dist/config/dist/style-prop-runtime.d.ts +1 -0
- package/dist/config/dist/types/css-values.d.ts +1 -2
- package/dist/config/dist/types.d.ts +1 -2
- package/dist/presets/dist/defaultPreset.d.ts +2 -1
- package/dist/remotion/dist/components/image-slide.d.ts +2 -1
- package/dist/remotion/dist/components/image-slide.js +3 -3
- package/dist/remotion/dist/components/index.js +7 -7
- package/dist/remotion/dist/components/lower-third.d.ts +2 -1
- package/dist/remotion/dist/components/lower-third.js +5 -5
- package/dist/remotion/dist/components/quote-card.d.ts +2 -1
- package/dist/remotion/dist/components/quote-card.js +4 -4
- package/dist/remotion/dist/components/split-screen.d.ts +2 -1
- package/dist/remotion/dist/components/split-screen.js +7 -7
- package/dist/remotion/dist/components/stat-card.d.ts +2 -1
- package/dist/remotion/dist/components/stat-card.js +3 -3
- package/dist/remotion/dist/components/text-overlay.d.ts +2 -1
- package/dist/remotion/dist/components/text-overlay.js +2 -2
- package/dist/remotion/dist/components/title-card.d.ts +2 -1
- package/dist/remotion/dist/components/title-card.js +3 -3
- package/dist/remotion/dist/components/typing-text.d.ts +2 -1
- package/dist/remotion/dist/components/typing-text.js +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -3,7 +3,6 @@ import { ComponentConfigValue, HtmlTag, LayerInput, PropBinding } from "./compon
|
|
|
3
3
|
import { ComponentPropsWithoutRef, HTMLAttributes, JSX } from "react";
|
|
4
4
|
|
|
5
5
|
//#region ../config/dist/Props.d.ts
|
|
6
|
-
//#region src/Props.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* Resolve the native HTML-attribute surface for the config's root tag.
|
|
9
8
|
*
|
|
@@ -66,9 +65,5 @@ interface DataAttrs {
|
|
|
66
65
|
type Props<TConfig extends ComponentConfigValue<Record<string, LayerInput>, Record<string, PropBinding>, HtmlTag | undefined>> = TConfig extends ComponentConfigValue<Record<string, LayerInput>, infer TProps extends Record<string, PropBinding>, infer TTag extends HtmlTag | undefined> ? Prettify<PropsFromConfig<TProps> & Omit<ElementProps<TTag>, keyof TProps> & DataAttrs & {
|
|
67
66
|
as?: string;
|
|
68
67
|
}> : never;
|
|
69
|
-
/**
|
|
70
|
-
* `Props<typeof boxConfig>` for the common 'use the config's inferred
|
|
71
|
-
* type' invocation. Keeps `box.tsx` from having to repeat the generic.
|
|
72
|
-
*/
|
|
73
68
|
//#endregion
|
|
74
69
|
export { Props };
|
|
@@ -3,7 +3,6 @@ import * as React$1 from "react";
|
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region ../config/dist/component-config.d.ts
|
|
6
|
-
//#region src/component-config.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* HTML tag literal. The TypeScript type is `string` (any tag name);
|
|
9
8
|
* runtime renders it via `React.createElement(tag, ...)`.
|
|
@@ -109,17 +108,6 @@ interface CompositeBinding {
|
|
|
109
108
|
composite: CompositeRef;
|
|
110
109
|
layers: Record<string, string>;
|
|
111
110
|
}
|
|
112
|
-
/**
|
|
113
|
-
* Forward a JSX prop value to one of the component's layers as an
|
|
114
|
-
* existing surface key. The runtime-side / read-side shape — `layer`
|
|
115
|
-
* and `from` are bare strings. Type-guards in `bindRender` use the
|
|
116
|
-
* absence of `styleProp` / `composite` keys to discriminate this shape
|
|
117
|
-
* from the registered-binding shapes.
|
|
118
|
-
*
|
|
119
|
-
* Authoring sites get the narrower `TypedForwardBinding<TLayers>`
|
|
120
|
-
* (below) via `VerbosePropBinding<TLayers>`, which structurally
|
|
121
|
-
* extends this loose form.
|
|
122
|
-
*/
|
|
123
111
|
/**
|
|
124
112
|
* Authoring-site form of `ForwardBinding`, narrowed against the
|
|
125
113
|
* component's own layer map. Distributes over `keyof TLayers` so:
|
|
@@ -200,14 +188,6 @@ type PrimitivePropBinding<TLayers extends Record<string, LayerInput> = Record<st
|
|
|
200
188
|
* tighter `VerbosePropBinding`.
|
|
201
189
|
*/
|
|
202
190
|
type PropBinding<TLayers extends Record<string, LayerInput> = Record<string, LayerInput>> = PrimitivePropBinding<TLayers>;
|
|
203
|
-
/**
|
|
204
|
-
* Marker for a boolean JSX prop. Use inside the `props` block:
|
|
205
|
-
*
|
|
206
|
-
* props: {
|
|
207
|
-
* loading: bool(),
|
|
208
|
-
* disabled: bool(),
|
|
209
|
-
* }
|
|
210
|
-
*/
|
|
211
191
|
/**
|
|
212
192
|
* Names of prop bindings that participate in matrix/strip iteration —
|
|
213
193
|
* i.e. props authored as `enums({...})` or `bool()`. Other prop bindings
|
|
@@ -295,15 +275,6 @@ interface CompoundVariant {
|
|
|
295
275
|
conditions: Record<string, string>;
|
|
296
276
|
styles: Record<string, Record<string, unknown>>;
|
|
297
277
|
}
|
|
298
|
-
/**
|
|
299
|
-
* The architecture-doc-target component config. Distinct from today's
|
|
300
|
-
* `SingleComponentDef` (`base` + `variants` shape) — this is the
|
|
301
|
-
* pure-data, layers-first shape the new `defineComponent` accepts.
|
|
302
|
-
*
|
|
303
|
-
* `TLayers` is inferred from the `layers` block so prop bindings can
|
|
304
|
-
* narrow their `layer` field against the component's actual layer
|
|
305
|
-
* names; typos surface at the authoring site.
|
|
306
|
-
*/
|
|
307
278
|
/**
|
|
308
279
|
* Branded shape returned by `defineComponent({...})`. Carries `layers`,
|
|
309
280
|
* `props`, AND a phantom `__tag` slot as const-narrowed types so
|
|
@@ -340,10 +311,5 @@ interface ComponentConfigValue<TLayers extends Record<string, LayerInput>, TProp
|
|
|
340
311
|
*/
|
|
341
312
|
readonly examples?: Examples<TProps>;
|
|
342
313
|
}
|
|
343
|
-
/**
|
|
344
|
-
* The bundle passed to the render function for each layer — a ready-to-
|
|
345
|
-
* spread object with `className` and any forwarded attrs. The render
|
|
346
|
-
* function destructures `props.<layerName>` into the JSX position.
|
|
347
|
-
*/
|
|
348
314
|
//#endregion
|
|
349
315
|
export { BoolMarker, ComponentConfigValue, ComposedLayer, CompositeBinding, CompoundVariant, EnumMarker, HtmlTag, LayerInput, PrimitiveLayer, PrimitivePropBinding, PropBinding, RootTag, SingleLayerCompositeBinding, StylePropBinding, StylePropShorthand, VerbosePropBinding };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../config/dist/component-refs.d.ts
|
|
2
|
-
//#region src/component-refs.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Augmentable registries + template-literal ref types for the
|
|
5
4
|
* component-API surface.
|
|
@@ -64,14 +63,6 @@ interface RegisteredStyleProps {}
|
|
|
64
63
|
* call.
|
|
65
64
|
*/
|
|
66
65
|
interface RegisteredComposites {}
|
|
67
|
-
/**
|
|
68
|
-
* Registered motion-preset names. Each key is the preset identifier
|
|
69
|
-
* (`'{fadeIn}'`); value is `void`.
|
|
70
|
-
*
|
|
71
|
-
* Populated by codegen from `uds.config.ts`'s `.defineMotion({...})`
|
|
72
|
-
* (motion has no separate `.registerMotion` step today; the entries
|
|
73
|
-
* come directly from `defineMotion` keys).
|
|
74
|
-
*/
|
|
75
66
|
/**
|
|
76
67
|
* Brace-wrapped reference to a registered React component. Falls open
|
|
77
68
|
* to `'{${string}}'` when the registry is unaugmented (e.g. inside
|
|
@@ -90,9 +81,5 @@ type StylePropRef = [keyof RegisteredStyleProps] extends [never] ? `{${string}}`
|
|
|
90
81
|
* when unaugmented.
|
|
91
82
|
*/
|
|
92
83
|
type CompositeRef = [keyof RegisteredComposites] extends [never] ? `{${string}}` : `{${Extract<keyof RegisteredComposites, string>}}`;
|
|
93
|
-
/**
|
|
94
|
-
* Brace-wrapped reference to a registered motion preset. Falls open
|
|
95
|
-
* when unaugmented.
|
|
96
|
-
*/
|
|
97
84
|
//#endregion
|
|
98
85
|
export { ComponentRef, CompositeRef, RegisteredComponents, RegisteredComposites, RegisteredStyleProps, StylePropRef };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentsConfig } from "@uds/types";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../config/dist/consts/defaultColors.d.ts
|
|
2
|
-
//#region src/consts/defaultColors.d.ts
|
|
3
2
|
declare const defaultColors: {
|
|
4
3
|
inherit: string;
|
|
5
4
|
current: string;
|
|
@@ -248,6 +247,6 @@ declare const defaultColors: {
|
|
|
248
247
|
'rose-800': string;
|
|
249
248
|
'rose-900': string;
|
|
250
249
|
'rose-950': string;
|
|
251
|
-
};
|
|
250
|
+
};
|
|
252
251
|
//#endregion
|
|
253
252
|
export { defaultColors };
|
|
@@ -6,7 +6,6 @@ import { ResolvedStyleProp } from "./resolveStyleProp.js";
|
|
|
6
6
|
import { BaseModifierProp, ComponentsConfig, CompositeStylesConfig, ConfigurableProp, ModifierProp, MotionPreset, RemotionComponentDef, RemotionConfig, RemotionTransitionDef } from "@uds/types";
|
|
7
7
|
|
|
8
8
|
//#region ../config/dist/createConfig.d.ts
|
|
9
|
-
//#region src/createConfig.d.ts
|
|
10
9
|
type MotionPresetsDef = Record<string, MotionPreset>;
|
|
11
10
|
type MotionAliasValue<TMotion> = TMotion extends Record<string, infer V> ? Extract<V, string> : never;
|
|
12
11
|
type EmptyMotion = {};
|
|
@@ -79,12 +78,6 @@ type GetModifierFromInput<I extends ModesInput> = { [SetKey in keyof I]: { [OptK
|
|
|
79
78
|
} ? M extends ModifierNameShape ? M : never : OptKey extends string ? `_${OptKey}` : never }[keyof I[SetKey]['options']] }[keyof I];
|
|
80
79
|
/** Reject any input whose derived/explicit modifiers collide with reserved names. */
|
|
81
80
|
type CheckForReservedModifiersInput<I extends ModesInput> = true extends HasReservedModifier<GetModifierFromInput<I>> ? 'ERROR: Cannot use reserved modifier names from ModifierProp. Please use a different modifier name.' : I;
|
|
82
|
-
/**
|
|
83
|
-
* Convert the authored object-keyed input into the internal `ModeGroup[]` shape.
|
|
84
|
-
* Derives `_${optionKey}` modifiers when no explicit `modifier` is provided.
|
|
85
|
-
* Never sets `default: true` — the new API has no concept of a default option;
|
|
86
|
-
* downstream consumers treat "no option active" as the implicit default.
|
|
87
|
-
*/
|
|
88
81
|
interface ModifierDef {
|
|
89
82
|
modifier: ModifierNameShape;
|
|
90
83
|
selector: string;
|
|
@@ -164,7 +157,6 @@ type VarsToTokens<TVars extends VarsConfig> = { [K in keyof TVars]: { [T in Excl
|
|
|
164
157
|
type MergeTokens<A, B> = { [K in keyof A | keyof B]: K extends keyof B ? K extends keyof A ? A[K] & B[K] : B[K] : K extends keyof A ? A[K] : never };
|
|
165
158
|
/** Build a structured token reference object from atomic tokens */
|
|
166
159
|
declare function buildTokenReference(atomic: AtomicToken<ModifierNameShape>[], configPrefix: string): Record<string, Record<string, string>>;
|
|
167
|
-
/** Build a structured composite-styles reference object for use in defineModifiers context */
|
|
168
160
|
/** Global styles definition — CSS selector → style props */
|
|
169
161
|
type GlobalStylesDef = Record<string, Record<string, any>>;
|
|
170
162
|
/** CSS properties for the example wrapper element */
|
|
@@ -368,10 +360,6 @@ interface UdsConfig<TModifier extends ModifierNameShape = ModifierProp, TTokens
|
|
|
368
360
|
type AnyUdsConfig = UdsConfig<ModifierNameShape, any, any, any, any, any, any>;
|
|
369
361
|
/** Extract the raw config data from a builder instance */
|
|
370
362
|
declare function resolveConfig(config: AnyUdsConfig): UdsConfigData;
|
|
371
|
-
/**
|
|
372
|
-
* Resolve configuration with all token references replaced by their raw values.
|
|
373
|
-
* Useful for tools that need the actual values (e.g. anatomy generation).
|
|
374
|
-
*/
|
|
375
363
|
declare function createConfigBuilder<TModifier extends ModifierNameShape = ModifierProp, TTokens = EmptyTokens, TMotion = EmptyMotion, TExt extends Record<string, any> = {}, TCompositeStyles = EmptyCompositeStyles, TModeModifiers extends ModifierNameShape = never, TVars extends VarsConfig = EmptyVars>(data: UdsConfigData, extensions?: TExt): UdsConfig<TModifier, TTokens, TMotion, TExt, TCompositeStyles, TModeModifiers, TVars> & TExt;
|
|
376
364
|
interface InterpolateMarker {
|
|
377
365
|
__type: 'interpolate';
|
|
@@ -4,9 +4,9 @@ import "../../utils/dist/index.js";
|
|
|
4
4
|
import { getConfigurablePropMapping } from "../../core/dist/configurable-prop-helpers.js";
|
|
5
5
|
import "../../core/dist/index.js";
|
|
6
6
|
import { buildMotionReference, resolveComponentMotionAliases, validateComponentVariants } from "./component-resolution.js";
|
|
7
|
+
import { applyPresetToData, deepMerge, mergeAtomic } from "./preset-merge.js";
|
|
7
8
|
import { resolveTokenType, sniffTokenTypeFromValue } from "./resolveTokenTypes.js";
|
|
8
9
|
import { resolveStyleProp } from "./resolveStyleProp.js";
|
|
9
|
-
import { applyPresetToData, deepMerge, mergeAtomic } from "./preset-merge.js";
|
|
10
10
|
import { setRegisteredStyleProps } from "./runtime-registry.js";
|
|
11
11
|
//#region ../config/dist/createConfig.js
|
|
12
12
|
/** biome-ignore-all lint/suspicious/noExplicitAny: necessary for dynamic builder to work correctly */
|
|
@@ -3,7 +3,6 @@ import { Props } from "./Props.js";
|
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region ../config/dist/defineComponent.d.ts
|
|
6
|
-
//#region src/defineComponent.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* A React component bound to a `defineComponent` config, with the
|
|
9
8
|
* source config attached as a phantom type slot. Tools (codegen,
|
|
@@ -14,11 +13,5 @@ import { ReactNode } from "react";
|
|
|
14
13
|
type BoundComponent<TConfig extends ComponentConfigValue<Record<string, LayerInput>, any, HtmlTag | undefined>, TExtra extends Record<string, unknown> = {}> = React.FC<Props<TConfig> & TExtra> & {
|
|
15
14
|
readonly __config: TConfig;
|
|
16
15
|
};
|
|
17
|
-
/**
|
|
18
|
-
* A `defineComponent({...})` config value with a `.render(fn)` builder
|
|
19
|
-
* method bolted on. The builder is non-enumerable so JSON serialization
|
|
20
|
-
* still produces pure data — codegen can read `__kind`, `layers`,
|
|
21
|
-
* `props`, and `defaultProps` without seeing the render hook.
|
|
22
|
-
*/
|
|
23
16
|
//#endregion
|
|
24
17
|
export { BoundComponent };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CssValueTypeName } from "./types/css-values.js";
|
|
1
|
+
import { CssValue, CssValueTypeName } from "./types/css-values.js";
|
|
2
2
|
|
|
3
3
|
//#region ../config/dist/defineStyleProp.d.ts
|
|
4
4
|
/** Runtime input type for `toCss` based on the entry's `type`. */
|
|
@@ -22,31 +22,10 @@ type ArbitraryEntry = { [T in CssValueTypeName]: {
|
|
|
22
22
|
* - An array of {@link ArbitraryEntry} for multi-shape acceptance.
|
|
23
23
|
*/
|
|
24
24
|
type ArbitrarySpec = CssValueTypeName | readonly ArbitraryEntry[];
|
|
25
|
-
/**
|
|
26
|
-
* The literal-keyword subset of values a property accepts, derived from
|
|
27
|
-
* {@link CssPropertyValues}[P]. For custom CSS properties (`--*`) the value
|
|
28
|
-
* type is governed by the required `cssType` field instead, so any string
|
|
29
|
-
* is accepted at the type level.
|
|
30
|
-
*/
|
|
31
25
|
type StylePropMetadata = {
|
|
32
26
|
label?: string;
|
|
33
27
|
description?: string;
|
|
34
28
|
};
|
|
35
|
-
/**
|
|
36
|
-
* A finalized style prop. Returned by `defineStyleProp(spec)` (or the
|
|
37
|
-
* `.metadata({...})` chain). Consumers wrap these in
|
|
38
|
-
* `uds.registerStyleProps({ <propName>: ... })`.
|
|
39
|
-
*
|
|
40
|
-
* `cssProperty` is passed through verbatim from the authored input:
|
|
41
|
-
* - **string** — a direct prop writing one CSS property.
|
|
42
|
-
* - **`readonly string[]`** — a fan-out prop writing every CSS
|
|
43
|
-
* property in the list (e.g. `borderRadiusStart` covering both
|
|
44
|
-
* start-side corners).
|
|
45
|
-
*
|
|
46
|
-
* Readers that need iteration normalize at the call site
|
|
47
|
-
* (`Array.isArray(p) ? p : [p]`); readers that only need the primary
|
|
48
|
-
* use the string directly or `Array.isArray(p) ? p[0] : p`.
|
|
49
|
-
*/
|
|
50
29
|
/**
|
|
51
30
|
* Internal shape attached to a {@link StyleProp} by `.withOpacity()`.
|
|
52
31
|
* The resolver inspects this at `resolveConfig` time to synthesize a
|
|
@@ -80,14 +59,5 @@ interface AnyStyleProp {
|
|
|
80
59
|
readonly metadata: StylePropMetadata;
|
|
81
60
|
readonly opacityPair?: OpacityPairSpec;
|
|
82
61
|
}
|
|
83
|
-
/**
|
|
84
|
-
* Return shape of {@link defineStyleProp}. The `metadata` field doubles as
|
|
85
|
-
* a callable chain: read it to access `{ label?, description? }` (both
|
|
86
|
-
* optional, so an unset metadata reads `undefined` for either field) or
|
|
87
|
-
* call it as `.metadata({ label, description })` to attach metadata and
|
|
88
|
-
* get back a plain {@link StyleProp}. A function satisfies the
|
|
89
|
-
* {@link StylePropMetadata} structural shape because both fields are
|
|
90
|
-
* optional, so the dual nature is type-safe.
|
|
91
|
-
*/
|
|
92
62
|
//#endregion
|
|
93
63
|
export { AnyStyleProp, ArbitraryEntry, ArbitrarySpec, StylePropMetadata };
|
|
@@ -5,8 +5,8 @@ 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";
|
|
6
6
|
import { AnyStyleProp, ArbitraryEntry, ArbitrarySpec, StylePropMetadata } from "./defineStyleProp.js";
|
|
7
7
|
import { TokenType, VarGroupDef, VarTokenDef, VarsConfig } from "./types.js";
|
|
8
|
-
import { AtomicToken, BuildOptions, CheckForReservedModifiersInput, ComponentConfig, DefineComponentInput, DefineComponentMotionInput, ExampleDef, ExampleEntryDef, ExampleLayoutStyles, GetModifierFromInput, GlobalStylesDef, InterpolateMarker, ModeGroup, ModeOption, ModeOptionInput, ModeSetInput, ModesInput, ModifierDef, MotionPresetsDef, SingleComponentDef, UdsConfig, UdsConfigData, buildTokenReference, createConfigBuilder, darker, lighter, resolveConfig } from "./createConfig.js";
|
|
9
8
|
import { ResolvedStyleProp, ResolvedToken } from "./resolveStyleProp.js";
|
|
9
|
+
import { AtomicToken, BuildOptions, CheckForReservedModifiersInput, ComponentConfig, DefineComponentInput, DefineComponentMotionInput, ExampleDef, ExampleEntryDef, ExampleLayoutStyles, GetModifierFromInput, GlobalStylesDef, InterpolateMarker, ModeGroup, ModeOption, ModeOptionInput, ModeSetInput, ModesInput, ModifierDef, MotionPresetsDef, SingleComponentDef, UdsConfig, UdsConfigData, buildTokenReference, createConfigBuilder, darker, lighter, resolveConfig } from "./createConfig.js";
|
|
10
10
|
import { defaultColors } from "./consts/defaultColors.js";
|
|
11
11
|
import { SerializedConfig, TokenRef, buildReverseMap, deserializeConfig, serializeConfig } from "./serialize.js";
|
|
12
12
|
import { ComponentsConfig as ComponentsConfig$1 } from "@uds/types";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CssValueTypeName } from "./types/css-values.js";
|
|
2
2
|
import { ArbitrarySpec, StylePropMetadata } from "./defineStyleProp.js";
|
|
3
3
|
//#region ../config/dist/resolveStyleProp.d.ts
|
|
4
|
-
//#region src/resolveStyleProp.d.ts
|
|
5
4
|
interface ResolvedToken {
|
|
6
5
|
/** The token's raw key, e.g. `'brand'`. */
|
|
7
6
|
readonly name: string;
|
|
@@ -78,11 +77,5 @@ interface ResolvedStyleProp {
|
|
|
78
77
|
readonly arbitrary: ArbitrarySpec | undefined;
|
|
79
78
|
readonly metadata: StylePropMetadata;
|
|
80
79
|
}
|
|
81
|
-
/**
|
|
82
|
-
* Structurally-loose input shape for the resolver. Any `StyleProp<P>` from
|
|
83
|
-
* `defineStyleProp` is assignable to this. Defined locally so the
|
|
84
|
-
* resolver's signature doesn't expand `ValuesEntry<P>` over the full CSS
|
|
85
|
-
* property union (TS2590).
|
|
86
|
-
*/
|
|
87
80
|
//#endregion
|
|
88
81
|
export { ResolvedStyleProp, ResolvedToken };
|
|
@@ -3,7 +3,6 @@ import { AtomicToken, ExampleDef, ModeGroup, ModifierDef, MotionPresetsDef, UdsC
|
|
|
3
3
|
import { CompositeStylesConfig } from "@uds/types";
|
|
4
4
|
|
|
5
5
|
//#region ../config/dist/serialize.d.ts
|
|
6
|
-
//#region src/serialize.d.ts
|
|
7
6
|
type ModifierNameShape = `_${string}`;
|
|
8
7
|
type TokenRef = {
|
|
9
8
|
$ref: string;
|
|
@@ -68,6 +67,6 @@ declare function serializeConfig(config: UdsConfig): SerializedConfig;
|
|
|
68
67
|
* Resolves `$ref` markers back to `var()` strings using the atomic token
|
|
69
68
|
* definitions, then reconstructs the builder chain.
|
|
70
69
|
*/
|
|
71
|
-
declare function deserializeConfig(data: SerializedConfig): UdsConfig;
|
|
70
|
+
declare function deserializeConfig(data: SerializedConfig): UdsConfig;
|
|
72
71
|
//#endregion
|
|
73
72
|
export { SerializedConfig, TokenRef, buildReverseMap, deserializeConfig, serializeConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../config/dist/types/css-values.d.ts
|
|
2
|
-
//#region src/types/css-values.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* CSS value-type primitives — building blocks used by {@link CssPropertyValues}
|
|
5
4
|
* in `./css-properties` and by `defineStyleProp` to constrain authored values.
|
|
@@ -56,6 +55,6 @@ type CssValue = {
|
|
|
56
55
|
ident: string;
|
|
57
56
|
string: string;
|
|
58
57
|
};
|
|
59
|
-
type CssValueTypeName = keyof CssValue;
|
|
58
|
+
type CssValueTypeName = keyof CssValue;
|
|
60
59
|
//#endregion
|
|
61
60
|
export { ColorFn, ColorKeyword, CssAngle, CssColor, CssLength, CssPercentage, CssRatio, CssTime, CssValue, CssValueTypeName, HexColor, HslColor, RgbColor };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../config/dist/types.d.ts
|
|
2
|
-
//#region src/types.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Scalar DTCG-aligned token types. Composite types (shadow, gradient,
|
|
5
4
|
* typography, border, transition, cubicBezier) are intentionally deferred
|
|
@@ -67,6 +66,6 @@ type VarGroupDef<M extends `_${string}` = `_${string}`> = {
|
|
|
67
66
|
* spacing: { $type: 'dimension', 1: { value: '0.25rem' }, 2: { value: '0.5rem' } },
|
|
68
67
|
* }
|
|
69
68
|
*/
|
|
70
|
-
type VarsConfig<M extends `_${string}` = `_${string}`> = Record<string, VarGroupDef<M>>;
|
|
69
|
+
type VarsConfig<M extends `_${string}` = `_${string}`> = Record<string, VarGroupDef<M>>;
|
|
71
70
|
//#endregion
|
|
72
71
|
export { TokenType, VarGroupDef, VarTokenDef, VarsConfig };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defaultFoundationPreset } from "../../foundational-presets/dist/defaultPreset.js";
|
|
2
2
|
//#region ../presets/dist/defaultPreset.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/defaultPreset.d.ts
|
|
4
|
+
declare const defaultPreset: typeof defaultFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { defaultPreset };
|
|
@@ -2,6 +2,7 @@ import * as _$react from "react";
|
|
|
2
2
|
import * as _$_uds_types0 from "@uds/types";
|
|
3
3
|
|
|
4
4
|
//#region ../remotion/dist/components/image-slide.d.ts
|
|
5
|
+
//#region src/components/image-slide.d.ts
|
|
5
6
|
/**
|
|
6
7
|
* @description Full-screen image slide with optional caption overlay
|
|
7
8
|
*/
|
|
@@ -14,6 +15,6 @@ declare const ImageSlide: _$react.FC<_$_uds_types0.CreateComponentProps<string,
|
|
|
14
15
|
root: "div";
|
|
15
16
|
image: "img";
|
|
16
17
|
caption: "div";
|
|
17
|
-
}>>;
|
|
18
|
+
}>>; //#endregion
|
|
18
19
|
//#endregion
|
|
19
20
|
export { ImageSlide };
|
|
@@ -5,15 +5,15 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
/**
|
|
6
6
|
* @description Full-screen image slide with optional caption overlay
|
|
7
7
|
*/
|
|
8
|
-
const ImageSlide = createComponent(({ props, src, alt, caption, children }) => jsxs("div", {
|
|
8
|
+
const ImageSlide = createComponent(({ props, src, alt, caption, children }) => /* @__PURE__ */ jsxs("div", {
|
|
9
9
|
...props.root,
|
|
10
10
|
children: [
|
|
11
|
-
jsx("img", {
|
|
11
|
+
/* @__PURE__ */ jsx("img", {
|
|
12
12
|
...props.image,
|
|
13
13
|
src,
|
|
14
14
|
alt: alt ?? ""
|
|
15
15
|
}),
|
|
16
|
-
caption && jsx("div", {
|
|
16
|
+
caption && /* @__PURE__ */ jsx("div", {
|
|
17
17
|
...props.caption,
|
|
18
18
|
children: caption
|
|
19
19
|
}),
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "./image-slide.js";
|
|
2
|
-
import "./image-slide.config.js";
|
|
3
2
|
import "./lower-third.js";
|
|
4
|
-
import "./lower-third.config.js";
|
|
5
3
|
import "./quote-card.js";
|
|
6
|
-
import "./quote-card.config.js";
|
|
7
4
|
import "./split-screen.js";
|
|
8
|
-
import "./split-screen.config.js";
|
|
9
5
|
import "./stat-card.js";
|
|
10
|
-
import "./stat-card.config.js";
|
|
11
6
|
import "./text-overlay.js";
|
|
12
|
-
import "./text-overlay.config.js";
|
|
13
7
|
import "./title-card.js";
|
|
14
|
-
import "./title-card.config.js";
|
|
15
8
|
import "./typing-text.js";
|
|
9
|
+
import "./image-slide.config.js";
|
|
10
|
+
import "./lower-third.config.js";
|
|
11
|
+
import "./quote-card.config.js";
|
|
12
|
+
import "./split-screen.config.js";
|
|
13
|
+
import "./stat-card.config.js";
|
|
14
|
+
import "./text-overlay.config.js";
|
|
15
|
+
import "./title-card.config.js";
|
|
16
16
|
import "./typing-text.config.js";
|
|
@@ -2,6 +2,7 @@ import * as _$react from "react";
|
|
|
2
2
|
import * as _$_uds_types0 from "@uds/types";
|
|
3
3
|
|
|
4
4
|
//#region ../remotion/dist/components/lower-third.d.ts
|
|
5
|
+
//#region src/components/lower-third.d.ts
|
|
5
6
|
/**
|
|
6
7
|
* @description Lower-third overlay with title and optional subtitle
|
|
7
8
|
*/
|
|
@@ -15,6 +16,6 @@ declare const LowerThird: _$react.FC<_$_uds_types0.CreateComponentProps<string,
|
|
|
15
16
|
content: "div";
|
|
16
17
|
title: "div";
|
|
17
18
|
subtitle: "div";
|
|
18
|
-
}>>;
|
|
19
|
+
}>>; //#endregion
|
|
19
20
|
//#endregion
|
|
20
21
|
export { LowerThird };
|
|
@@ -5,16 +5,16 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
/**
|
|
6
6
|
* @description Lower-third overlay with title and optional subtitle
|
|
7
7
|
*/
|
|
8
|
-
const LowerThird = createComponent(({ props, title, subtitle, children }) => jsxs("div", {
|
|
8
|
+
const LowerThird = createComponent(({ props, title, subtitle, children }) => /* @__PURE__ */ jsxs("div", {
|
|
9
9
|
...props.root,
|
|
10
10
|
children: [
|
|
11
|
-
jsx("div", { ...props.bar }),
|
|
12
|
-
jsxs("div", {
|
|
11
|
+
/* @__PURE__ */ jsx("div", { ...props.bar }),
|
|
12
|
+
/* @__PURE__ */ jsxs("div", {
|
|
13
13
|
...props.content,
|
|
14
|
-
children: [jsx("div", {
|
|
14
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
15
15
|
...props.title,
|
|
16
16
|
children: title
|
|
17
|
-
}), subtitle && jsx("div", {
|
|
17
|
+
}), subtitle && /* @__PURE__ */ jsx("div", {
|
|
18
18
|
...props.subtitle,
|
|
19
19
|
children: subtitle
|
|
20
20
|
})]
|
|
@@ -2,6 +2,7 @@ import * as _$react from "react";
|
|
|
2
2
|
import * as _$_uds_types0 from "@uds/types";
|
|
3
3
|
|
|
4
4
|
//#region ../remotion/dist/components/quote-card.d.ts
|
|
5
|
+
//#region src/components/quote-card.d.ts
|
|
5
6
|
/**
|
|
6
7
|
* @description Full-screen quote display with optional attribution
|
|
7
8
|
*/
|
|
@@ -15,6 +16,6 @@ declare const QuoteCard: _$react.FC<_$_uds_types0.CreateComponentProps<string, {
|
|
|
15
16
|
quote: "div";
|
|
16
17
|
divider: "div";
|
|
17
18
|
attribution: "div";
|
|
18
|
-
}>>;
|
|
19
|
+
}>>; //#endregion
|
|
19
20
|
//#endregion
|
|
20
21
|
export { QuoteCard };
|
|
@@ -5,18 +5,18 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
/**
|
|
6
6
|
* @description Full-screen quote display with optional attribution
|
|
7
7
|
*/
|
|
8
|
-
const QuoteCard = createComponent(({ props, quote, attribution, children }) => jsxs("div", {
|
|
8
|
+
const QuoteCard = createComponent(({ props, quote, attribution, children }) => /* @__PURE__ */ jsxs("div", {
|
|
9
9
|
...props.root,
|
|
10
10
|
children: [
|
|
11
|
-
jsx("div", {
|
|
11
|
+
/* @__PURE__ */ jsx("div", {
|
|
12
12
|
...props.mark,
|
|
13
13
|
children: "“"
|
|
14
14
|
}),
|
|
15
|
-
jsx("div", {
|
|
15
|
+
/* @__PURE__ */ jsx("div", {
|
|
16
16
|
...props.quote,
|
|
17
17
|
children: quote
|
|
18
18
|
}),
|
|
19
|
-
attribution && jsxs(Fragment, { children: [jsx("div", { ...props.divider }), jsx("div", {
|
|
19
|
+
attribution && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", { ...props.divider }), /* @__PURE__ */ jsx("div", {
|
|
20
20
|
...props.attribution,
|
|
21
21
|
children: attribution
|
|
22
22
|
})] }),
|
|
@@ -2,6 +2,7 @@ import * as _$react from "react";
|
|
|
2
2
|
import * as _$_uds_types0 from "@uds/types";
|
|
3
3
|
|
|
4
4
|
//#region ../remotion/dist/components/split-screen.d.ts
|
|
5
|
+
//#region src/components/split-screen.d.ts
|
|
5
6
|
/**
|
|
6
7
|
* @description Side-by-side split screen layout for comparing content
|
|
7
8
|
*/
|
|
@@ -19,6 +20,6 @@ declare const SplitScreen: _$react.FC<_$_uds_types0.CreateComponentProps<string,
|
|
|
19
20
|
leftBody: "div";
|
|
20
21
|
rightTitle: "div";
|
|
21
22
|
rightBody: "div";
|
|
22
|
-
}>>;
|
|
23
|
+
}>>; //#endregion
|
|
23
24
|
//#endregion
|
|
24
25
|
export { SplitScreen };
|
|
@@ -5,25 +5,25 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
/**
|
|
6
6
|
* @description Side-by-side split screen layout for comparing content
|
|
7
7
|
*/
|
|
8
|
-
const SplitScreen = createComponent(({ props, leftTitle, leftBody, rightTitle, rightBody, children }) => jsxs("div", {
|
|
8
|
+
const SplitScreen = createComponent(({ props, leftTitle, leftBody, rightTitle, rightBody, children }) => /* @__PURE__ */ jsxs("div", {
|
|
9
9
|
...props.root,
|
|
10
10
|
children: [
|
|
11
|
-
jsxs("div", {
|
|
11
|
+
/* @__PURE__ */ jsxs("div", {
|
|
12
12
|
...props.left,
|
|
13
|
-
children: [leftTitle && jsx("div", {
|
|
13
|
+
children: [leftTitle && /* @__PURE__ */ jsx("div", {
|
|
14
14
|
...props.leftTitle,
|
|
15
15
|
children: leftTitle
|
|
16
|
-
}), leftBody && jsx("div", {
|
|
16
|
+
}), leftBody && /* @__PURE__ */ jsx("div", {
|
|
17
17
|
...props.leftBody,
|
|
18
18
|
children: leftBody
|
|
19
19
|
})]
|
|
20
20
|
}),
|
|
21
|
-
jsxs("div", {
|
|
21
|
+
/* @__PURE__ */ jsxs("div", {
|
|
22
22
|
...props.right,
|
|
23
|
-
children: [rightTitle && jsx("div", {
|
|
23
|
+
children: [rightTitle && /* @__PURE__ */ jsx("div", {
|
|
24
24
|
...props.rightTitle,
|
|
25
25
|
children: rightTitle
|
|
26
|
-
}), rightBody && jsx("div", {
|
|
26
|
+
}), rightBody && /* @__PURE__ */ jsx("div", {
|
|
27
27
|
...props.rightBody,
|
|
28
28
|
children: rightBody
|
|
29
29
|
})]
|
|
@@ -2,6 +2,7 @@ import * as _$react from "react";
|
|
|
2
2
|
import * as _$_uds_types0 from "@uds/types";
|
|
3
3
|
|
|
4
4
|
//#region ../remotion/dist/components/stat-card.d.ts
|
|
5
|
+
//#region src/components/stat-card.d.ts
|
|
5
6
|
/**
|
|
6
7
|
* @description Full-screen statistic display with large value and label
|
|
7
8
|
*/
|
|
@@ -13,6 +14,6 @@ declare const StatCard: _$react.FC<_$_uds_types0.CreateComponentProps<string, {
|
|
|
13
14
|
root: "div";
|
|
14
15
|
value: "div";
|
|
15
16
|
label: "div";
|
|
16
|
-
}>>;
|
|
17
|
+
}>>; //#endregion
|
|
17
18
|
//#endregion
|
|
18
19
|
export { StatCard };
|
|
@@ -5,14 +5,14 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
/**
|
|
6
6
|
* @description Full-screen statistic display with large value and label
|
|
7
7
|
*/
|
|
8
|
-
const StatCard = createComponent(({ props, value, label, children }) => jsxs("div", {
|
|
8
|
+
const StatCard = createComponent(({ props, value, label, children }) => /* @__PURE__ */ jsxs("div", {
|
|
9
9
|
...props.root,
|
|
10
10
|
children: [
|
|
11
|
-
jsx("div", {
|
|
11
|
+
/* @__PURE__ */ jsx("div", {
|
|
12
12
|
...props.value,
|
|
13
13
|
children: value
|
|
14
14
|
}),
|
|
15
|
-
label && jsx("div", {
|
|
15
|
+
label && /* @__PURE__ */ jsx("div", {
|
|
16
16
|
...props.label,
|
|
17
17
|
children: label
|
|
18
18
|
}),
|
|
@@ -2,6 +2,7 @@ import * as _$react from "react";
|
|
|
2
2
|
import * as _$_uds_types0 from "@uds/types";
|
|
3
3
|
|
|
4
4
|
//#region ../remotion/dist/components/text-overlay.d.ts
|
|
5
|
+
//#region src/components/text-overlay.d.ts
|
|
5
6
|
/**
|
|
6
7
|
* @description Full-screen text overlay for displaying text over video or images
|
|
7
8
|
*/
|
|
@@ -11,6 +12,6 @@ declare const TextOverlay: _$react.FC<_$_uds_types0.CreateComponentProps<string,
|
|
|
11
12
|
}, {
|
|
12
13
|
root: "div";
|
|
13
14
|
text: "div";
|
|
14
|
-
}>>;
|
|
15
|
+
}>>; //#endregion
|
|
15
16
|
//#endregion
|
|
16
17
|
export { TextOverlay };
|
|
@@ -5,9 +5,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
/**
|
|
6
6
|
* @description Full-screen text overlay for displaying text over video or images
|
|
7
7
|
*/
|
|
8
|
-
const TextOverlay = createComponent(({ props, text, children }) => jsxs("div", {
|
|
8
|
+
const TextOverlay = createComponent(({ props, text, children }) => /* @__PURE__ */ jsxs("div", {
|
|
9
9
|
...props.root,
|
|
10
|
-
children: [jsx("div", {
|
|
10
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
11
11
|
...props.text,
|
|
12
12
|
children: text
|
|
13
13
|
}), children]
|
|
@@ -2,6 +2,7 @@ import * as _$react from "react";
|
|
|
2
2
|
import * as _$_uds_types0 from "@uds/types";
|
|
3
3
|
|
|
4
4
|
//#region ../remotion/dist/components/title-card.d.ts
|
|
5
|
+
//#region src/components/title-card.d.ts
|
|
5
6
|
/**
|
|
6
7
|
* @description Full-screen title card with optional subtitle for video scenes
|
|
7
8
|
*/
|
|
@@ -13,6 +14,6 @@ declare const TitleCard: _$react.FC<_$_uds_types0.CreateComponentProps<string, {
|
|
|
13
14
|
root: "div";
|
|
14
15
|
title: "div";
|
|
15
16
|
subtitle: "div";
|
|
16
|
-
}>>;
|
|
17
|
+
}>>; //#endregion
|
|
17
18
|
//#endregion
|
|
18
19
|
export { TitleCard };
|
|
@@ -5,14 +5,14 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
/**
|
|
6
6
|
* @description Full-screen title card with optional subtitle for video scenes
|
|
7
7
|
*/
|
|
8
|
-
const TitleCard = createComponent(({ props, title, subtitle, children }) => jsxs("div", {
|
|
8
|
+
const TitleCard = createComponent(({ props, title, subtitle, children }) => /* @__PURE__ */ jsxs("div", {
|
|
9
9
|
...props.root,
|
|
10
10
|
children: [
|
|
11
|
-
jsx("div", {
|
|
11
|
+
/* @__PURE__ */ jsx("div", {
|
|
12
12
|
...props.title,
|
|
13
13
|
children: title
|
|
14
14
|
}),
|
|
15
|
-
subtitle && jsx("div", {
|
|
15
|
+
subtitle && /* @__PURE__ */ jsx("div", {
|
|
16
16
|
...props.subtitle,
|
|
17
17
|
children: subtitle
|
|
18
18
|
}),
|