@yahoo/uds 3.150.0 → 3.150.1-beta.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.
@@ -29,7 +29,7 @@ declare function usePopoverConfig(sizeProp?: PopoverSize | undefined, variantPro
29
29
  gap: SpacingAlias;
30
30
  dismissButtonSpacing: SpacingAlias;
31
31
  dismissIconSize: number;
32
- ariaKitPlacement: ("top-start" | "top-end" | "bottom-start" | "bottom-end" | ("bottom" | "left" | "right" | "top") | "left-start" | "right-start" | "left-end" | "right-end") | undefined;
32
+ ariaKitPlacement: ("bottom-start" | "bottom-end" | "top-start" | "top-end" | ("bottom" | "left" | "right" | "top") | "left-start" | "right-start" | "left-end" | "right-end") | undefined;
33
33
  animationDuration: number;
34
34
  };
35
35
  //#endregion
@@ -30,7 +30,7 @@ declare function usePopoverConfig(sizeProp?: PopoverSize | undefined, variantPro
30
30
  gap: SpacingAlias;
31
31
  dismissButtonSpacing: SpacingAlias;
32
32
  dismissIconSize: number;
33
- ariaKitPlacement: ("top-start" | "top-end" | "bottom-start" | "bottom-end" | ("bottom" | "left" | "right" | "top") | "left-start" | "right-start" | "left-end" | "right-end") | undefined;
33
+ ariaKitPlacement: ("bottom-start" | "bottom-end" | "top-start" | "top-end" | ("bottom" | "left" | "right" | "top") | "left-start" | "right-start" | "left-end" | "right-end") | undefined;
34
34
  animationDuration: number;
35
35
  };
36
36
  //#endregion
@@ -62,11 +62,13 @@ const isUdsComponentModule = (moduleSpecifier) => {
62
62
  return cleaned === "@yahoo/uds" || cleaned.startsWith("@yahoo/uds/");
63
63
  };
64
64
  /**
65
- * Normalize component name to match autoVariants keys (lower camel, no punctuation).
65
+ * Normalize component name to match autoVariants keys (fully lowercase, no
66
+ * punctuation). autoVariants keys lowercase the entire component label (e.g.
67
+ * `menucontentSizeRoot`), so full lowercasing keeps the normalized prefix
68
+ * aligned with those keys and makes namespace/flat aliases resolve consistently.
66
69
  */
67
70
  const normalizeComponentName = (name) => {
68
- const cleaned = name.replace(/\W/g, "");
69
- return cleaned.charAt(0).toLowerCase() + cleaned.slice(1);
71
+ return name.replace(/\W/g, "").toLowerCase();
70
72
  };
71
73
  /**
72
74
  * Fallback: infer prop -> variant key mapping from autoVariants when the
@@ -61,11 +61,13 @@ const isUdsComponentModule = (moduleSpecifier) => {
61
61
  return cleaned === "@yahoo/uds" || cleaned.startsWith("@yahoo/uds/");
62
62
  };
63
63
  /**
64
- * Normalize component name to match autoVariants keys (lower camel, no punctuation).
64
+ * Normalize component name to match autoVariants keys (fully lowercase, no
65
+ * punctuation). autoVariants keys lowercase the entire component label (e.g.
66
+ * `menucontentSizeRoot`), so full lowercasing keeps the normalized prefix
67
+ * aligned with those keys and makes namespace/flat aliases resolve consistently.
65
68
  */
66
69
  const normalizeComponentName = (name) => {
67
- const cleaned = name.replace(/\W/g, "");
68
- return cleaned.charAt(0).toLowerCase() + cleaned.slice(1);
70
+ return name.replace(/\W/g, "").toLowerCase();
69
71
  };
70
72
  /**
71
73
  * Fallback: infer prop -> variant key mapping from autoVariants when the