@yahoo/uds 3.154.0 → 3.154.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.
Files changed (63) hide show
  1. package/dist/automated-config/dist/generated/generatedConfigs.cjs +10 -0
  2. package/dist/automated-config/dist/generated/generatedConfigs.d.cts +10 -0
  3. package/dist/automated-config/dist/generated/generatedConfigs.d.ts +10 -0
  4. package/dist/automated-config/dist/generated/generatedConfigs.js +10 -0
  5. package/dist/automated-config/dist/generated/universalTokensConfigAuto.cjs +10 -0
  6. package/dist/automated-config/dist/generated/universalTokensConfigAuto.js +10 -0
  7. package/dist/automated-config/dist/properties.cjs +101 -87
  8. package/dist/automated-config/dist/properties.d.cts +2 -0
  9. package/dist/automated-config/dist/properties.d.ts +2 -0
  10. package/dist/automated-config/dist/properties.js +101 -87
  11. package/dist/automated-config/dist/types/ComponentConfig.d.cts +2 -0
  12. package/dist/automated-config/dist/types/ComponentConfig.d.ts +2 -0
  13. package/dist/automated-config/dist/utils/buildConfigSchema.cjs +18 -0
  14. package/dist/automated-config/dist/utils/buildConfigSchema.d.cts +5 -1
  15. package/dist/automated-config/dist/utils/buildConfigSchema.d.ts +5 -1
  16. package/dist/automated-config/dist/utils/buildConfigSchema.js +18 -0
  17. package/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +2 -2
  18. package/dist/automated-config/dist/utils/getConfigVariantProperties.d.ts +2 -2
  19. package/dist/automated-config/dist/utils/getPaginationControlWidthPx.cjs +68 -0
  20. package/dist/automated-config/dist/utils/getPaginationControlWidthPx.d.cts +49 -0
  21. package/dist/automated-config/dist/utils/getPaginationControlWidthPx.d.ts +49 -0
  22. package/dist/automated-config/dist/utils/getPaginationControlWidthPx.js +66 -0
  23. package/dist/automated-config/dist/utils/index.cjs +55 -17
  24. package/dist/automated-config/dist/utils/index.d.cts +2 -0
  25. package/dist/automated-config/dist/utils/index.d.ts +2 -0
  26. package/dist/automated-config/dist/utils/index.js +55 -17
  27. package/dist/config/dist/index.cjs +979 -969
  28. package/dist/config/dist/index.js +979 -969
  29. package/dist/css/dist/packages/automated-config/dist/properties.cjs +101 -87
  30. package/dist/css/dist/packages/automated-config/dist/properties.js +101 -87
  31. package/dist/css/dist/packages/config/dist/index.cjs +979 -969
  32. package/dist/css/dist/packages/config/dist/index.js +979 -969
  33. package/dist/index.cjs +3 -0
  34. package/dist/index.d.cts +2 -1
  35. package/dist/index.d.ts +2 -1
  36. package/dist/index.js +2 -1
  37. package/dist/styles/styler.d.cts +9 -9
  38. package/dist/styles/styler.d.ts +9 -9
  39. package/dist/tailwind-internal/dist/packages/automated-config/dist/generated/generatedConfigs.cjs +10 -0
  40. package/dist/tailwind-internal/dist/packages/automated-config/dist/generated/generatedConfigs.js +10 -0
  41. package/dist/tailwind-internal/dist/packages/automated-config/dist/properties.cjs +101 -87
  42. package/dist/tailwind-internal/dist/packages/automated-config/dist/properties.js +101 -87
  43. package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/index.cjs +54 -17
  44. package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/index.js +54 -17
  45. package/dist/tailwind-internal/dist/packages/config/dist/index.cjs +979 -969
  46. package/dist/tailwind-internal/dist/packages/config/dist/index.js +979 -969
  47. package/dist/tailwind-internal/dist/utils/getShadowStyles.d.cts +2 -2
  48. package/dist/tailwind-internal/dist/utils/getShadowStyles.d.ts +2 -2
  49. package/dist/tokens/automation/index.cjs +3 -0
  50. package/dist/tokens/automation/index.d.cts +2 -1
  51. package/dist/tokens/automation/index.d.ts +2 -1
  52. package/dist/tokens/automation/index.js +2 -1
  53. package/dist/tokens/index.cjs +3 -0
  54. package/dist/tokens/index.d.cts +2 -1
  55. package/dist/tokens/index.d.ts +2 -1
  56. package/dist/tokens/index.js +2 -1
  57. package/dist/uds/generated/componentData.cjs +293 -293
  58. package/dist/uds/generated/componentData.js +293 -293
  59. package/dist/uds/generated/migrationSchemaVersion.cjs +1 -1
  60. package/dist/uds/generated/migrationSchemaVersion.js +1 -1
  61. package/generated/componentData.json +412 -412
  62. package/generated/migrationSchemaVersion.ts +1 -1
  63. package/package.json +1 -1
@@ -281,9 +281,7 @@ const height = {
281
281
  const width = {
282
282
  name: "width",
283
283
  cssProperties: "width",
284
- twThemePath: (_, value) => {
285
- return `width[${value}]`;
286
- },
284
+ twThemePath: (_, value) => `width[${value}]`,
287
285
  possibleFixtures: ["spacingAliases"]
288
286
  };
289
287
  const shadow = {
@@ -347,6 +345,95 @@ const opacity = {
347
345
  twThemePath: (_, value) => `opacity[${value}]`,
348
346
  possibleFixtures: ["opacitySteps"]
349
347
  };
348
+ const fillOpacity = {
349
+ name: "fillOpacity",
350
+ cssProperties: "fill-opacity",
351
+ twThemePath: (_, value) => `opacity[${value}]`,
352
+ possibleFixtures: ["opacitySteps"]
353
+ };
354
+ const iconSize = {
355
+ name: "iconSize",
356
+ cssProperties: ["width", "height"],
357
+ twThemePath: (_, value) => `sizing.icon.${value}`,
358
+ possibleFixtures: ["iconSizes"]
359
+ };
360
+ const scaleEffect = {
361
+ name: "scaleEffect",
362
+ cssProperties: require_index.BUTTON_SCALE_EFFECT,
363
+ possibleFixtures: ["scaleEffects"],
364
+ twThemePath: () => {
365
+ return ``;
366
+ },
367
+ customValueRenderer: (schemaValue) => {
368
+ const value = schemaValue.value;
369
+ return String(require_index$1.SCALE_EFFECTS[String(value)] ?? require_index$1.SCALE_EFFECTS.none);
370
+ }
371
+ };
372
+ const blurBackgroundColor = {
373
+ ...backgroundColor,
374
+ name: "blurBackgroundColor",
375
+ cssProperties: `--${require_index.BACKGROUND_BLUR_COLOR_PREFIX}`
376
+ };
377
+ const backdropBlur = {
378
+ name: "backdropBlur",
379
+ possibleFixtures: ["positiveIntegers"],
380
+ cssProperties: "--uds-backdrop-blur",
381
+ twThemePath: () => {
382
+ return ``;
383
+ },
384
+ customValueRenderer: (schemaValue, schema, _theme, originalPropertyDefinition) => {
385
+ if (originalPropertyDefinition && originalPropertyDefinition.layerReference) {
386
+ const { variablePath, propertyName } = originalPropertyDefinition.layerReference;
387
+ const property = schema.variables[variablePath][propertyName].rest;
388
+ if (property.type === "elevationAliases") return `var(--uds-background-blur-radius-${property.value})`;
389
+ }
390
+ return schemaValue.value === 0 ? "none" : `blur(${schemaValue.value}px)`;
391
+ }
392
+ };
393
+ const blurBackgroundColorFallback = {
394
+ ...backgroundColor,
395
+ name: "blurBackgroundColorFallback",
396
+ cssProperties: `--${require_index.BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX}`
397
+ };
398
+ const buttonSize = {
399
+ name: "buttonSize",
400
+ cssProperties: "--uds-button-size",
401
+ possibleFixtures: ["buttonSizes"],
402
+ twThemePath: () => {
403
+ return ``;
404
+ },
405
+ customValueRenderer: (schemaValue) => {
406
+ return String(schemaValue.value);
407
+ }
408
+ };
409
+ const buttonVariant = {
410
+ name: "buttonVariant",
411
+ cssProperties: "--uds-button-variant",
412
+ possibleFixtures: ["buttonVariantsFlat"],
413
+ twThemePath: () => {
414
+ return ``;
415
+ },
416
+ customValueRenderer: (schemaValue) => {
417
+ return String(schemaValue.value);
418
+ }
419
+ };
420
+ const iconVariant = {
421
+ name: "iconVariant",
422
+ cssProperties: "--uds-icon-variant",
423
+ possibleFixtures: ["iconVariants"],
424
+ twThemePath: () => {
425
+ return ``;
426
+ },
427
+ customValueRenderer: (schemaValue) => {
428
+ return String(schemaValue.value);
429
+ }
430
+ };
431
+ const paginationWidthVar = {
432
+ name: "paginationWidthVar",
433
+ cssProperties: "--uds-pagination-control-size",
434
+ possibleFixtures: ["positiveIntegers"],
435
+ twThemePath: (_, value) => `${value}px`
436
+ };
350
437
  const publicProperties = {
351
438
  backgroundColor,
352
439
  borderWidth,
@@ -357,28 +444,8 @@ const publicProperties = {
357
444
  borderColor,
358
445
  underlineColor,
359
446
  stroke,
360
- buttonSize: {
361
- name: "buttonSize",
362
- cssProperties: "--uds-button-size",
363
- possibleFixtures: ["buttonSizes"],
364
- twThemePath: () => {
365
- return ``;
366
- },
367
- customValueRenderer: (schemaValue) => {
368
- return String(schemaValue.value);
369
- }
370
- },
371
- buttonVariant: {
372
- name: "buttonVariant",
373
- cssProperties: "--uds-button-variant",
374
- possibleFixtures: ["buttonVariantsFlat"],
375
- twThemePath: () => {
376
- return ``;
377
- },
378
- customValueRenderer: (schemaValue) => {
379
- return String(schemaValue.value);
380
- }
381
- },
447
+ buttonSize,
448
+ buttonVariant,
382
449
  fontFamily,
383
450
  fontSize,
384
451
  fontVariationSettings,
@@ -388,31 +455,11 @@ const publicProperties = {
388
455
  gap,
389
456
  color,
390
457
  opacity,
391
- fillOpacity: {
392
- name: "fillOpacity",
393
- cssProperties: "fill-opacity",
394
- twThemePath: (_, value) => `opacity[${value}]`,
395
- possibleFixtures: ["opacitySteps"]
396
- },
458
+ fillOpacity,
397
459
  fontWeight,
398
- iconSize: {
399
- name: "iconSize",
400
- cssProperties: ["width", "height"],
401
- twThemePath: (_, value) => `sizing.icon.${value}`,
402
- possibleFixtures: ["iconSizes"]
403
- },
460
+ iconSize,
404
461
  spacing,
405
- iconVariant: {
406
- name: "iconVariant",
407
- cssProperties: "--uds-icon-variant",
408
- possibleFixtures: ["iconVariants"],
409
- twThemePath: () => {
410
- return ``;
411
- },
412
- customValueRenderer: (schemaValue) => {
413
- return String(schemaValue.value);
414
- }
415
- },
462
+ iconVariant,
416
463
  horizontalMargin,
417
464
  bottomMargin,
418
465
  spacingHorizontal,
@@ -454,44 +501,10 @@ const publicProperties = {
454
501
  },
455
502
  height,
456
503
  width,
457
- scaleEffect: {
458
- name: "scaleEffect",
459
- cssProperties: require_index.BUTTON_SCALE_EFFECT,
460
- possibleFixtures: ["scaleEffects"],
461
- twThemePath: () => {
462
- return ``;
463
- },
464
- customValueRenderer: (schemaValue) => {
465
- const value = schemaValue.value;
466
- return String(require_index$1.SCALE_EFFECTS[String(value)] ?? require_index$1.SCALE_EFFECTS.none);
467
- }
468
- },
469
- backdropBlur: {
470
- name: "backdropBlur",
471
- possibleFixtures: ["positiveIntegers"],
472
- cssProperties: "--uds-backdrop-blur",
473
- twThemePath: () => {
474
- return ``;
475
- },
476
- customValueRenderer: (schemaValue, schema, _theme, originalPropertyDefinition) => {
477
- if (originalPropertyDefinition && originalPropertyDefinition.layerReference) {
478
- const { variablePath, propertyName } = originalPropertyDefinition.layerReference;
479
- const property = schema.variables[variablePath][propertyName].rest;
480
- if (property.type === "elevationAliases") return `var(--uds-background-blur-radius-${property.value})`;
481
- }
482
- return schemaValue.value === 0 ? "none" : `blur(${schemaValue.value}px)`;
483
- }
484
- },
485
- blurBackgroundColor: {
486
- ...backgroundColor,
487
- name: "blurBackgroundColor",
488
- cssProperties: `--${require_index.BACKGROUND_BLUR_COLOR_PREFIX}`
489
- },
490
- blurBackgroundColorFallback: {
491
- ...backgroundColor,
492
- name: "blurBackgroundColorFallback",
493
- cssProperties: `--${require_index.BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX}`
494
- },
504
+ scaleEffect,
505
+ backdropBlur,
506
+ blurBackgroundColor,
507
+ blurBackgroundColorFallback,
495
508
  scrimBackgroundColor: {
496
509
  name: "scrimBackgroundColor",
497
510
  cssProperties: "--uds-scrim-background-color",
@@ -516,7 +529,8 @@ const publicProperties = {
516
529
  cssProperties: "--uds-scrim-opacity",
517
530
  twThemePath: () => "",
518
531
  customValueRenderer: ({ value }) => `${String(value)}%`
519
- }
532
+ },
533
+ paginationWidthVar
520
534
  };
521
535
  const internalProperties = {
522
536
  outlineWidth,
@@ -281,9 +281,7 @@ const height = {
281
281
  const width = {
282
282
  name: "width",
283
283
  cssProperties: "width",
284
- twThemePath: (_, value) => {
285
- return `width[${value}]`;
286
- },
284
+ twThemePath: (_, value) => `width[${value}]`,
287
285
  possibleFixtures: ["spacingAliases"]
288
286
  };
289
287
  const shadow = {
@@ -347,6 +345,95 @@ const opacity = {
347
345
  twThemePath: (_, value) => `opacity[${value}]`,
348
346
  possibleFixtures: ["opacitySteps"]
349
347
  };
348
+ const fillOpacity = {
349
+ name: "fillOpacity",
350
+ cssProperties: "fill-opacity",
351
+ twThemePath: (_, value) => `opacity[${value}]`,
352
+ possibleFixtures: ["opacitySteps"]
353
+ };
354
+ const iconSize = {
355
+ name: "iconSize",
356
+ cssProperties: ["width", "height"],
357
+ twThemePath: (_, value) => `sizing.icon.${value}`,
358
+ possibleFixtures: ["iconSizes"]
359
+ };
360
+ const scaleEffect = {
361
+ name: "scaleEffect",
362
+ cssProperties: BUTTON_SCALE_EFFECT,
363
+ possibleFixtures: ["scaleEffects"],
364
+ twThemePath: () => {
365
+ return ``;
366
+ },
367
+ customValueRenderer: (schemaValue) => {
368
+ const value = schemaValue.value;
369
+ return String(SCALE_EFFECTS[String(value)] ?? SCALE_EFFECTS.none);
370
+ }
371
+ };
372
+ const blurBackgroundColor = {
373
+ ...backgroundColor,
374
+ name: "blurBackgroundColor",
375
+ cssProperties: `--${BACKGROUND_BLUR_COLOR_PREFIX}`
376
+ };
377
+ const backdropBlur = {
378
+ name: "backdropBlur",
379
+ possibleFixtures: ["positiveIntegers"],
380
+ cssProperties: "--uds-backdrop-blur",
381
+ twThemePath: () => {
382
+ return ``;
383
+ },
384
+ customValueRenderer: (schemaValue, schema, _theme, originalPropertyDefinition) => {
385
+ if (originalPropertyDefinition && originalPropertyDefinition.layerReference) {
386
+ const { variablePath, propertyName } = originalPropertyDefinition.layerReference;
387
+ const property = schema.variables[variablePath][propertyName].rest;
388
+ if (property.type === "elevationAliases") return `var(--uds-background-blur-radius-${property.value})`;
389
+ }
390
+ return schemaValue.value === 0 ? "none" : `blur(${schemaValue.value}px)`;
391
+ }
392
+ };
393
+ const blurBackgroundColorFallback = {
394
+ ...backgroundColor,
395
+ name: "blurBackgroundColorFallback",
396
+ cssProperties: `--${BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX}`
397
+ };
398
+ const buttonSize = {
399
+ name: "buttonSize",
400
+ cssProperties: "--uds-button-size",
401
+ possibleFixtures: ["buttonSizes"],
402
+ twThemePath: () => {
403
+ return ``;
404
+ },
405
+ customValueRenderer: (schemaValue) => {
406
+ return String(schemaValue.value);
407
+ }
408
+ };
409
+ const buttonVariant = {
410
+ name: "buttonVariant",
411
+ cssProperties: "--uds-button-variant",
412
+ possibleFixtures: ["buttonVariantsFlat"],
413
+ twThemePath: () => {
414
+ return ``;
415
+ },
416
+ customValueRenderer: (schemaValue) => {
417
+ return String(schemaValue.value);
418
+ }
419
+ };
420
+ const iconVariant = {
421
+ name: "iconVariant",
422
+ cssProperties: "--uds-icon-variant",
423
+ possibleFixtures: ["iconVariants"],
424
+ twThemePath: () => {
425
+ return ``;
426
+ },
427
+ customValueRenderer: (schemaValue) => {
428
+ return String(schemaValue.value);
429
+ }
430
+ };
431
+ const paginationWidthVar = {
432
+ name: "paginationWidthVar",
433
+ cssProperties: "--uds-pagination-control-size",
434
+ possibleFixtures: ["positiveIntegers"],
435
+ twThemePath: (_, value) => `${value}px`
436
+ };
350
437
  const publicProperties = {
351
438
  backgroundColor,
352
439
  borderWidth,
@@ -357,28 +444,8 @@ const publicProperties = {
357
444
  borderColor,
358
445
  underlineColor,
359
446
  stroke,
360
- buttonSize: {
361
- name: "buttonSize",
362
- cssProperties: "--uds-button-size",
363
- possibleFixtures: ["buttonSizes"],
364
- twThemePath: () => {
365
- return ``;
366
- },
367
- customValueRenderer: (schemaValue) => {
368
- return String(schemaValue.value);
369
- }
370
- },
371
- buttonVariant: {
372
- name: "buttonVariant",
373
- cssProperties: "--uds-button-variant",
374
- possibleFixtures: ["buttonVariantsFlat"],
375
- twThemePath: () => {
376
- return ``;
377
- },
378
- customValueRenderer: (schemaValue) => {
379
- return String(schemaValue.value);
380
- }
381
- },
447
+ buttonSize,
448
+ buttonVariant,
382
449
  fontFamily,
383
450
  fontSize,
384
451
  fontVariationSettings,
@@ -388,31 +455,11 @@ const publicProperties = {
388
455
  gap,
389
456
  color,
390
457
  opacity,
391
- fillOpacity: {
392
- name: "fillOpacity",
393
- cssProperties: "fill-opacity",
394
- twThemePath: (_, value) => `opacity[${value}]`,
395
- possibleFixtures: ["opacitySteps"]
396
- },
458
+ fillOpacity,
397
459
  fontWeight,
398
- iconSize: {
399
- name: "iconSize",
400
- cssProperties: ["width", "height"],
401
- twThemePath: (_, value) => `sizing.icon.${value}`,
402
- possibleFixtures: ["iconSizes"]
403
- },
460
+ iconSize,
404
461
  spacing,
405
- iconVariant: {
406
- name: "iconVariant",
407
- cssProperties: "--uds-icon-variant",
408
- possibleFixtures: ["iconVariants"],
409
- twThemePath: () => {
410
- return ``;
411
- },
412
- customValueRenderer: (schemaValue) => {
413
- return String(schemaValue.value);
414
- }
415
- },
462
+ iconVariant,
416
463
  horizontalMargin,
417
464
  bottomMargin,
418
465
  spacingHorizontal,
@@ -454,44 +501,10 @@ const publicProperties = {
454
501
  },
455
502
  height,
456
503
  width,
457
- scaleEffect: {
458
- name: "scaleEffect",
459
- cssProperties: BUTTON_SCALE_EFFECT,
460
- possibleFixtures: ["scaleEffects"],
461
- twThemePath: () => {
462
- return ``;
463
- },
464
- customValueRenderer: (schemaValue) => {
465
- const value = schemaValue.value;
466
- return String(SCALE_EFFECTS[String(value)] ?? SCALE_EFFECTS.none);
467
- }
468
- },
469
- backdropBlur: {
470
- name: "backdropBlur",
471
- possibleFixtures: ["positiveIntegers"],
472
- cssProperties: "--uds-backdrop-blur",
473
- twThemePath: () => {
474
- return ``;
475
- },
476
- customValueRenderer: (schemaValue, schema, _theme, originalPropertyDefinition) => {
477
- if (originalPropertyDefinition && originalPropertyDefinition.layerReference) {
478
- const { variablePath, propertyName } = originalPropertyDefinition.layerReference;
479
- const property = schema.variables[variablePath][propertyName].rest;
480
- if (property.type === "elevationAliases") return `var(--uds-background-blur-radius-${property.value})`;
481
- }
482
- return schemaValue.value === 0 ? "none" : `blur(${schemaValue.value}px)`;
483
- }
484
- },
485
- blurBackgroundColor: {
486
- ...backgroundColor,
487
- name: "blurBackgroundColor",
488
- cssProperties: `--${BACKGROUND_BLUR_COLOR_PREFIX}`
489
- },
490
- blurBackgroundColorFallback: {
491
- ...backgroundColor,
492
- name: "blurBackgroundColorFallback",
493
- cssProperties: `--${BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX}`
494
- },
504
+ scaleEffect,
505
+ backdropBlur,
506
+ blurBackgroundColor,
507
+ blurBackgroundColorFallback,
495
508
  scrimBackgroundColor: {
496
509
  name: "scrimBackgroundColor",
497
510
  cssProperties: "--uds-scrim-background-color",
@@ -516,7 +529,8 @@ const publicProperties = {
516
529
  cssProperties: "--uds-scrim-opacity",
517
530
  twThemePath: () => "",
518
531
  customValueRenderer: ({ value }) => `${String(value)}%`
519
- }
532
+ },
533
+ paginationWidthVar
520
534
  };
521
535
  const internalProperties = {
522
536
  outlineWidth,