@yahoo/uds 3.100.0-beta.2 → 3.100.0-beta.4

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.
Files changed (57) hide show
  1. package/dist/automated-config/dist/generated/autoVariants.cjs +1 -0
  2. package/dist/automated-config/dist/generated/autoVariants.d.cts +1 -0
  3. package/dist/automated-config/dist/generated/autoVariants.d.ts +1 -0
  4. package/dist/automated-config/dist/generated/autoVariants.js +1 -0
  5. package/dist/automated-config/dist/generated/generatedConfigs.cjs +58 -3
  6. package/dist/automated-config/dist/generated/generatedConfigs.d.cts +16 -2
  7. package/dist/automated-config/dist/generated/generatedConfigs.d.ts +16 -2
  8. package/dist/automated-config/dist/generated/generatedConfigs.js +58 -3
  9. package/dist/automated-config/dist/generated/universalTokensConfigAuto.cjs +5 -0
  10. package/dist/automated-config/dist/generated/universalTokensConfigAuto.js +5 -0
  11. package/dist/automated-config/dist/properties.cjs +6 -1
  12. package/dist/automated-config/dist/properties.d.cts +2 -2
  13. package/dist/automated-config/dist/properties.d.ts +2 -2
  14. package/dist/automated-config/dist/properties.js +6 -1
  15. package/dist/automated-config/dist/utils/index.cjs +4 -4
  16. package/dist/automated-config/dist/utils/index.d.cts +1 -1
  17. package/dist/automated-config/dist/utils/index.d.ts +1 -1
  18. package/dist/automated-config/dist/utils/index.js +4 -4
  19. package/dist/components/client/Toast/Toast.cjs +1 -1
  20. package/dist/components/client/Toast/Toast.d.cts +1 -1
  21. package/dist/components/client/Toast/Toast.d.ts +1 -1
  22. package/dist/components/client/Toast/Toast.js +1 -1
  23. package/dist/components/client/Tooltip/Tooltip.cjs +29 -1
  24. package/dist/components/client/Tooltip/Tooltip.d.cts +30 -1
  25. package/dist/components/client/Tooltip/Tooltip.d.ts +30 -1
  26. package/dist/components/client/Tooltip/Tooltip.js +29 -1
  27. package/dist/components/client/Tooltip/TooltipContent.cjs +49 -35
  28. package/dist/components/client/Tooltip/TooltipContent.js +49 -35
  29. package/dist/components/client/Tooltip/TooltipTrigger.d.cts +2 -1
  30. package/dist/components/client/Tooltip/TooltipTrigger.d.ts +2 -1
  31. package/dist/components/client/Tooltip/UDSTooltipConfigProvider.cjs +3 -4
  32. package/dist/components/client/Tooltip/UDSTooltipConfigProvider.d.cts +3 -4
  33. package/dist/components/client/Tooltip/UDSTooltipConfigProvider.d.ts +3 -4
  34. package/dist/components/client/Tooltip/UDSTooltipConfigProvider.js +3 -4
  35. package/dist/components/client/Tooltip/useTooltipContent.cjs +3 -16
  36. package/dist/components/client/Tooltip/useTooltipContent.d.cts +4 -3
  37. package/dist/components/client/Tooltip/useTooltipContent.d.ts +4 -3
  38. package/dist/components/client/Tooltip/useTooltipContent.js +3 -16
  39. package/dist/config/dist/index.cjs +5 -0
  40. package/dist/config/dist/index.d.cts +9 -0
  41. package/dist/config/dist/index.d.ts +9 -0
  42. package/dist/config/dist/index.js +5 -0
  43. package/dist/runtime/tooltipConfig.cjs +3 -20
  44. package/dist/runtime/tooltipConfig.d.cts +3 -4
  45. package/dist/runtime/tooltipConfig.d.ts +3 -4
  46. package/dist/runtime/tooltipConfig.js +3 -20
  47. package/dist/styles/styler.d.cts +44 -43
  48. package/dist/styles/styler.d.ts +44 -43
  49. package/dist/styles/variants.d.cts +3 -0
  50. package/dist/styles/variants.d.ts +3 -0
  51. package/dist/tailwind/utils/getTailwindAsUdsColors.d.cts +1 -1
  52. package/dist/tailwind/utils/getTailwindAsUdsColors.d.ts +1 -1
  53. package/dist/types/dist/index.d.cts +12 -0
  54. package/dist/types/dist/index.d.ts +12 -0
  55. package/dist/uds/generated/tailwindPurge.cjs +4 -3
  56. package/dist/uds/generated/tailwindPurge.js +4 -3
  57. package/package.json +1 -1
@@ -545,6 +545,7 @@ const autoVariants = {
545
545
  warning: "uds-toast-variant-warning-root"
546
546
  },
547
547
  tooltipSizeBody: { default: "uds-tooltip-size-default-body" },
548
+ tooltipSizeEndContent: { default: "uds-tooltip-size-default-endcontent" },
548
549
  tooltipSizeIcon: { default: "uds-tooltip-size-default-icon" },
549
550
  tooltipSizeRoot: { default: "uds-tooltip-size-default-root" },
550
551
  tooltipSizeSvg: { default: "uds-tooltip-size-default-svg" },
@@ -122,6 +122,7 @@ interface StylePropsVariantsAuto<T> {
122
122
  toastVariantIcon: Record<'error' | 'info' | 'loading' | 'success' | 'warning', T>;
123
123
  toastVariantRoot: Record<'error' | 'info' | 'loading' | 'success' | 'warning', T>;
124
124
  tooltipSizeBody: Record<'default', T>;
125
+ tooltipSizeEndContent: Record<'default', T>;
125
126
  tooltipSizeIcon: Record<'default', T>;
126
127
  tooltipSizeRoot: Record<'default', T>;
127
128
  tooltipSizeSvg: Record<'default', T>;
@@ -122,6 +122,7 @@ interface StylePropsVariantsAuto<T> {
122
122
  toastVariantIcon: Record<'error' | 'info' | 'loading' | 'success' | 'warning', T>;
123
123
  toastVariantRoot: Record<'error' | 'info' | 'loading' | 'success' | 'warning', T>;
124
124
  tooltipSizeBody: Record<'default', T>;
125
+ tooltipSizeEndContent: Record<'default', T>;
125
126
  tooltipSizeIcon: Record<'default', T>;
126
127
  tooltipSizeRoot: Record<'default', T>;
127
128
  tooltipSizeSvg: Record<'default', T>;
@@ -544,6 +544,7 @@ const autoVariants = {
544
544
  warning: "uds-toast-variant-warning-root"
545
545
  },
546
546
  tooltipSizeBody: { default: "uds-tooltip-size-default-body" },
547
+ tooltipSizeEndContent: { default: "uds-tooltip-size-default-endcontent" },
547
548
  tooltipSizeIcon: { default: "uds-tooltip-size-default-icon" },
548
549
  tooltipSizeRoot: { default: "uds-tooltip-size-default-root" },
549
550
  tooltipSizeSvg: { default: "uds-tooltip-size-default-svg" },
@@ -30423,6 +30423,61 @@ const TooltipConfig = {
30423
30423
  ]]
30424
30424
  } }
30425
30425
  },
30426
+ endContent: {
30427
+ label: "endContent",
30428
+ properties: { textVariant: {
30429
+ defaults: { default: "caption1" },
30430
+ label: "shortcut text variant",
30431
+ name: "textVariant",
30432
+ typeOfFixture: ["textVariants"],
30433
+ values: [[
30434
+ "display1",
30435
+ "display2",
30436
+ "display3",
30437
+ "title1",
30438
+ "title2",
30439
+ "title3",
30440
+ "title4",
30441
+ "headline1",
30442
+ "body1",
30443
+ "label1",
30444
+ "label2",
30445
+ "label3",
30446
+ "label4",
30447
+ "caption1",
30448
+ "caption2",
30449
+ "legal1",
30450
+ "ui1",
30451
+ "ui2",
30452
+ "ui3",
30453
+ "ui4",
30454
+ "ui5",
30455
+ "ui6",
30456
+ "display1/emphasized",
30457
+ "display2/emphasized",
30458
+ "display3/emphasized",
30459
+ "title1/emphasized",
30460
+ "title2/emphasized",
30461
+ "title3/emphasized",
30462
+ "title4/emphasized",
30463
+ "headline1/emphasized",
30464
+ "body1/emphasized",
30465
+ "label1/emphasized",
30466
+ "label2/emphasized",
30467
+ "label3/emphasized",
30468
+ "label4/emphasized",
30469
+ "caption1/emphasized",
30470
+ "caption2/emphasized",
30471
+ "legal1/emphasized",
30472
+ "ui1/emphasized",
30473
+ "ui2/emphasized",
30474
+ "ui3/emphasized",
30475
+ "ui4/emphasized",
30476
+ "ui5/emphasized",
30477
+ "ui6/emphasized"
30478
+ ]]
30479
+ } }
30480
+ },
30426
30481
  icon: {
30427
30482
  label: "icon",
30428
30483
  properties: { size: {
@@ -30443,7 +30498,7 @@ const TooltipConfig = {
30443
30498
  properties: {
30444
30499
  gap: {
30445
30500
  defaults: { default: "1" },
30446
- label: "spacing vertical gap",
30501
+ label: "title/content row gap",
30447
30502
  name: "gap",
30448
30503
  typeOfFixture: ["spacingAliases"],
30449
30504
  values: [[
@@ -30702,8 +30757,8 @@ const TooltipConfig = {
30702
30757
  defaults: { default: 0 },
30703
30758
  label: "background blur radius",
30704
30759
  layerReference: {
30705
- layerName: "svg",
30706
- propertyName: "backgroundColor"
30760
+ propertyName: "backgroundColor",
30761
+ variablePath: "variant/default/svg"
30707
30762
  },
30708
30763
  name: "backdropBlur",
30709
30764
  typeOfFixture: ["positiveIntegers"],
@@ -3275,6 +3275,20 @@ declare const TooltipConfig: {
3275
3275
  };
3276
3276
  };
3277
3277
  };
3278
+ readonly endContent: {
3279
+ readonly label: "endContent";
3280
+ readonly properties: {
3281
+ readonly textVariant: {
3282
+ readonly defaults: {
3283
+ readonly default: "caption1";
3284
+ };
3285
+ readonly label: "shortcut text variant";
3286
+ readonly name: "textVariant";
3287
+ readonly typeOfFixture: readonly ["textVariants"];
3288
+ readonly values: readonly [readonly ["display1", "display2", "display3", "title1", "title2", "title3", "title4", "headline1", "body1", "label1", "label2", "label3", "label4", "caption1", "caption2", "legal1", "ui1", "ui2", "ui3", "ui4", "ui5", "ui6", "display1/emphasized", "display2/emphasized", "display3/emphasized", "title1/emphasized", "title2/emphasized", "title3/emphasized", "title4/emphasized", "headline1/emphasized", "body1/emphasized", "label1/emphasized", "label2/emphasized", "label3/emphasized", "label4/emphasized", "caption1/emphasized", "caption2/emphasized", "legal1/emphasized", "ui1/emphasized", "ui2/emphasized", "ui3/emphasized", "ui4/emphasized", "ui5/emphasized", "ui6/emphasized"]];
3289
+ };
3290
+ };
3291
+ };
3278
3292
  readonly icon: {
3279
3293
  readonly label: "icon";
3280
3294
  readonly properties: {
@@ -3296,7 +3310,7 @@ declare const TooltipConfig: {
3296
3310
  readonly defaults: {
3297
3311
  readonly default: "1";
3298
3312
  };
3299
- readonly label: "spacing vertical gap";
3313
+ readonly label: "title/content row gap";
3300
3314
  readonly name: "gap";
3301
3315
  readonly typeOfFixture: readonly ["spacingAliases"];
3302
3316
  readonly values: readonly [readonly ["0", "px", "0.5", "1", "1.5", "2", "2.5", "3", "3.5", "4", "4.5", "5", "5.5", "6", "7", "8", "9", "10", "11", "12", "14", "16", "20", "24", "28", "32", "36", "40", "44", "48", "52", "56", "60", "64", "72", "80", "96"]];
@@ -3385,8 +3399,8 @@ declare const TooltipConfig: {
3385
3399
  };
3386
3400
  readonly label: "background blur radius";
3387
3401
  readonly layerReference: {
3388
- readonly layerName: "svg";
3389
3402
  readonly propertyName: "backgroundColor";
3403
+ readonly variablePath: "variant/default/svg";
3390
3404
  };
3391
3405
  readonly name: "backdropBlur";
3392
3406
  readonly typeOfFixture: readonly ["positiveIntegers"];
@@ -3275,6 +3275,20 @@ declare const TooltipConfig: {
3275
3275
  };
3276
3276
  };
3277
3277
  };
3278
+ readonly endContent: {
3279
+ readonly label: "endContent";
3280
+ readonly properties: {
3281
+ readonly textVariant: {
3282
+ readonly defaults: {
3283
+ readonly default: "caption1";
3284
+ };
3285
+ readonly label: "shortcut text variant";
3286
+ readonly name: "textVariant";
3287
+ readonly typeOfFixture: readonly ["textVariants"];
3288
+ readonly values: readonly [readonly ["display1", "display2", "display3", "title1", "title2", "title3", "title4", "headline1", "body1", "label1", "label2", "label3", "label4", "caption1", "caption2", "legal1", "ui1", "ui2", "ui3", "ui4", "ui5", "ui6", "display1/emphasized", "display2/emphasized", "display3/emphasized", "title1/emphasized", "title2/emphasized", "title3/emphasized", "title4/emphasized", "headline1/emphasized", "body1/emphasized", "label1/emphasized", "label2/emphasized", "label3/emphasized", "label4/emphasized", "caption1/emphasized", "caption2/emphasized", "legal1/emphasized", "ui1/emphasized", "ui2/emphasized", "ui3/emphasized", "ui4/emphasized", "ui5/emphasized", "ui6/emphasized"]];
3289
+ };
3290
+ };
3291
+ };
3278
3292
  readonly icon: {
3279
3293
  readonly label: "icon";
3280
3294
  readonly properties: {
@@ -3296,7 +3310,7 @@ declare const TooltipConfig: {
3296
3310
  readonly defaults: {
3297
3311
  readonly default: "1";
3298
3312
  };
3299
- readonly label: "spacing vertical gap";
3313
+ readonly label: "title/content row gap";
3300
3314
  readonly name: "gap";
3301
3315
  readonly typeOfFixture: readonly ["spacingAliases"];
3302
3316
  readonly values: readonly [readonly ["0", "px", "0.5", "1", "1.5", "2", "2.5", "3", "3.5", "4", "4.5", "5", "5.5", "6", "7", "8", "9", "10", "11", "12", "14", "16", "20", "24", "28", "32", "36", "40", "44", "48", "52", "56", "60", "64", "72", "80", "96"]];
@@ -3385,8 +3399,8 @@ declare const TooltipConfig: {
3385
3399
  };
3386
3400
  readonly label: "background blur radius";
3387
3401
  readonly layerReference: {
3388
- readonly layerName: "svg";
3389
3402
  readonly propertyName: "backgroundColor";
3403
+ readonly variablePath: "variant/default/svg";
3390
3404
  };
3391
3405
  readonly name: "backdropBlur";
3392
3406
  readonly typeOfFixture: readonly ["positiveIntegers"];
@@ -30422,6 +30422,61 @@ const TooltipConfig = {
30422
30422
  ]]
30423
30423
  } }
30424
30424
  },
30425
+ endContent: {
30426
+ label: "endContent",
30427
+ properties: { textVariant: {
30428
+ defaults: { default: "caption1" },
30429
+ label: "shortcut text variant",
30430
+ name: "textVariant",
30431
+ typeOfFixture: ["textVariants"],
30432
+ values: [[
30433
+ "display1",
30434
+ "display2",
30435
+ "display3",
30436
+ "title1",
30437
+ "title2",
30438
+ "title3",
30439
+ "title4",
30440
+ "headline1",
30441
+ "body1",
30442
+ "label1",
30443
+ "label2",
30444
+ "label3",
30445
+ "label4",
30446
+ "caption1",
30447
+ "caption2",
30448
+ "legal1",
30449
+ "ui1",
30450
+ "ui2",
30451
+ "ui3",
30452
+ "ui4",
30453
+ "ui5",
30454
+ "ui6",
30455
+ "display1/emphasized",
30456
+ "display2/emphasized",
30457
+ "display3/emphasized",
30458
+ "title1/emphasized",
30459
+ "title2/emphasized",
30460
+ "title3/emphasized",
30461
+ "title4/emphasized",
30462
+ "headline1/emphasized",
30463
+ "body1/emphasized",
30464
+ "label1/emphasized",
30465
+ "label2/emphasized",
30466
+ "label3/emphasized",
30467
+ "label4/emphasized",
30468
+ "caption1/emphasized",
30469
+ "caption2/emphasized",
30470
+ "legal1/emphasized",
30471
+ "ui1/emphasized",
30472
+ "ui2/emphasized",
30473
+ "ui3/emphasized",
30474
+ "ui4/emphasized",
30475
+ "ui5/emphasized",
30476
+ "ui6/emphasized"
30477
+ ]]
30478
+ } }
30479
+ },
30425
30480
  icon: {
30426
30481
  label: "icon",
30427
30482
  properties: { size: {
@@ -30442,7 +30497,7 @@ const TooltipConfig = {
30442
30497
  properties: {
30443
30498
  gap: {
30444
30499
  defaults: { default: "1" },
30445
- label: "spacing vertical gap",
30500
+ label: "title/content row gap",
30446
30501
  name: "gap",
30447
30502
  typeOfFixture: ["spacingAliases"],
30448
30503
  values: [[
@@ -30701,8 +30756,8 @@ const TooltipConfig = {
30701
30756
  defaults: { default: 0 },
30702
30757
  label: "background blur radius",
30703
30758
  layerReference: {
30704
- layerName: "svg",
30705
- propertyName: "backgroundColor"
30759
+ propertyName: "backgroundColor",
30760
+ variablePath: "variant/default/svg"
30706
30761
  },
30707
30762
  name: "backdropBlur",
30708
30763
  typeOfFixture: ["positiveIntegers"],
@@ -11933,6 +11933,11 @@ const defaultUniversalTokensConfigAuto = {
11933
11933
  value: "ui3/emphasized",
11934
11934
  valueType: "alias"
11935
11935
  } } },
11936
+ "size/default/endContent": { textVariant: { rest: {
11937
+ type: "textVariants",
11938
+ value: "caption1",
11939
+ valueType: "alias"
11940
+ } } },
11936
11941
  "size/default/icon": { size: { rest: {
11937
11942
  type: "iconSizes",
11938
11943
  value: "xs",
@@ -11932,6 +11932,11 @@ const defaultUniversalTokensConfigAuto = {
11932
11932
  value: "ui3/emphasized",
11933
11933
  valueType: "alias"
11934
11934
  } } },
11935
+ "size/default/endContent": { textVariant: { rest: {
11936
+ type: "textVariants",
11937
+ value: "caption1",
11938
+ valueType: "alias"
11939
+ } } },
11935
11940
  "size/default/icon": { size: { rest: {
11936
11941
  type: "iconSizes",
11937
11942
  value: "xs",
@@ -402,7 +402,12 @@ const publicProperties = {
402
402
  twThemePath: () => {
403
403
  return ``;
404
404
  },
405
- customValueRenderer: (schemaValue) => {
405
+ customValueRenderer: (schemaValue, schema, _theme, originalPropertyDefinition) => {
406
+ if (originalPropertyDefinition && originalPropertyDefinition.layerReference) {
407
+ const { variablePath, propertyName } = originalPropertyDefinition.layerReference;
408
+ const property = schema.variables[variablePath][propertyName].rest;
409
+ if (property.type === "elevationAliases") return `var(--uds-background-blur-radius-${property.value})`;
410
+ }
406
411
  return `blur(${schemaValue.value}px)`;
407
412
  }
408
413
  },
@@ -18,7 +18,7 @@ interface ConfigurableProperty<T extends AllPossibleProperties, CVR = unknown> {
18
18
  twThemePath: (fixtureType: T, value: string) => string;
19
19
  possibleFixtures: readonly T[];
20
20
  extendedProperties?: ExtendablePropertiesName[] | ((context: ComponentConfigContext) => ExtendablePropertiesName[] | undefined | false);
21
- customValueRenderer?: (schemaStateValue: SchemaStateValue<CVR>, schema: unknown, themeGetter: (path: string) => string) => string;
21
+ customValueRenderer?: (schemaStateValue: SchemaStateValue<CVR>, schema: unknown, themeGetter: (path: string) => string, originalPropertyDefinition?: SelectedConfigurableProperty<ConfigurablePropertiesName, any>) => string;
22
22
  concatenate?: boolean;
23
23
  concatenationDelimiter?: string;
24
24
  }
@@ -113,7 +113,7 @@ interface SelectedConfigurableProperty<C extends ConfigurablePropertiesName, O e
113
113
  pseudoStates?: PossibleStates[];
114
114
  supportsCustom?: boolean;
115
115
  layerReference?: {
116
- layerName: string;
116
+ variablePath: string;
117
117
  propertyName: string;
118
118
  };
119
119
  defaults: { [K in O]: V[number][number] | (Extract<T[number], ArbitraryFixtures> extends never ? never : InferArbitraryType<Extract<T[number], ArbitraryFixtures>>) };
@@ -18,7 +18,7 @@ interface ConfigurableProperty<T extends AllPossibleProperties, CVR = unknown> {
18
18
  twThemePath: (fixtureType: T, value: string) => string;
19
19
  possibleFixtures: readonly T[];
20
20
  extendedProperties?: ExtendablePropertiesName[] | ((context: ComponentConfigContext) => ExtendablePropertiesName[] | undefined | false);
21
- customValueRenderer?: (schemaStateValue: SchemaStateValue<CVR>, schema: unknown, themeGetter: (path: string) => string) => string;
21
+ customValueRenderer?: (schemaStateValue: SchemaStateValue<CVR>, schema: unknown, themeGetter: (path: string) => string, originalPropertyDefinition?: SelectedConfigurableProperty<ConfigurablePropertiesName, any>) => string;
22
22
  concatenate?: boolean;
23
23
  concatenationDelimiter?: string;
24
24
  }
@@ -113,7 +113,7 @@ interface SelectedConfigurableProperty<C extends ConfigurablePropertiesName, O e
113
113
  pseudoStates?: PossibleStates[];
114
114
  supportsCustom?: boolean;
115
115
  layerReference?: {
116
- layerName: string;
116
+ variablePath: string;
117
117
  propertyName: string;
118
118
  };
119
119
  defaults: { [K in O]: V[number][number] | (Extract<T[number], ArbitraryFixtures> extends never ? never : InferArbitraryType<Extract<T[number], ArbitraryFixtures>>) };
@@ -402,7 +402,12 @@ const publicProperties = {
402
402
  twThemePath: () => {
403
403
  return ``;
404
404
  },
405
- customValueRenderer: (schemaValue) => {
405
+ customValueRenderer: (schemaValue, schema, _theme, originalPropertyDefinition) => {
406
+ if (originalPropertyDefinition && originalPropertyDefinition.layerReference) {
407
+ const { variablePath, propertyName } = originalPropertyDefinition.layerReference;
408
+ const property = schema.variables[variablePath][propertyName].rest;
409
+ if (property.type === "elevationAliases") return `var(--uds-background-blur-radius-${property.value})`;
410
+ }
406
411
  return `blur(${schemaValue.value}px)`;
407
412
  }
408
413
  },
@@ -115,11 +115,11 @@ function generateClassName({ componentName, subComponentName, variantKey, varian
115
115
  if (layerOptionalPseudoSelector) className = `${className}${layerOptionalPseudoSelector}`;
116
116
  return className.replaceAll(/\s+/g, "-");
117
117
  }
118
- const getTheCssPropertyValue = (schema, theme, propertyName, schemaStateValue, existingValue) => {
118
+ const getTheCssPropertyValue = (schema, theme, propertyName, schemaStateValue, existingValue, originalPropertyDefinition) => {
119
119
  const { value, type } = schemaStateValue;
120
120
  const propertyConfig = require_properties.configurableProperties[propertyName];
121
121
  let newValue;
122
- if (propertyConfig.customValueRenderer) newValue = propertyConfig.customValueRenderer(schemaStateValue, schema, theme);
122
+ if (propertyConfig.customValueRenderer) newValue = propertyConfig.customValueRenderer(schemaStateValue, schema, theme, originalPropertyDefinition);
123
123
  else {
124
124
  const safeTwThemePath = propertyConfig.twThemePath;
125
125
  newValue = theme(safeTwThemePath(type, String(value)));
@@ -222,10 +222,10 @@ function generateDeclaration({ componentName, subComponentName, variantKey, vari
222
222
  }
223
223
  } else if (typeof cssProperties === "string") {
224
224
  const existingValue = currentStyles?.[fullClassName]?.[cssProperties];
225
- cssDeclarations[cssProperties] = getTheCssPropertyValue(schema, theme, originalPropertyDefinition.name, schemaValueForState, existingValue);
225
+ cssDeclarations[cssProperties] = getTheCssPropertyValue(schema, theme, originalPropertyDefinition.name, schemaValueForState, existingValue, originalPropertyDefinition);
226
226
  } else if (Array.isArray(cssProperties)) for (const cssProp of cssProperties) {
227
227
  const existingValue = currentStyles?.[fullClassName]?.[cssProp];
228
- cssDeclarations[cssProp] = getTheCssPropertyValue(schema, theme, originalPropertyDefinition.name, schemaValueForState, existingValue);
228
+ cssDeclarations[cssProp] = getTheCssPropertyValue(schema, theme, originalPropertyDefinition.name, schemaValueForState, existingValue, originalPropertyDefinition);
229
229
  }
230
230
  /**
231
231
  * Button root layer workarounds & enhancements.
@@ -94,7 +94,7 @@ declare function createConfigurableProperty<C extends ConfigurablePropertiesName
94
94
  pseudoStates?: PossibleStates[];
95
95
  supportsCustom?: boolean;
96
96
  layerReference?: {
97
- layerName: string;
97
+ variablePath: string;
98
98
  propertyName: string;
99
99
  };
100
100
  }): SelectedConfigurableProperty<C, O, T, V>;
@@ -94,7 +94,7 @@ declare function createConfigurableProperty<C extends ConfigurablePropertiesName
94
94
  pseudoStates?: PossibleStates[];
95
95
  supportsCustom?: boolean;
96
96
  layerReference?: {
97
- layerName: string;
97
+ variablePath: string;
98
98
  propertyName: string;
99
99
  };
100
100
  }): SelectedConfigurableProperty<C, O, T, V>;
@@ -111,11 +111,11 @@ function generateClassName({ componentName, subComponentName, variantKey, varian
111
111
  if (layerOptionalPseudoSelector) className = `${className}${layerOptionalPseudoSelector}`;
112
112
  return className.replaceAll(/\s+/g, "-");
113
113
  }
114
- const getTheCssPropertyValue = (schema, theme, propertyName, schemaStateValue, existingValue) => {
114
+ const getTheCssPropertyValue = (schema, theme, propertyName, schemaStateValue, existingValue, originalPropertyDefinition) => {
115
115
  const { value, type } = schemaStateValue;
116
116
  const propertyConfig = configurableProperties[propertyName];
117
117
  let newValue;
118
- if (propertyConfig.customValueRenderer) newValue = propertyConfig.customValueRenderer(schemaStateValue, schema, theme);
118
+ if (propertyConfig.customValueRenderer) newValue = propertyConfig.customValueRenderer(schemaStateValue, schema, theme, originalPropertyDefinition);
119
119
  else {
120
120
  const safeTwThemePath = propertyConfig.twThemePath;
121
121
  newValue = theme(safeTwThemePath(type, String(value)));
@@ -218,10 +218,10 @@ function generateDeclaration({ componentName, subComponentName, variantKey, vari
218
218
  }
219
219
  } else if (typeof cssProperties === "string") {
220
220
  const existingValue = currentStyles?.[fullClassName]?.[cssProperties];
221
- cssDeclarations[cssProperties] = getTheCssPropertyValue(schema, theme, originalPropertyDefinition.name, schemaValueForState, existingValue);
221
+ cssDeclarations[cssProperties] = getTheCssPropertyValue(schema, theme, originalPropertyDefinition.name, schemaValueForState, existingValue, originalPropertyDefinition);
222
222
  } else if (Array.isArray(cssProperties)) for (const cssProp of cssProperties) {
223
223
  const existingValue = currentStyles?.[fullClassName]?.[cssProp];
224
- cssDeclarations[cssProp] = getTheCssPropertyValue(schema, theme, originalPropertyDefinition.name, schemaValueForState, existingValue);
224
+ cssDeclarations[cssProp] = getTheCssPropertyValue(schema, theme, originalPropertyDefinition.name, schemaValueForState, existingValue, originalPropertyDefinition);
225
225
  }
226
226
  /**
227
227
  * Button root layer workarounds & enhancements.
@@ -42,7 +42,7 @@ const iconMap = {
42
42
  * <Toast variant="info" message="This is a toast" />
43
43
  *```
44
44
  *
45
- * @related Tooltip (coming soon) and Popover (coming soon).
45
+ * @related [Tooltip](https://uds.build/docs/components/tooltip), Popover (coming soon)
46
46
  **/
47
47
  const Toast = ({ message, onClickCloseButton, size: sizeProp, variant: variantProp, actionButton, onClickActionButton, startIcon, closeIcon = _yahoo_uds_icons.Cross, closeToast, slotProps, className, id, reduceMotion: forceReduceMotion }) => {
48
48
  const { iconVariant, iconSize, buttonVariant, buttonSize, size, variant, textVariant, textColor } = require_components_client_Toast_UDSToastConfigProvider.useToastConfig(sizeProp, variantProp);
@@ -44,7 +44,7 @@ interface ToastProps extends UniversalToastProps, Partial<ReactToastifyContext>
44
44
  * <Toast variant="info" message="This is a toast" />
45
45
  *```
46
46
  *
47
- * @related Tooltip (coming soon) and Popover (coming soon).
47
+ * @related [Tooltip](https://uds.build/docs/components/tooltip), Popover (coming soon)
48
48
  **/
49
49
  declare const Toast: {
50
50
  ({
@@ -44,7 +44,7 @@ interface ToastProps extends UniversalToastProps, Partial<ReactToastifyContext>
44
44
  * <Toast variant="info" message="This is a toast" />
45
45
  *```
46
46
  *
47
- * @related Tooltip (coming soon) and Popover (coming soon).
47
+ * @related [Tooltip](https://uds.build/docs/components/tooltip), Popover (coming soon)
48
48
  **/
49
49
  declare const Toast: {
50
50
  ({
@@ -40,7 +40,7 @@ const iconMap = {
40
40
  * <Toast variant="info" message="This is a toast" />
41
41
  *```
42
42
  *
43
- * @related Tooltip (coming soon) and Popover (coming soon).
43
+ * @related [Tooltip](https://uds.build/docs/components/tooltip), Popover (coming soon)
44
44
  **/
45
45
  const Toast = ({ message, onClickCloseButton, size: sizeProp, variant: variantProp, actionButton, onClickActionButton, startIcon, closeIcon = Cross, closeToast, slotProps, className, id, reduceMotion: forceReduceMotion }) => {
46
46
  const { iconVariant, iconSize, buttonVariant, buttonSize, size, variant, textVariant, textColor } = useToastConfig(sizeProp, variantProp);
@@ -8,7 +8,35 @@ let react_jsx_runtime = require("react/jsx-runtime");
8
8
  let _ariakit_react = require("@ariakit/react");
9
9
 
10
10
  //#region src/components/client/Tooltip/Tooltip.tsx
11
- function Tooltip({ children, placement = "top", open, portal = true }) {
11
+ /**
12
+ * **⚙️️ A Tooltip component that anchors to a trigger element
13
+ *
14
+ * @componentType Client component
15
+ *
16
+ * @description
17
+ * Tooltips provide short, contextual help for UI elements. They appear on hover, focus, or long-press, and should clarify meaning—not introduce new concepts.
18
+ *
19
+ * Tooltips are not meant for critical information or required actions. If the user must take action, use a Dialog, Popover, or Inline messaging instead.
20
+ *
21
+ * @see
22
+ * Check out the {@link https://uds.build/docs/components/tooltip Tooltip Docs} for more info
23
+ *
24
+ * @example
25
+ * ```tsx
26
+ * 'use client';
27
+ * import { Tooltip, TooltipTrigger, TooltipContent, Button } from "@yahoo/uds";
28
+ *
29
+ * <Tooltip>
30
+ * <TooltipTrigger>
31
+ * <Button>Tooltip Trigger</Button>
32
+ * </TooltipTrigger>
33
+ * <TooltipContent>basic tooltip content</TooltipContent>
34
+ * </Tooltip>
35
+ *```
36
+ *
37
+ * @related [Toast](https://uds.build/docs/components/toast), Popover (coming soon).
38
+ **/
39
+ function Tooltip({ children, placement, open, portal = true }) {
12
40
  const hideOnHoverOutside = open === void 0;
13
41
  const controlledProps = open !== void 0 ? {
14
42
  showTimeout: 0,
@@ -3,12 +3,41 @@ import { UniversalTooltipProps } from "../../../types/dist/index.cjs";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/client/Tooltip/Tooltip.d.ts
6
+ type TooltipProps = UniversalTooltipProps;
7
+ /**
8
+ * **⚙️️ A Tooltip component that anchors to a trigger element
9
+ *
10
+ * @componentType Client component
11
+ *
12
+ * @description
13
+ * Tooltips provide short, contextual help for UI elements. They appear on hover, focus, or long-press, and should clarify meaning—not introduce new concepts.
14
+ *
15
+ * Tooltips are not meant for critical information or required actions. If the user must take action, use a Dialog, Popover, or Inline messaging instead.
16
+ *
17
+ * @see
18
+ * Check out the {@link https://uds.build/docs/components/tooltip Tooltip Docs} for more info
19
+ *
20
+ * @example
21
+ * ```tsx
22
+ * 'use client';
23
+ * import { Tooltip, TooltipTrigger, TooltipContent, Button } from "@yahoo/uds";
24
+ *
25
+ * <Tooltip>
26
+ * <TooltipTrigger>
27
+ * <Button>Tooltip Trigger</Button>
28
+ * </TooltipTrigger>
29
+ * <TooltipContent>basic tooltip content</TooltipContent>
30
+ * </Tooltip>
31
+ *```
32
+ *
33
+ * @related [Toast](https://uds.build/docs/components/toast), Popover (coming soon).
34
+ **/
6
35
  declare function Tooltip({
7
36
  children,
8
37
  placement,
9
38
  open,
10
39
  portal
11
- }: UniversalTooltipProps): react_jsx_runtime0.JSX.Element;
40
+ }: TooltipProps): react_jsx_runtime0.JSX.Element;
12
41
  declare namespace Tooltip {
13
42
  var displayName: string;
14
43
  }
@@ -3,12 +3,41 @@ import { UniversalTooltipProps } from "../../../types/dist/index.js";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/client/Tooltip/Tooltip.d.ts
6
+ type TooltipProps = UniversalTooltipProps;
7
+ /**
8
+ * **⚙️️ A Tooltip component that anchors to a trigger element
9
+ *
10
+ * @componentType Client component
11
+ *
12
+ * @description
13
+ * Tooltips provide short, contextual help for UI elements. They appear on hover, focus, or long-press, and should clarify meaning—not introduce new concepts.
14
+ *
15
+ * Tooltips are not meant for critical information or required actions. If the user must take action, use a Dialog, Popover, or Inline messaging instead.
16
+ *
17
+ * @see
18
+ * Check out the {@link https://uds.build/docs/components/tooltip Tooltip Docs} for more info
19
+ *
20
+ * @example
21
+ * ```tsx
22
+ * 'use client';
23
+ * import { Tooltip, TooltipTrigger, TooltipContent, Button } from "@yahoo/uds";
24
+ *
25
+ * <Tooltip>
26
+ * <TooltipTrigger>
27
+ * <Button>Tooltip Trigger</Button>
28
+ * </TooltipTrigger>
29
+ * <TooltipContent>basic tooltip content</TooltipContent>
30
+ * </Tooltip>
31
+ *```
32
+ *
33
+ * @related [Toast](https://uds.build/docs/components/toast), Popover (coming soon).
34
+ **/
6
35
  declare function Tooltip({
7
36
  children,
8
37
  placement,
9
38
  open,
10
39
  portal
11
- }: UniversalTooltipProps): react_jsx_runtime0.JSX.Element;
40
+ }: TooltipProps): react_jsx_runtime0.JSX.Element;
12
41
  declare namespace Tooltip {
13
42
  var displayName: string;
14
43
  }