@yahoo/uds-v5-wip 1.0.2 → 1.0.3
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/components/dist/accordion.config.d.ts +1 -2
- package/dist/components/dist/accordion.d.ts +1 -2
- package/dist/components/dist/alert.config.d.ts +1 -2
- package/dist/components/dist/alert.d.ts +1 -2
- package/dist/components/dist/anchor.config.d.ts +1 -2
- package/dist/components/dist/anchor.d.ts +1 -2
- package/dist/components/dist/article.d.ts +1 -2
- package/dist/components/dist/aside.d.ts +1 -2
- package/dist/components/dist/avatar-group.config.d.ts +1 -2
- package/dist/components/dist/avatar-group.d.ts +1 -2
- package/dist/components/dist/avatar.config.d.ts +1 -2
- package/dist/components/dist/avatar.d.ts +1 -2
- package/dist/components/dist/badge.config.d.ts +1 -2
- package/dist/components/dist/badge.d.ts +1 -2
- package/dist/components/dist/box.d.ts +1 -2
- package/dist/components/dist/breadcrumb.config.d.ts +1 -2
- package/dist/components/dist/breadcrumb.d.ts +1 -2
- package/dist/components/dist/button.config.d.ts +1 -2
- package/dist/components/dist/button.d.ts +1 -2
- package/dist/components/dist/card.config.d.ts +1 -2
- package/dist/components/dist/card.d.ts +1 -2
- package/dist/components/dist/collapsible.config.d.ts +1 -2
- package/dist/components/dist/collapsible.d.ts +1 -2
- package/dist/components/dist/command.config.d.ts +1 -2
- package/dist/components/dist/command.d.ts +1 -2
- package/dist/components/dist/control-color.config.d.ts +1 -2
- package/dist/components/dist/control-color.d.ts +1 -2
- package/dist/components/dist/control-curve.config.d.ts +1 -2
- package/dist/components/dist/control-curve.d.ts +1 -2
- package/dist/components/dist/control-folder.config.d.ts +1 -2
- package/dist/components/dist/control-folder.d.ts +1 -2
- package/dist/components/dist/control-group.config.d.ts +1 -2
- package/dist/components/dist/control-group.d.ts +1 -2
- package/dist/components/dist/control-knob.config.d.ts +1 -2
- package/dist/components/dist/control-knob.d.ts +1 -2
- package/dist/components/dist/control-panel.config.d.ts +1 -2
- package/dist/components/dist/control-panel.d.ts +1 -2
- package/dist/components/dist/control-select.config.d.ts +1 -2
- package/dist/components/dist/control-select.d.ts +1 -2
- package/dist/components/dist/control-slider.config.d.ts +1 -2
- package/dist/components/dist/control-slider.d.ts +1 -2
- package/dist/components/dist/control-spring.config.d.ts +1 -2
- package/dist/components/dist/control-spring.d.ts +1 -2
- package/dist/components/dist/control-stepper.config.d.ts +1 -2
- package/dist/components/dist/control-stepper.d.ts +1 -2
- package/dist/components/dist/control-toggle.config.d.ts +1 -2
- package/dist/components/dist/control-toggle.d.ts +1 -2
- package/dist/components/dist/createSlot.d.ts +1 -2
- package/dist/components/dist/dropdown.config.d.ts +1 -2
- package/dist/components/dist/dropdown.d.ts +1 -2
- package/dist/components/dist/empty-state.config.d.ts +1 -2
- package/dist/components/dist/empty-state.d.ts +1 -2
- package/dist/components/dist/footer.d.ts +1 -2
- package/dist/components/dist/grid.d.ts +1 -2
- package/dist/components/dist/header.d.ts +1 -2
- package/dist/components/dist/hstack.d.ts +1 -2
- package/dist/components/dist/image.d.ts +1 -2
- package/dist/components/dist/input.config.d.ts +1 -2
- package/dist/components/dist/input.d.ts +1 -2
- package/dist/components/dist/item.config.d.ts +1 -2
- package/dist/components/dist/item.d.ts +1 -2
- package/dist/components/dist/list.d.ts +1 -2
- package/dist/components/dist/main.d.ts +1 -2
- package/dist/components/dist/modal.config.d.ts +1 -2
- package/dist/components/dist/modal.d.ts +1 -2
- package/dist/components/dist/nav-header.config.d.ts +1 -2
- package/dist/components/dist/nav-header.d.ts +1 -2
- package/dist/components/dist/nav.d.ts +1 -2
- package/dist/components/dist/preset-bar.config.d.ts +1 -2
- package/dist/components/dist/preset-bar.d.ts +1 -2
- package/dist/components/dist/presets/index.d.ts +2 -3
- package/dist/components/dist/pressable.d.ts +1 -2
- package/dist/components/dist/progress.config.d.ts +1 -2
- package/dist/components/dist/progress.d.ts +1 -2
- package/dist/components/dist/section.d.ts +1 -2
- package/dist/components/dist/select.config.d.ts +1 -2
- package/dist/components/dist/select.d.ts +1 -2
- package/dist/components/dist/sheet.config.d.ts +1 -2
- package/dist/components/dist/sheet.d.ts +1 -2
- package/dist/components/dist/sidebar.config.d.ts +1 -2
- package/dist/components/dist/sidebar.d.ts +1 -2
- package/dist/components/dist/skeleton.config.d.ts +1 -2
- package/dist/components/dist/skeleton.d.ts +1 -2
- package/dist/components/dist/slider.config.d.ts +1 -2
- package/dist/components/dist/slider.d.ts +1 -2
- package/dist/components/dist/spinner.config.d.ts +1 -2
- package/dist/components/dist/spinner.d.ts +1 -2
- package/dist/components/dist/svg.d.ts +1 -2
- package/dist/components/dist/switch.config.d.ts +1 -2
- package/dist/components/dist/switch.d.ts +1 -2
- package/dist/components/dist/table.d.ts +1 -2
- package/dist/components/dist/tabs.config.d.ts +1 -2
- package/dist/components/dist/tabs.d.ts +1 -2
- package/dist/components/dist/text.config.d.ts +1 -2
- package/dist/components/dist/text.d.ts +1 -2
- package/dist/components/dist/textarea.config.d.ts +1 -2
- package/dist/components/dist/textarea.d.ts +1 -2
- package/dist/components/dist/toast.config.d.ts +1 -2
- package/dist/components/dist/toast.d.ts +1 -2
- package/dist/components/dist/tooltip.config.d.ts +1 -2
- package/dist/components/dist/tooltip.d.ts +1 -2
- package/dist/components/dist/vstack.d.ts +1 -2
- package/dist/components/presets/index.d.ts +1 -1
- package/dist/config.d.ts +968 -968
- package/dist/core/dist/createComponent.d.ts +1 -2
- package/dist/core/dist/createComponentExample.d.ts +1 -2
- package/dist/core/dist/createProvider.d.ts +1 -2
- package/dist/core/dist/generated/stylePropsTwMap.d.ts +1 -2
- package/dist/core/dist/getComponentStyles.d.ts +1 -2
- package/dist/core/dist/getStyles.d.ts +1 -2
- package/dist/core/dist/macros.d.ts +1 -2
- package/dist/core/dist/propMappings.d.ts +1 -2
- package/dist/core/dist/resolveMotionState.d.ts +1 -2
- package/dist/core/dist/transformPreset.d.ts +1 -2
- package/dist/core/dist/withDefaultStyleProps.d.ts +1 -2
- package/dist/foundational-presets/dist/boldVibrant.d.ts +985 -986
- package/dist/foundational-presets/dist/brutalist.d.ts +985 -986
- package/dist/foundational-presets/dist/candy.d.ts +985 -986
- package/dist/foundational-presets/dist/cleanMinimalist.d.ts +985 -986
- package/dist/foundational-presets/dist/corporate.d.ts +985 -986
- package/dist/foundational-presets/dist/darkMoody.d.ts +985 -986
- package/dist/foundational-presets/dist/defaultPreset.d.ts +968 -969
- package/dist/foundational-presets/dist/forest.d.ts +985 -986
- package/dist/foundational-presets/dist/highContrast.d.ts +985 -986
- package/dist/foundational-presets/dist/lavender.d.ts +985 -986
- package/dist/foundational-presets/dist/luxury.d.ts +985 -986
- package/dist/foundational-presets/dist/monochrome.d.ts +985 -986
- package/dist/foundational-presets/dist/motion.d.ts +1 -2
- package/dist/foundational-presets/dist/neonCyber.d.ts +985 -986
- package/dist/foundational-presets/dist/newspaper.d.ts +985 -986
- package/dist/foundational-presets/dist/ocean.d.ts +985 -986
- package/dist/foundational-presets/dist/slate.d.ts +985 -986
- package/dist/foundational-presets/dist/sunset.d.ts +985 -986
- package/dist/foundational-presets/dist/terminal.d.ts +985 -986
- package/dist/foundational-presets/dist/warmOrganic.d.ts +985 -986
- package/dist/loader/dist/loader.d.ts +1 -2
- package/dist/loader/dist/next.d.ts +1 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/dist/array-utils/closestItem.d.ts +1 -2
- package/dist/utils/dist/array-utils/removeItem.d.ts +1 -2
- package/dist/utils/dist/component-style-defaults.d.ts +1 -2
- package/dist/utils/dist/math-utils/clamp.d.ts +1 -2
- package/dist/utils/dist/motion-utils/interpolate.d.ts +1 -2
- package/dist/utils/dist/object-utils/entries.d.ts +1 -2
- package/dist/utils/dist/object-utils/flattenObj.d.ts +1 -2
- package/dist/utils/dist/object-utils/fromEntries.d.ts +1 -2
- package/dist/utils/dist/object-utils/keys.d.ts +1 -2
- package/dist/utils/dist/object-utils/mapKeys.d.ts +1 -2
- package/dist/utils/dist/object-utils/mapValues.d.ts +1 -2
- package/dist/utils/dist/string-utils/arrayToUnion.d.ts +1 -2
- package/dist/utils/dist/string-utils/capitalize.d.ts +1 -2
- package/dist/utils/dist/string-utils/componentClassName.d.ts +1 -2
- package/dist/utils/dist/string-utils/createTemplate.d.ts +1 -2
- package/dist/utils/dist/string-utils/cssVar.d.ts +1 -2
- package/dist/utils/dist/string-utils/cssVars.d.ts +1 -2
- package/dist/utils/dist/string-utils/dedent.d.ts +1 -2
- package/dist/utils/dist/string-utils/indent.d.ts +1 -2
- package/dist/utils/dist/string-utils/join.d.ts +1 -2
- package/dist/utils/dist/string-utils/kebabCase.d.ts +1 -2
- package/dist/utils/dist/string-utils/split.d.ts +1 -2
- package/dist/utils/dist/string-utils/tsProperties.d.ts +1 -2
- package/dist/utils.d.ts +1 -1
- package/package.json +2 -10
- package/dist/devtools.d.ts +0 -2
- package/dist/devtools.js +0 -3
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../utils/dist/array-utils/removeItem.d.ts
|
|
2
|
-
|
|
3
|
-
declare function removeItem<T>([...arr]: T[], item: T): T[]; //#endregion
|
|
2
|
+
declare function removeItem<T>([...arr]: T[], item: T): T[];
|
|
4
3
|
//#endregion
|
|
5
4
|
export { removeItem };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
//#region ../utils/dist/component-style-defaults.d.ts
|
|
2
|
-
//#region src/component-style-defaults.d.ts
|
|
3
2
|
type ComponentStyleDefaultsInput = Record<string, unknown>;
|
|
4
|
-
declare function applyComponentStyleDefaults(componentName: string, styleProps: ComponentStyleDefaultsInput): ComponentStyleDefaultsInput;
|
|
3
|
+
declare function applyComponentStyleDefaults(componentName: string, styleProps: ComponentStyleDefaultsInput): ComponentStyleDefaultsInput;
|
|
5
4
|
//#endregion
|
|
6
5
|
export { ComponentStyleDefaultsInput, applyComponentStyleDefaults };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../utils/dist/math-utils/clamp.d.ts
|
|
2
|
-
//#region src/math-utils/clamp.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Clamps a value between a lower and upper bound.
|
|
5
4
|
*
|
|
@@ -8,6 +7,6 @@
|
|
|
8
7
|
* @param upper - The upper bound.
|
|
9
8
|
* @returns The clamped value.
|
|
10
9
|
*/
|
|
11
|
-
declare function clamp(value: number, lower: number, upper: number): number;
|
|
10
|
+
declare function clamp(value: number, lower: number, upper: number): number;
|
|
12
11
|
//#endregion
|
|
13
12
|
export { clamp };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
//#region ../utils/dist/motion-utils/interpolate.d.ts
|
|
2
|
-
//#region src/motion-utils/interpolate.d.ts
|
|
3
2
|
type ExtrapolateType = 'extend' | 'identity' | 'clamp';
|
|
4
3
|
declare function interpolate(input: number, inputRange: number[], outputRange: number[], options?: {
|
|
5
4
|
easing?: (input: number) => number;
|
|
6
5
|
extrapolate?: ExtrapolateType;
|
|
7
6
|
extrapolateLeft?: ExtrapolateType;
|
|
8
7
|
extrapolateRight?: ExtrapolateType;
|
|
9
|
-
}): number;
|
|
8
|
+
}): number;
|
|
10
9
|
//#endregion
|
|
11
10
|
export { interpolate };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../utils/dist/object-utils/entries.d.ts
|
|
2
|
-
|
|
3
|
-
declare function entries<T>(item: T): [Extract<keyof T, string> extends never ? string : Extract<keyof T, string>, T[keyof T]][]; //#endregion
|
|
2
|
+
declare function entries<T>(item: T): [Extract<keyof T, string> extends never ? string : Extract<keyof T, string>, T[keyof T]][];
|
|
4
3
|
//#endregion
|
|
5
4
|
export { entries };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../utils/dist/object-utils/flattenObj.d.ts
|
|
2
|
-
//#region src/object-utils/flattenObj.d.ts
|
|
3
2
|
type Prev = [never, 0, 1, 2, 3, 4];
|
|
4
3
|
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>;
|
|
5
4
|
type Merge<U> = (U extends unknown ? (_x: U) => void : never) extends ((_x: infer I) => void) ? { [K in keyof I]: I[K] } : never;
|
|
@@ -8,6 +7,6 @@ declare function flattenObj<T, D extends Prev[number] = Prev[number], Sep extend
|
|
|
8
7
|
prefix?: P;
|
|
9
8
|
separator?: Sep;
|
|
10
9
|
depth?: D;
|
|
11
|
-
}): Flattened<T, D, Sep, P>;
|
|
10
|
+
}): Flattened<T, D, Sep, P>;
|
|
12
11
|
//#endregion
|
|
13
12
|
export { flattenObj };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../utils/dist/object-utils/fromEntries.d.ts
|
|
2
|
-
|
|
3
|
-
declare function fromEntries<const T extends ReadonlyArray<readonly [PropertyKey, unknown]>>(entries: T): { [K in T[number] as K[0]]: K[1] }; //#endregion
|
|
2
|
+
declare function fromEntries<const T extends ReadonlyArray<readonly [PropertyKey, unknown]>>(entries: T): { [K in T[number] as K[0]]: K[1] };
|
|
4
3
|
//#endregion
|
|
5
4
|
export { fromEntries };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
//#region ../utils/dist/object-utils/mapKeys.d.ts
|
|
2
|
-
//#region src/object-utils/mapKeys.d.ts
|
|
3
2
|
type AnyObject = Record<string, unknown>;
|
|
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] };
|
|
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] };
|
|
5
4
|
//#endregion
|
|
6
5
|
export { mapKeys };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
//#region ../utils/dist/object-utils/mapValues.d.ts
|
|
2
|
-
//#region src/object-utils/mapValues.d.ts
|
|
3
2
|
type AnyObject = Record<string, unknown>;
|
|
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> };
|
|
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> };
|
|
5
4
|
//#endregion
|
|
6
5
|
export { mapValues };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../utils/dist/string-utils/arrayToUnion.d.ts
|
|
2
|
-
|
|
3
|
-
declare function arrayToUnion<T extends string[]>(array: T): `'${T[number]}'`; //#endregion
|
|
2
|
+
declare function arrayToUnion<T extends string[]>(array: T): `'${T[number]}'`;
|
|
4
3
|
//#endregion
|
|
5
4
|
export { arrayToUnion };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../utils/dist/string-utils/componentClassName.d.ts
|
|
2
|
-
//#region src/string-utils/componentClassName.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Build the base class name for a component slot.
|
|
5
4
|
*
|
|
@@ -21,6 +20,6 @@ declare function componentVariantClass(componentName: string, slot: string, axis
|
|
|
21
20
|
* componentCompoundClass('Switch', 'root', { size: 'lg', color: 'primary' })
|
|
22
21
|
* // "switch-root--color-primary_size-lg"
|
|
23
22
|
*/
|
|
24
|
-
declare function componentCompoundClass(componentName: string, slot: string, conditions: Record<string, string>): string;
|
|
23
|
+
declare function componentCompoundClass(componentName: string, slot: string, conditions: Record<string, string>): string;
|
|
25
24
|
//#endregion
|
|
26
25
|
export { componentCompoundClass, componentSlotClass, componentVariantClass };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../utils/dist/string-utils/createTemplate.d.ts
|
|
2
|
-
//#region src/string-utils/createTemplate.d.ts
|
|
3
2
|
type CreateTemplateParams = {
|
|
4
3
|
sort?: boolean;
|
|
5
4
|
sortMapKeys?: boolean;
|
|
@@ -12,6 +11,6 @@ type CreateTemplateParams = {
|
|
|
12
11
|
declare function createTemplate(params?: CreateTemplateParams): (strings: TemplateStringsArray, ...expr: unknown[]) => string;
|
|
13
12
|
declare const typeTemplate: (strings: TemplateStringsArray, ...expr: unknown[]) => string;
|
|
14
13
|
declare const interfaceTemplate: (strings: TemplateStringsArray, ...expr: unknown[]) => string;
|
|
15
|
-
declare const template: (strings: TemplateStringsArray, ...expr: unknown[]) => string;
|
|
14
|
+
declare const template: (strings: TemplateStringsArray, ...expr: unknown[]) => string;
|
|
16
15
|
//#endregion
|
|
17
16
|
export { createTemplate, interfaceTemplate, template, typeTemplate };
|
|
@@ -1,7 +1,6 @@
|
|
|
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
|
|
5
4
|
/**
|
|
6
5
|
* Sanitize a token name for use in CSS identifiers (variable names, class names).
|
|
7
6
|
* Replaces dots and slashes with underscores.
|
|
@@ -49,6 +48,6 @@ declare function cssVar<Property extends string, Alias extends string>(property:
|
|
|
49
48
|
* // "--color-brand: blue;\n--font-size: 16px;"
|
|
50
49
|
* ```
|
|
51
50
|
*/
|
|
52
|
-
declare function cssVarDeclarations(vars: Record<string, string | number>): string;
|
|
51
|
+
declare function cssVarDeclarations(vars: Record<string, string | number>): string;
|
|
53
52
|
//#endregion
|
|
54
53
|
export { CssVar, CssVarName, cssVar, cssVarDeclarations, cssVarName, safeTokenName };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../utils/dist/string-utils/cssVars.d.ts
|
|
2
|
-
//#region src/string-utils/cssVars.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Tagged template function for CSS variable generation.
|
|
5
4
|
* Automatically converts objects to CSS variable declarations.
|
|
@@ -77,6 +76,6 @@
|
|
|
77
76
|
* // Output: joined blocks with double newlines
|
|
78
77
|
* ```
|
|
79
78
|
*/
|
|
80
|
-
declare function cssVars(strings: TemplateStringsArray, ...expr: unknown[]): string;
|
|
79
|
+
declare function cssVars(strings: TemplateStringsArray, ...expr: unknown[]): string;
|
|
81
80
|
//#endregion
|
|
82
81
|
export { cssVars };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../utils/dist/string-utils/dedent.d.ts
|
|
2
|
-
//#region src/string-utils/dedent.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Dedent tagged template literal function.
|
|
5
4
|
* Removes common leading indentation from all lines in a template literal,
|
|
@@ -43,6 +42,6 @@ declare function dedent(strings: TemplateStringsArray, ...values: unknown[]): st
|
|
|
43
42
|
* `;
|
|
44
43
|
* ```
|
|
45
44
|
*/
|
|
46
|
-
declare function dedentTS(strings: TemplateStringsArray, ...values: unknown[]): string;
|
|
45
|
+
declare function dedentTS(strings: TemplateStringsArray, ...values: unknown[]): string;
|
|
47
46
|
//#endregion
|
|
48
47
|
export { dedent, dedentTS };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
//#region ../utils/dist/string-utils/join.d.ts
|
|
2
|
-
//#region src/string-utils/join.d.ts
|
|
3
2
|
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;
|
|
4
|
-
declare function join<T extends readonly string[]>(...parts: T): <D extends string>(delimiter: D) => Join<T, D>;
|
|
3
|
+
declare function join<T extends readonly string[]>(...parts: T): <D extends string>(delimiter: D) => Join<T, D>;
|
|
5
4
|
//#endregion
|
|
6
5
|
export { join };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../utils/dist/string-utils/kebabCase.d.ts
|
|
2
|
-
//#region src/string-utils/kebabCase.d.ts
|
|
3
2
|
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>;
|
|
4
3
|
/**
|
|
5
4
|
* Convert a string to kebab-case.
|
|
@@ -9,6 +8,6 @@ type KebabCase<S extends string> = S extends `${infer First}${infer Rest}` ? Fir
|
|
|
9
8
|
* - collapses non-alphanumerics into single hyphens
|
|
10
9
|
* - trims edge hyphens, lowercases
|
|
11
10
|
*/
|
|
12
|
-
declare function kebabCase<Input extends string>(input: Input): KebabCase<Input>;
|
|
11
|
+
declare function kebabCase<Input extends string>(input: Input): KebabCase<Input>;
|
|
13
12
|
//#endregion
|
|
14
13
|
export { KebabCase, kebabCase };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
//#region ../utils/dist/string-utils/split.d.ts
|
|
2
|
-
//#region src/string-utils/split.d.ts
|
|
3
2
|
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];
|
|
4
3
|
type BuildArray<L extends number, A extends unknown[] = []> = A['length'] extends L ? A : BuildArray<L, [...A, unknown]>;
|
|
5
4
|
type Decrement<N extends number> = BuildArray<N> extends [unknown, ...infer Rest] ? Rest['length'] : never;
|
|
6
5
|
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];
|
|
7
6
|
declare function split<T extends string, Delimiter extends string, Depth extends number = number>(str: T, delimiter: Delimiter, options?: {
|
|
8
7
|
depth?: Depth;
|
|
9
|
-
}): Split<T, Delimiter> | SplitDepth<T, Delimiter, Depth>;
|
|
8
|
+
}): Split<T, Delimiter> | SplitDepth<T, Delimiter, Depth>;
|
|
10
9
|
//#endregion
|
|
11
10
|
export { split };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../utils/dist/string-utils/tsProperties.d.ts
|
|
2
|
-
//#region src/string-utils/tsProperties.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Template literal utility for formatting TypeScript interface properties
|
|
5
4
|
*
|
|
@@ -25,6 +24,6 @@ declare function tsProperties<T extends Record<string, unknown>>(strings: Templa
|
|
|
25
24
|
* // Returns: " export type ColorMode = 'light' | 'dark';\n export type Responsive = 'sm' | 'md';"
|
|
26
25
|
* ```
|
|
27
26
|
*/
|
|
28
|
-
declare function tsTypes<T extends Record<string, string>>(strings: TemplateStringsArray, ...expr: [T]): string;
|
|
27
|
+
declare function tsTypes<T extends Record<string, string>>(strings: TemplateStringsArray, ...expr: [T]): string;
|
|
29
28
|
//#endregion
|
|
30
29
|
export { tsProperties, tsTypes };
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentStyleDefaultsInput, applyComponentStyleDefaults } from "./utils/dist/component-style-defaults.js";
|
|
2
1
|
import { closestItem } from "./utils/dist/array-utils/closestItem.js";
|
|
3
2
|
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.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Universal Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -91,12 +91,6 @@
|
|
|
91
91
|
"default": "./dist/remotion.js"
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
|
-
"./devtools": {
|
|
95
|
-
"import": {
|
|
96
|
-
"types": "./dist/devtools.d.ts",
|
|
97
|
-
"default": "./dist/devtools.js"
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
94
|
"./package.json": "./package.json",
|
|
101
95
|
"./*.config": {
|
|
102
96
|
"import": {
|
|
@@ -127,7 +121,6 @@
|
|
|
127
121
|
"@babel/types": "^7.29.0",
|
|
128
122
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
129
123
|
"@uds/cli": "0.0.1",
|
|
130
|
-
"@uds/devtools": "0.0.1",
|
|
131
124
|
"@uds/types": "0.1.0",
|
|
132
125
|
"clsx": "^2.1.1",
|
|
133
126
|
"react-day-picker": "^9.14.0",
|
|
@@ -179,7 +172,6 @@
|
|
|
179
172
|
},
|
|
180
173
|
"bundledDependencies": [
|
|
181
174
|
"@uds/cli",
|
|
182
|
-
"@uds/types"
|
|
183
|
-
"@uds/devtools"
|
|
175
|
+
"@uds/types"
|
|
184
176
|
]
|
|
185
177
|
}
|
package/dist/devtools.d.ts
DELETED
package/dist/devtools.js
DELETED