@yahoo/uds-v5-wip 1.36.0 → 1.36.1
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/_virtual/_rolldown/runtime.js +13 -0
- package/dist/config/dist/component-resolution.d.ts +1 -1
- package/dist/config/dist/component-resolution.js +1 -1
- package/dist/config/dist/consts/defaultColors.d.ts +1 -2
- package/dist/config/dist/createConfig.d.ts +12 -88
- package/dist/config/dist/createConfig.js +67 -161
- package/dist/config/dist/defineStyleProp.d.ts +1 -12
- package/dist/config/dist/defineStyleProp.js +25 -0
- package/dist/config/dist/index.d.ts +2 -3
- package/dist/config/dist/index.js +2 -1
- package/dist/config/dist/preset-merge.js +0 -12
- package/dist/config/dist/propertyAcceptedTypes.js +17 -4
- package/dist/config/dist/propertyGroups.d.ts +1 -11
- package/dist/config/dist/propertyGroups.js +1 -19
- package/dist/config/dist/resolveStyleProp.d.ts +0 -7
- package/dist/config/dist/resolveStyleProp.js +11 -2
- package/dist/config/dist/serialize.d.ts +11 -4
- package/dist/config/dist/serialize.js +3 -3
- package/dist/config/dist/types/css-values.d.ts +1 -2
- package/dist/config/dist/types.d.ts +1 -2
- package/dist/config.d.ts +184 -184
- package/dist/core/dist/color-opacity-map.d.ts +13 -0
- package/dist/core/dist/color-opacity-map.js +33 -0
- package/dist/core/dist/compositeStyles.d.ts +2 -1
- package/dist/core/dist/configurable-prop-helpers.d.ts +32 -0
- package/dist/core/dist/configurable-prop-helpers.js +61 -0
- package/dist/core/dist/createComponent.d.ts +2 -1
- package/dist/core/dist/createComponentExample.d.ts +2 -1
- package/dist/core/dist/createProvider.d.ts +2 -1
- package/dist/core/dist/generated/stylePropsTwMap.d.ts +2 -1
- package/dist/core/dist/getComponentStyles.d.ts +2 -1
- package/dist/core/dist/getStyles.d.ts +2 -1
- package/dist/core/dist/getStyles.js +3 -1
- package/dist/core/dist/index.d.ts +4 -1
- package/dist/core/dist/index.js +4 -1
- package/dist/core/dist/modifier-mappings.d.ts +13 -0
- package/dist/core/dist/modifier-mappings.js +61 -0
- package/dist/core/dist/resolveMotionState.d.ts +2 -1
- package/dist/core/dist/style-prop-data.d.ts +33 -0
- package/dist/{loader/dist/packages/core/dist/propMappings.js → core/dist/style-prop-data.js} +2 -93
- package/dist/core/dist/transformPreset.d.ts +2 -1
- package/dist/core/dist/withDefaultStyleProps.d.ts +2 -1
- package/dist/core.d.ts +4 -1
- package/dist/core.js +4 -1
- package/dist/fixtures.d.ts +3 -1
- package/dist/fixtures.js +3 -1
- package/dist/foundational-presets/dist/boldVibrant.d.ts +573 -224
- package/dist/foundational-presets/dist/brutalist.d.ts +573 -224
- package/dist/foundational-presets/dist/candy.d.ts +573 -224
- package/dist/foundational-presets/dist/cleanMinimalist.d.ts +573 -224
- package/dist/foundational-presets/dist/corporate.d.ts +573 -224
- package/dist/foundational-presets/dist/darkMoody.d.ts +573 -224
- package/dist/foundational-presets/dist/defaultPreset.d.ts +197 -198
- package/dist/foundational-presets/dist/defaultPreset.js +2 -312
- package/dist/foundational-presets/dist/forest.d.ts +573 -224
- package/dist/foundational-presets/dist/highContrast.d.ts +573 -224
- package/dist/foundational-presets/dist/lavender.d.ts +573 -224
- package/dist/foundational-presets/dist/luxury.d.ts +573 -224
- package/dist/foundational-presets/dist/monochrome.d.ts +573 -224
- package/dist/foundational-presets/dist/neonCyber.d.ts +573 -224
- package/dist/foundational-presets/dist/newspaper.d.ts +573 -224
- package/dist/foundational-presets/dist/ocean.d.ts +573 -224
- package/dist/foundational-presets/dist/slate.d.ts +350 -0
- package/dist/foundational-presets/dist/style-props.js +1384 -0
- package/dist/foundational-presets/dist/sunset.d.ts +350 -0
- package/dist/foundational-presets/dist/terminal.d.ts +350 -0
- package/dist/foundational-presets/dist/warmOrganic.d.ts +350 -0
- package/dist/loader/dist/loader/style-transform.js +2 -1
- package/dist/loader/dist/loader.d.ts +1 -2
- package/dist/loader/dist/next.d.ts +1 -2
- package/dist/loader/dist/packages/core/dist/color-opacity-map.js +33 -0
- package/dist/loader/dist/packages/core/dist/getStyles.js +3 -1
- package/dist/loader/dist/packages/core/dist/modifier-mappings.js +61 -0
- package/dist/{core/dist/propMappings.js → loader/dist/packages/core/dist/style-prop-data.js} +2 -150
- package/dist/presets/dist/boldVibrant.d.ts +1 -2
- package/dist/presets/dist/brutalist.d.ts +1 -2
- package/dist/presets/dist/candy.d.ts +1 -2
- package/dist/presets/dist/cleanMinimalist.d.ts +1 -2
- package/dist/presets/dist/corporate.d.ts +1 -2
- package/dist/presets/dist/darkMoody.d.ts +1 -2
- package/dist/presets/dist/defaultPreset.d.ts +1 -2
- package/dist/presets/dist/forest.d.ts +1 -2
- package/dist/presets/dist/highContrast.d.ts +1 -2
- package/dist/presets/dist/lavender.d.ts +1 -2
- package/dist/presets/dist/luxury.d.ts +1 -2
- package/dist/presets/dist/monochrome.d.ts +1 -2
- package/dist/presets/dist/neonCyber.d.ts +1 -2
- package/dist/presets/dist/newspaper.d.ts +1 -2
- package/dist/presets/dist/ocean.d.ts +1 -2
- package/dist/presets/dist/slate.d.ts +1 -2
- package/dist/presets/dist/sunset.d.ts +1 -2
- package/dist/presets/dist/terminal.d.ts +1 -2
- package/dist/presets/dist/warmOrganic.d.ts +1 -2
- package/dist/remotion/dist/components/image-slide.d.ts +1 -2
- package/dist/remotion/dist/components/lower-third.d.ts +1 -2
- package/dist/remotion/dist/components/quote-card.d.ts +1 -2
- package/dist/remotion/dist/components/split-screen.d.ts +1 -2
- package/dist/remotion/dist/components/stat-card.d.ts +1 -2
- package/dist/remotion/dist/components/text-overlay.d.ts +1 -2
- package/dist/remotion/dist/components/title-card.d.ts +1 -2
- package/dist/remotion/dist/components/typing-text.d.ts +1 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/dist/array-utils/closestItem.d.ts +2 -1
- package/dist/utils/dist/array-utils/removeItem.d.ts +2 -1
- package/dist/utils/dist/component-style-defaults.d.ts +2 -1
- package/dist/utils/dist/math-utils/clamp.d.ts +2 -1
- package/dist/utils/dist/motion-utils/interpolate.d.ts +2 -1
- package/dist/utils/dist/object-utils/entries.d.ts +2 -1
- package/dist/utils/dist/object-utils/flattenObj.d.ts +2 -1
- package/dist/utils/dist/object-utils/fromEntries.d.ts +2 -1
- package/dist/utils/dist/object-utils/keys.d.ts +2 -1
- package/dist/utils/dist/object-utils/mapKeys.d.ts +2 -1
- package/dist/utils/dist/object-utils/mapValues.d.ts +2 -1
- package/dist/utils/dist/string-utils/arrayToUnion.d.ts +2 -1
- package/dist/utils/dist/string-utils/capitalize.d.ts +2 -1
- package/dist/utils/dist/string-utils/componentClassName.d.ts +2 -1
- package/dist/utils/dist/string-utils/createTemplate.d.ts +2 -1
- package/dist/utils/dist/string-utils/cssVar.d.ts +2 -1
- package/dist/utils/dist/string-utils/cssVars.d.ts +2 -1
- package/dist/utils/dist/string-utils/dedent.d.ts +2 -1
- package/dist/utils/dist/string-utils/indent.d.ts +2 -1
- package/dist/utils/dist/string-utils/join.d.ts +2 -1
- package/dist/utils/dist/string-utils/kebabCase.d.ts +2 -1
- package/dist/utils/dist/string-utils/split.d.ts +2 -1
- package/dist/utils/dist/string-utils/tsProperties.d.ts +2 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +3 -3
- package/dist/core/dist/propMappings.d.ts +0 -76
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
//#region ../utils/dist/array-utils/removeItem.d.ts
|
|
2
|
-
|
|
2
|
+
//#region src/array-utils/removeItem.d.ts
|
|
3
|
+
declare function removeItem<T>([...arr]: T[], item: T): T[]; //#endregion
|
|
3
4
|
//#endregion
|
|
4
5
|
export { removeItem };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
//#region ../utils/dist/component-style-defaults.d.ts
|
|
2
|
+
//#region src/component-style-defaults.d.ts
|
|
2
3
|
type ComponentStyleDefaultsInput = Record<string, unknown>;
|
|
3
|
-
declare function applyComponentStyleDefaults(componentName: string, styleProps: ComponentStyleDefaultsInput): ComponentStyleDefaultsInput;
|
|
4
|
+
declare function applyComponentStyleDefaults(componentName: string, styleProps: ComponentStyleDefaultsInput): ComponentStyleDefaultsInput; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { ComponentStyleDefaultsInput, applyComponentStyleDefaults };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
//#region ../utils/dist/math-utils/clamp.d.ts
|
|
2
|
+
//#region src/math-utils/clamp.d.ts
|
|
2
3
|
/**
|
|
3
4
|
* Clamps a value between a lower and upper bound.
|
|
4
5
|
*
|
|
@@ -7,6 +8,6 @@
|
|
|
7
8
|
* @param upper - The upper bound.
|
|
8
9
|
* @returns The clamped value.
|
|
9
10
|
*/
|
|
10
|
-
declare function clamp(value: number, lower: number, upper: number): number;
|
|
11
|
+
declare function clamp(value: number, lower: number, upper: number): number; //#endregion
|
|
11
12
|
//#endregion
|
|
12
13
|
export { clamp };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
//#region ../utils/dist/motion-utils/interpolate.d.ts
|
|
2
|
+
//#region src/motion-utils/interpolate.d.ts
|
|
2
3
|
type ExtrapolateType = 'extend' | 'identity' | 'clamp';
|
|
3
4
|
declare function interpolate(input: number, inputRange: number[], outputRange: number[], options?: {
|
|
4
5
|
easing?: (input: number) => number;
|
|
5
6
|
extrapolate?: ExtrapolateType;
|
|
6
7
|
extrapolateLeft?: ExtrapolateType;
|
|
7
8
|
extrapolateRight?: ExtrapolateType;
|
|
8
|
-
}): number;
|
|
9
|
+
}): number; //#endregion
|
|
9
10
|
//#endregion
|
|
10
11
|
export { interpolate };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
//#region ../utils/dist/object-utils/entries.d.ts
|
|
2
|
-
|
|
2
|
+
//#region src/object-utils/entries.d.ts
|
|
3
|
+
declare function entries<T>(item: T): [Extract<keyof T, string> extends never ? string : Extract<keyof T, string>, T[keyof T]][]; //#endregion
|
|
3
4
|
//#endregion
|
|
4
5
|
export { entries };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
//#region ../utils/dist/object-utils/flattenObj.d.ts
|
|
2
|
+
//#region src/object-utils/flattenObj.d.ts
|
|
2
3
|
type Prev = [never, 0, 1, 2, 3, 4];
|
|
3
4
|
type FlattenDepth<T, D extends Prev[number] = Prev[number], Sep extends string = '-', P extends string = ''> = [D] extends [0] ? Record<P, T> : T extends Record<string, unknown> ? { [K in keyof T & string]: FlattenDepth<T[K], Prev[D], Sep, P extends '' ? K : `${P}${Sep}${K}`> }[keyof T & string] : Record<P, T>;
|
|
4
5
|
type Merge<U> = (U extends unknown ? (_x: U) => void : never) extends ((_x: infer I) => void) ? { [K in keyof I]: I[K] } : never;
|
|
@@ -7,6 +8,6 @@ declare function flattenObj<T, D extends Prev[number] = Prev[number], Sep extend
|
|
|
7
8
|
prefix?: P;
|
|
8
9
|
separator?: Sep;
|
|
9
10
|
depth?: D;
|
|
10
|
-
}): Flattened<T, D, Sep, P>;
|
|
11
|
+
}): Flattened<T, D, Sep, P>; //#endregion
|
|
11
12
|
//#endregion
|
|
12
13
|
export { flattenObj };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
//#region ../utils/dist/object-utils/fromEntries.d.ts
|
|
2
|
-
|
|
2
|
+
//#region src/object-utils/fromEntries.d.ts
|
|
3
|
+
declare function fromEntries<const T extends ReadonlyArray<readonly [PropertyKey, unknown]>>(entries: T): { [K in T[number] as K[0]]: K[1] }; //#endregion
|
|
3
4
|
//#endregion
|
|
4
5
|
export { fromEntries };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
//#region ../utils/dist/object-utils/mapKeys.d.ts
|
|
2
|
+
//#region src/object-utils/mapKeys.d.ts
|
|
2
3
|
type AnyObject = Record<string, unknown>;
|
|
3
|
-
declare function mapKeys<T extends AnyObject, K extends (value: T[keyof T], key: keyof T, obj: T) => PropertyKey>(obj: T, callbackFn: K): { [key in ReturnType<K>]: T[keyof T] };
|
|
4
|
+
declare function mapKeys<T extends AnyObject, K extends (value: T[keyof T], key: keyof T, obj: T) => PropertyKey>(obj: T, callbackFn: K): { [key in ReturnType<K>]: T[keyof T] }; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { mapKeys };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
//#region ../utils/dist/object-utils/mapValues.d.ts
|
|
2
|
+
//#region src/object-utils/mapValues.d.ts
|
|
2
3
|
type AnyObject = Record<string, unknown>;
|
|
3
|
-
declare function mapValues<T extends AnyObject, K extends (value: T[keyof T], key: Extract<keyof T, string>, i: number) => unknown>(obj: T, callbackFn: K): { [key in keyof T]: ReturnType<K> };
|
|
4
|
+
declare function mapValues<T extends AnyObject, K extends (value: T[keyof T], key: Extract<keyof T, string>, i: number) => unknown>(obj: T, callbackFn: K): { [key in keyof T]: ReturnType<K> }; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { mapValues };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
//#region ../utils/dist/string-utils/arrayToUnion.d.ts
|
|
2
|
-
|
|
2
|
+
//#region src/string-utils/arrayToUnion.d.ts
|
|
3
|
+
declare function arrayToUnion<T extends string[]>(array: T): `'${T[number]}'`; //#endregion
|
|
3
4
|
//#endregion
|
|
4
5
|
export { arrayToUnion };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
//#region ../utils/dist/string-utils/componentClassName.d.ts
|
|
2
|
+
//#region src/string-utils/componentClassName.d.ts
|
|
2
3
|
/**
|
|
3
4
|
* Build the base class name for a component slot.
|
|
4
5
|
*
|
|
@@ -20,6 +21,6 @@ declare function componentVariantClass(componentName: string, slot: string, axis
|
|
|
20
21
|
* componentCompoundClass('Switch', 'root', { size: 'lg', color: 'primary' })
|
|
21
22
|
* // "switch-root--color-primary_size-lg"
|
|
22
23
|
*/
|
|
23
|
-
declare function componentCompoundClass(componentName: string, slot: string, conditions: Record<string, string>): string;
|
|
24
|
+
declare function componentCompoundClass(componentName: string, slot: string, conditions: Record<string, string>): string; //#endregion
|
|
24
25
|
//#endregion
|
|
25
26
|
export { componentCompoundClass, componentSlotClass, componentVariantClass };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
//#region ../utils/dist/string-utils/createTemplate.d.ts
|
|
2
|
+
//#region src/string-utils/createTemplate.d.ts
|
|
2
3
|
type CreateTemplateParams = {
|
|
3
4
|
sort?: boolean;
|
|
4
5
|
sortMapKeys?: boolean;
|
|
@@ -11,6 +12,6 @@ type CreateTemplateParams = {
|
|
|
11
12
|
declare function createTemplate(params?: CreateTemplateParams): (strings: TemplateStringsArray, ...expr: unknown[]) => string;
|
|
12
13
|
declare const typeTemplate: (strings: TemplateStringsArray, ...expr: unknown[]) => string;
|
|
13
14
|
declare const interfaceTemplate: (strings: TemplateStringsArray, ...expr: unknown[]) => string;
|
|
14
|
-
declare const template: (strings: TemplateStringsArray, ...expr: unknown[]) => string;
|
|
15
|
+
declare const template: (strings: TemplateStringsArray, ...expr: unknown[]) => string; //#endregion
|
|
15
16
|
//#endregion
|
|
16
17
|
export { createTemplate, interfaceTemplate, template, typeTemplate };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { KebabCase } from "./kebabCase.js";
|
|
2
2
|
|
|
3
3
|
//#region ../utils/dist/string-utils/cssVar.d.ts
|
|
4
|
+
//#region src/string-utils/cssVar.d.ts
|
|
4
5
|
/**
|
|
5
6
|
* Sanitize a token name for use in CSS identifiers (variable names, class names).
|
|
6
7
|
* Dots become underscores, slashes become hyphens to avoid collisions (e.g. 1.5 vs 1/5).
|
|
@@ -50,6 +51,6 @@ declare function cssVar<Property extends string, Alias extends string>(property:
|
|
|
50
51
|
* // "--color-brand: blue;\n--font-size: 16px;"
|
|
51
52
|
* ```
|
|
52
53
|
*/
|
|
53
|
-
declare function cssVarDeclarations(vars: Record<string, string | number>): string;
|
|
54
|
+
declare function cssVarDeclarations(vars: Record<string, string | number>): string; //#endregion
|
|
54
55
|
//#endregion
|
|
55
56
|
export { CssVar, CssVarName, cssVar, cssVarDeclarations, cssVarName, safeTokenName };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
//#region ../utils/dist/string-utils/cssVars.d.ts
|
|
2
|
+
//#region src/string-utils/cssVars.d.ts
|
|
2
3
|
/**
|
|
3
4
|
* Tagged template function for CSS variable generation.
|
|
4
5
|
* Automatically converts objects to CSS variable declarations.
|
|
@@ -76,6 +77,6 @@
|
|
|
76
77
|
* // Output: joined blocks with double newlines
|
|
77
78
|
* ```
|
|
78
79
|
*/
|
|
79
|
-
declare function cssVars(strings: TemplateStringsArray, ...expr: unknown[]): string;
|
|
80
|
+
declare function cssVars(strings: TemplateStringsArray, ...expr: unknown[]): string; //#endregion
|
|
80
81
|
//#endregion
|
|
81
82
|
export { cssVars };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
//#region ../utils/dist/string-utils/dedent.d.ts
|
|
2
|
+
//#region src/string-utils/dedent.d.ts
|
|
2
3
|
/**
|
|
3
4
|
* Dedent tagged template literal function.
|
|
4
5
|
* Removes common leading indentation from all lines in a template literal,
|
|
@@ -42,6 +43,6 @@ declare function dedent(strings: TemplateStringsArray, ...values: unknown[]): st
|
|
|
42
43
|
* `;
|
|
43
44
|
* ```
|
|
44
45
|
*/
|
|
45
|
-
declare function dedentTS(strings: TemplateStringsArray, ...values: unknown[]): string;
|
|
46
|
+
declare function dedentTS(strings: TemplateStringsArray, ...values: unknown[]): string; //#endregion
|
|
46
47
|
//#endregion
|
|
47
48
|
export { dedent, dedentTS };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
//#region ../utils/dist/string-utils/join.d.ts
|
|
2
|
+
//#region src/string-utils/join.d.ts
|
|
2
3
|
type Join<T extends readonly string[], D extends string> = T extends [] ? '' : T extends [infer F extends string] ? F : T extends [infer F extends string, ...infer R extends readonly string[]] ? `${F}${D}${Join<R, D>}` : string;
|
|
3
|
-
declare function join<T extends readonly string[]>(...parts: T): <D extends string>(delimiter: D) => Join<T, D>;
|
|
4
|
+
declare function join<T extends readonly string[]>(...parts: T): <D extends string>(delimiter: D) => Join<T, D>; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { join };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
//#region ../utils/dist/string-utils/kebabCase.d.ts
|
|
2
|
+
//#region src/string-utils/kebabCase.d.ts
|
|
2
3
|
type KebabCase<S extends string> = S extends `${infer First}${infer Rest}` ? First extends Uppercase<First> ? Rest extends `${infer RestFirst}${infer _RestRest}` ? RestFirst extends Uppercase<RestFirst> ? `${Lowercase<First>}${KebabCase<Rest>}` : `-${Lowercase<First>}${KebabCase<Rest>}` : `-${Lowercase<First>}${KebabCase<Rest>}` : `${First}${KebabCase<Rest>}` : Lowercase<S>;
|
|
3
4
|
/**
|
|
4
5
|
* Convert a string to kebab-case.
|
|
@@ -8,6 +9,6 @@ type KebabCase<S extends string> = S extends `${infer First}${infer Rest}` ? Fir
|
|
|
8
9
|
* - collapses non-alphanumerics into single hyphens
|
|
9
10
|
* - trims edge hyphens, lowercases
|
|
10
11
|
*/
|
|
11
|
-
declare function kebabCase<Input extends string>(input: Input): KebabCase<Input>;
|
|
12
|
+
declare function kebabCase<Input extends string>(input: Input): KebabCase<Input>; //#endregion
|
|
12
13
|
//#endregion
|
|
13
14
|
export { KebabCase, kebabCase };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
//#region ../utils/dist/string-utils/split.d.ts
|
|
2
|
+
//#region src/string-utils/split.d.ts
|
|
2
3
|
type Split<S extends string, D extends string> = string extends S ? string[] : S extends '' ? [] : S extends `${infer T}${D}${infer U}` ? [T, ...Split<U, D>] : [S];
|
|
3
4
|
type BuildArray<L extends number, A extends unknown[] = []> = A['length'] extends L ? A : BuildArray<L, [...A, unknown]>;
|
|
4
5
|
type Decrement<N extends number> = BuildArray<N> extends [unknown, ...infer Rest] ? Rest['length'] : never;
|
|
5
6
|
type SplitDepth<S extends string, D extends string, N extends number> = N extends 0 ? [S] : S extends `${infer Head}${D}${infer Tail}` ? N extends 1 ? [Head, Tail] : [Head, ...SplitDepth<Tail, D, Decrement<N>>] : [S];
|
|
6
7
|
declare function split<T extends string, Delimiter extends string, Depth extends number = number>(str: T, delimiter: Delimiter, options?: {
|
|
7
8
|
depth?: Depth;
|
|
8
|
-
}): Split<T, Delimiter> | SplitDepth<T, Delimiter, Depth>;
|
|
9
|
+
}): Split<T, Delimiter> | SplitDepth<T, Delimiter, Depth>; //#endregion
|
|
9
10
|
//#endregion
|
|
10
11
|
export { split };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
//#region ../utils/dist/string-utils/tsProperties.d.ts
|
|
2
|
+
//#region src/string-utils/tsProperties.d.ts
|
|
2
3
|
/**
|
|
3
4
|
* Template literal utility for formatting TypeScript interface properties
|
|
4
5
|
*
|
|
@@ -24,6 +25,6 @@ declare function tsProperties<T extends Record<string, unknown>>(strings: Templa
|
|
|
24
25
|
* // Returns: " export type ColorMode = 'light' | 'dark';\n export type Responsive = 'sm' | 'md';"
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
|
-
declare function tsTypes<T extends Record<string, string>>(strings: TemplateStringsArray, ...expr: [T]): string;
|
|
28
|
+
declare function tsTypes<T extends Record<string, string>>(strings: TemplateStringsArray, ...expr: [T]): string; //#endregion
|
|
28
29
|
//#endregion
|
|
29
30
|
export { tsProperties, tsTypes };
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ComponentStyleDefaultsInput, applyComponentStyleDefaults } from "./utils/dist/component-style-defaults.js";
|
|
1
2
|
import { closestItem } from "./utils/dist/array-utils/closestItem.js";
|
|
2
3
|
import { removeItem } from "./utils/dist/array-utils/removeItem.js";
|
|
3
|
-
import { ComponentStyleDefaultsInput, applyComponentStyleDefaults } from "./utils/dist/component-style-defaults.js";
|
|
4
4
|
import { clamp } from "./utils/dist/math-utils/clamp.js";
|
|
5
5
|
import { interpolate } from "./utils/dist/motion-utils/interpolate.js";
|
|
6
6
|
import { entries } from "./utils/dist/object-utils/entries.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yahoo/uds-v5-wip",
|
|
3
|
-
"version": "1.36.
|
|
3
|
+
"version": "1.36.1",
|
|
4
4
|
"description": "Universal Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -119,8 +119,8 @@
|
|
|
119
119
|
"@babel/traverse": "^7.29.0",
|
|
120
120
|
"@babel/types": "^7.29.0",
|
|
121
121
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
122
|
-
"@uds/cli": "npm:@yahoo/uds-v5-wip-cli@1.36.
|
|
123
|
-
"@uds/types": "npm:@yahoo/uds-v5-wip-types@1.36.
|
|
122
|
+
"@uds/cli": "npm:@yahoo/uds-v5-wip-cli@1.36.1",
|
|
123
|
+
"@uds/types": "npm:@yahoo/uds-v5-wip-types@1.36.1",
|
|
124
124
|
"clsx": "^2.1.1",
|
|
125
125
|
"react-day-picker": "^9.14.0",
|
|
126
126
|
"unplugin": "^3.0.0",
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { ConfigurableProp, ModifierProp, StyleProp } from "@uds/types";
|
|
2
|
-
|
|
3
|
-
//#region ../core/dist/propMappings.d.ts
|
|
4
|
-
interface PropMapping {
|
|
5
|
-
/** Class name prefix for runtime class generation. 'no-prefix' means value IS the class. */
|
|
6
|
-
classPrefix: string;
|
|
7
|
-
/** CSS property name (for @utility directive generation). Only needed for token-based props. */
|
|
8
|
-
cssProperty?: string;
|
|
9
|
-
/** CSS variable namespace for tokens. Only needed for token-based (configurable) props. */
|
|
10
|
-
defaultVarPrefix?: string;
|
|
11
|
-
/** Module augmentation interface name. Only needed for configurable props. */
|
|
12
|
-
augmentType?: string;
|
|
13
|
-
/** Known literal values for functional @utility generation. Used for props with cssProperty but no defaultVarPrefix. */
|
|
14
|
-
literalValues?: string[];
|
|
15
|
-
/** Alternate CSS property for component configs (directValues mode).
|
|
16
|
-
* Use when the utility cssProperty differs from the CSS shorthand needed for direct values.
|
|
17
|
-
* e.g. transition utility maps to 'transition-property', but direct values need 'transition'. */
|
|
18
|
-
directCssProperty?: string;
|
|
19
|
-
/** Template for generating inline style values from arbitrary bracket values.
|
|
20
|
-
* When present, arbitrary values like `[3.5px]` produce inline styles instead of Tailwind classes.
|
|
21
|
-
* `cssProperty` is the CSS property name (kebab-case), `valueTemplate` uses `%s` as value placeholder.
|
|
22
|
-
* e.g. { cssProperty: 'transform', valueTemplate: 'translateX(%s)' } */
|
|
23
|
-
arbitraryValueTemplate?: {
|
|
24
|
-
cssProperty: string;
|
|
25
|
-
valueTemplate: string;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
/** Exclude className — it's passed through, not mapped to a utility class */
|
|
29
|
-
type MappedStyleProp = Exclude<StyleProp, 'className'>;
|
|
30
|
-
declare const propMappings: Record<MappedStyleProp, PropMapping>;
|
|
31
|
-
/**
|
|
32
|
-
* Built-in modifier mappings (pseudo-classes, pseudo-elements, etc.).
|
|
33
|
-
* Custom modifiers from defineModes() are handled dynamically in the runtime.
|
|
34
|
-
*/
|
|
35
|
-
declare const modifierMappings: Record<ModifierProp, string>;
|
|
36
|
-
/** Look up a PropMapping by ConfigurableProp name */
|
|
37
|
-
declare function getConfigurablePropMapping(prop: ConfigurableProp): PropMapping | undefined;
|
|
38
|
-
interface ConfigurablePropertyEntry {
|
|
39
|
-
property: string;
|
|
40
|
-
subProperties: string[];
|
|
41
|
-
augmentType: string;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Derives the configurable properties table from propMappings.
|
|
45
|
-
* Groups props by augmentType — the primary prop is the one matching
|
|
46
|
-
* a ConfigurableProp name, the rest are sub-properties.
|
|
47
|
-
*/
|
|
48
|
-
declare function getConfigurableProperties(): ConfigurablePropertyEntry[];
|
|
49
|
-
interface CssVariablePrefixEntry {
|
|
50
|
-
property: string;
|
|
51
|
-
cssPrefix: string;
|
|
52
|
-
exampleVariable: string;
|
|
53
|
-
exampleUtility: string;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Derives the CSS variable prefix table from propMappings.
|
|
57
|
-
* Only includes props that have both cssProperty and defaultVarPrefix.
|
|
58
|
-
* Deduplicates by defaultVarPrefix so each namespace appears once.
|
|
59
|
-
*/
|
|
60
|
-
declare function getCssVariablePrefixes(): CssVariablePrefixEntry[];
|
|
61
|
-
interface ModifierEntry {
|
|
62
|
-
prop: string;
|
|
63
|
-
cssSelector: string;
|
|
64
|
-
category: string;
|
|
65
|
-
description: string;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Maps each color prop name to its corresponding opacity prop name.
|
|
69
|
-
* Used by runtime (getStyles) and loader (style-transform) to merge
|
|
70
|
-
* a color value with its opacity before class generation.
|
|
71
|
-
*
|
|
72
|
-
* e.g. `bg="primary"` + `bgOpacity="75"` → class `bg-primary_75`
|
|
73
|
-
*/
|
|
74
|
-
declare const colorPropToOpacityProp: Record<string, string>;
|
|
75
|
-
//#endregion
|
|
76
|
-
export { ConfigurablePropertyEntry, CssVariablePrefixEntry, ModifierEntry, PropMapping, colorPropToOpacityProp, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes, modifierMappings, propMappings };
|