@yahoo/uds 0.4.2 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. package/cli/preload.ts +1 -1
  2. package/cli/utils/purgeCSS.ts +2 -5
  3. package/dist/{Image.native-CddvOupj.d.cts → Image.native-CfDCpWe_.d.cts} +1 -1
  4. package/dist/{Image.native-BJfkUDnq.d.ts → Image.native-nwk5tr_f.d.ts} +1 -1
  5. package/dist/{VStack-CjOrFgxd.d.ts → VStack-Bj6PfbK5.d.ts} +1 -1
  6. package/dist/{VStack-CMGd5AX1.d.cts → VStack-D-py89Ge.d.cts} +1 -1
  7. package/dist/experimental/index.cjs +1 -1
  8. package/dist/experimental/index.d.cts +2 -2
  9. package/dist/experimental/index.d.ts +2 -2
  10. package/dist/experimental/index.js +1 -1
  11. package/dist/experimental/index.native.cjs +1 -1
  12. package/dist/experimental/index.native.d.cts +3 -3
  13. package/dist/experimental/index.native.d.ts +3 -3
  14. package/dist/experimental/index.native.js +1 -1
  15. package/dist/fixtures.cjs +60 -124
  16. package/dist/fixtures.d.ts +3 -10
  17. package/dist/fixtures.js +59 -123
  18. package/dist/index.cjs +1 -1
  19. package/dist/index.d.cts +58 -25
  20. package/dist/index.d.ts +58 -25
  21. package/dist/index.js +1 -1
  22. package/dist/{index.native-DG8RsS88.d.cts → index.native-A2gCijBH.d.cts} +1 -1
  23. package/dist/{index.native-LymI5azd.d.ts → index.native-BLJdXZHY.d.ts} +1 -1
  24. package/dist/index.native.cjs +1 -1
  25. package/dist/index.native.d.cts +72 -10
  26. package/dist/index.native.d.ts +72 -10
  27. package/dist/index.native.js +1 -1
  28. package/dist/styles/globals.css +1 -0
  29. package/dist/tailwind/plugin.cjs +1 -0
  30. package/dist/{tailwindPlugin.d.ts → tailwind/plugin.d.cts} +1 -1
  31. package/dist/{tailwindPlugin.d.cts → tailwind/plugin.d.ts} +1 -1
  32. package/dist/tailwind/plugin.js +1 -0
  33. package/dist/tailwind/purger.cjs +4 -0
  34. package/dist/tailwind/purger.js +4 -0
  35. package/dist/tokens/index.cjs +1 -1
  36. package/dist/tokens/index.d.cts +15 -4
  37. package/dist/tokens/index.d.ts +15 -4
  38. package/dist/tokens/index.js +1 -1
  39. package/dist/tokens/index.native.cjs +1 -1
  40. package/dist/tokens/index.native.d.cts +2 -2
  41. package/dist/tokens/index.native.d.ts +2 -2
  42. package/dist/tokens/index.native.js +1 -1
  43. package/dist/tokens/parseTokens.cjs +1 -1
  44. package/dist/tokens/parseTokens.d.cts +1 -2
  45. package/dist/tokens/parseTokens.d.ts +1 -2
  46. package/dist/tokens/parseTokens.js +1 -1
  47. package/dist/{types-D-ttCAsE.d.cts → types-Diou6f1Q.d.cts} +2 -3
  48. package/dist/{types-D-ttCAsE.d.ts → types-Diou6f1Q.d.ts} +2 -3
  49. package/dist/types-Dk8fLx7L.d.cts +374 -0
  50. package/dist/types-Dk8fLx7L.d.ts +374 -0
  51. package/package.json +19 -39
  52. package/dist/styles/fonts.css +0 -1
  53. package/dist/styles/fonts.d.cts +0 -2
  54. package/dist/styles/fonts.d.ts +0 -2
  55. package/dist/styles/globals.d.cts +0 -2
  56. package/dist/styles/globals.d.ts +0 -2
  57. package/dist/styles/toast.d.cts +0 -2
  58. package/dist/styles/toast.d.ts +0 -2
  59. package/dist/tailwindPlugin.cjs +0 -1
  60. package/dist/tailwindPlugin.js +0 -1
  61. package/dist/tailwindPurge.cjs +0 -4
  62. package/dist/tailwindPurge.js +0 -4
  63. package/dist/tokens/parseTokens.native.cjs +0 -1
  64. package/dist/tokens/parseTokens.native.d.cts +0 -399
  65. package/dist/tokens/parseTokens.native.d.ts +0 -399
  66. package/dist/tokens/parseTokens.native.js +0 -1
  67. package/dist/types-FO65RM-W.d.cts +0 -38
  68. package/dist/types-FO65RM-W.d.ts +0 -38
  69. /package/dist/{tailwindPurge.d.cts → tailwind/purger.d.cts} +0 -0
  70. /package/dist/{tailwindPurge.d.ts → tailwind/purger.d.ts} +0 -0
  71. /package/dist/{tailwindPurge/utils.cjs → tailwind/tsMorph.cjs} +0 -0
  72. /package/dist/{tailwindPurge/utils.d.cts → tailwind/tsMorph.d.cts} +0 -0
  73. /package/dist/{tailwindPurge/utils.d.ts → tailwind/tsMorph.d.ts} +0 -0
  74. /package/dist/{tailwindPurge/utils.js → tailwind/tsMorph.js} +0 -0
@@ -0,0 +1,374 @@
1
+ import { PropsWithChildren } from 'react';
2
+
3
+ declare const alwaysPalette: {
4
+ white: string;
5
+ black: string;
6
+ transparent: string;
7
+ };
8
+
9
+ type IconName$1 = 'academicCap' | 'academicCap_fill' | 'accept' | 'accept_fill' | 'accessibility' | 'accountKey' | 'accountKey_fill' | 'accountKeyAndroid' | 'accountKeyAndroid_fill' | 'addAttachments' | 'addAttachments_fill' | 'addDocument' | 'addDocument_fill' | 'addFolder' | 'addFolder_fill' | 'addLink' | 'addPerson' | 'addPerson_fill' | 'addToCalendar' | 'addToCalendar_fill' | 'ads' | 'adsEuro' | 'adsPound' | 'alarmClock' | 'alarmClock_fill' | 'analytics' | 'announcement' | 'announcement_fill' | 'appPublishing' | 'appPublishing_fill' | 'apparel' | 'apparel_fill' | 'appleWatch_fill' | 'ar3d' | 'archive' | 'archive_fill' | 'arrowCurveLeft' | 'arrowCurveRight' | 'arrowCurveUp' | 'arrowDown' | 'arrowDownAboveLine' | 'arrowDownAndIn' | 'arrowLeft' | 'arrowRight' | 'arrowUp' | 'arrowUpAndOut' | 'arrowUpUnderLine' | 'ascender' | 'astroAquarius' | 'astroAries' | 'astroCancer' | 'astroCapricorn' | 'astroGemini' | 'astroLeo' | 'astroLibra' | 'astroPisces' | 'astroSagittarius' | 'astroScorpio' | 'astroTaurus' | 'astroVirgo' | 'atSymbol' | 'attachment' | 'badge' | 'badge_fill' | 'barGraph' | 'barGraph_fill' | 'baseball' | 'baseball_fill' | 'baseballBat_fill' | 'basket' | 'basket_fill' | 'basketball' | 'basketball_fill' | 'beachUmbrella' | 'beachUmbrella_fill' | 'bed' | 'bed_fill' | 'beer' | 'beer_fill' | 'bell' | 'bell_fill' | 'bellOff' | 'bellOff_fill' | 'bellPlus' | 'bill' | 'bill_fill' | 'billing' | 'billing_fill' | 'binoculars' | 'binoculars_fill' | 'biometrics' | 'birthdayCake' | 'birthdayCake_fill' | 'blockPerson' | 'blockPerson_fill' | 'bold' | 'bookmark' | 'bookmark_fill' | 'box' | 'box_fill' | 'briefcase' | 'briefcase_fill' | 'bubbleGraph' | 'bubbleGraph_fill' | 'bulletList' | 'bulletListRectangle' | 'bulletListRectangle_fill' | 'bus' | 'bus_fill' | 'cal01' | 'cal01_fill' | 'cal02' | 'cal02_fill' | 'cal03' | 'cal03_fill' | 'cal04' | 'cal04_fill' | 'cal05' | 'cal05_fill' | 'cal06' | 'cal06_fill' | 'cal07' | 'cal07_fill' | 'cal08' | 'cal08_fill' | 'cal09' | 'cal09_fill' | 'cal10' | 'cal10_fill' | 'cal11' | 'cal11_fill' | 'cal12' | 'cal12_fill' | 'cal13' | 'cal13_fill' | 'cal14' | 'cal14_fill' | 'cal15' | 'cal15_fill' | 'cal16' | 'cal16_fill' | 'cal17' | 'cal17_fill' | 'cal18' | 'cal18_fill' | 'cal19' | 'cal19_fill' | 'cal20' | 'cal20_fill' | 'cal21' | 'cal21_fill' | 'cal22' | 'cal22_fill' | 'cal23' | 'cal23_fill' | 'cal24' | 'cal24_fill' | 'cal25' | 'cal25_fill' | 'cal26' | 'cal26_fill' | 'cal27' | 'cal27_fill' | 'cal28' | 'cal28_fill' | 'cal29' | 'cal29_fill' | 'cal30' | 'cal30_fill' | 'cal31' | 'cal31_fill' | 'calendar' | 'calendar_fill' | 'camera' | 'camera_fill' | 'candy' | 'canvas' | 'canvas_fill' | 'capitolBuilding' | 'capitolBuilding_fill' | 'capsule' | 'capsule_fill' | 'car' | 'car_fill' | 'card' | 'card_fill' | 'cart' | 'castAnimationFrame1' | 'castAnimationFrame2' | 'castUnavailable' | 'centerAligned' | 'cfl_fill' | 'changeFont' | 'checkboxMixed' | 'checkboxMixed_fill' | 'checkboxSelected' | 'checkboxSelected_fill' | 'checkboxUnselected' | 'checkmarkSelected' | 'chevronBack' | 'chevronDown' | 'chevronNext' | 'chevronUp' | 'chromeCast' | 'chromeCast_fill' | 'cleats' | 'cleats_fill' | 'clientAssist' | 'clientAssist_fill' | 'clock' | 'clock_fill' | 'close' | 'closedCaptioning' | 'closedCaptioning_fill' | 'cloud' | 'cloud_fill' | 'cloudDay' | 'cloudDrive' | 'cloudDrive_fill' | 'cloudNight' | 'code' | 'coffeeCup' | 'coffeeCup_fill' | 'coffeeMug' | 'coffeeMug_fill' | 'collapseList' | 'collegeFootball' | 'collegeFootball_fill' | 'colorPalette' | 'colorPalette_fill' | 'comedyTragedyMasks' | 'comedyTragedyMasks_fill' | 'comment' | 'comment_fill' | 'compass' | 'compass_fill' | 'compose' | 'compose_fill' | 'contactBook' | 'contactBook_fill' | 'contactCard' | 'contactCard_fill' | 'convenienceStore' | 'convenienceStore_fill' | 'conversations' | 'conversations_fill' | 'copy' | 'copy_fill' | 'copyright' | 'copyright_fill' | 'creativeCommons' | 'creativeCommons_fill' | 'creditCard' | 'creditCard_fill' | 'crescentMoon' | 'crescentMoonAlt' | 'cryptocurrency' | 'cryptocurrency_fill' | 'cursor' | 'cut' | 'dashboard' | 'dashboard_fill' | 'dating' | 'dating_fill' | 'decline' | 'decline_fill' | 'descender' | 'desktop' | 'desktop_fill' | 'diamond' | 'diamond_fill' | 'direction' | 'direction_fill' | 'discoBall' | 'document' | 'document_fill' | 'dollar' | 'doubleLeft' | 'doubleRight' | 'draft' | 'draft_fill' | 'dragBars' | 'dragBarsAlt' | 'dressForm_fill' | 'dressFrom' | 'dusk' | 'dusk_fill' | 'eclipse' | 'eclipse_fill' | 'edit' | 'edit_fill' | 'emoticon' | 'emoticon_fill' | 'euro' | 'exchange' | 'exclamation' | 'exclamation_fill' | 'exclamationAlt' | 'exclamationAlt_fill' | 'exitFullscreen' | 'expand' | 'expandAlt' | 'expandList' | 'eye' | 'eyeSlash' | 'eyelash' | 'fantasyBaseball' | 'fantasyBaseball_fill' | 'fantasyFootball' | 'fantasyFootball_fill' | 'files' | 'files_fill' | 'filter' | 'finance' | 'firstQuarter' | 'flag' | 'flag_fill' | 'flower' | 'fog' | 'fogDay' | 'fogNight' | 'folder' | 'folder_fill' | 'foodAndDrink' | 'foodAndDrink_fill' | 'football' | 'football_fill' | 'forkKnife' | 'forward' | 'forward_fill' | 'fourColumn' | 'fourColumn_fill' | 'fullMoon' | 'fullscreen' | 'fullscreenAudio' | 'gallery' | 'gallery_fill' | 'gasStation' | 'gear' | 'gear_fill' | 'gif' | 'gif_fill' | 'globe' | 'golf' | 'grid' | 'groups' | 'groups_fill' | 'guitar' | 'halfSun' | 'halfSun_fill' | 'hand' | 'hashtag' | 'haze' | 'hazeDay' | 'hazeNight' | 'heart' | 'heart_fill' | 'heavyRain' | 'heavyRainDay' | 'heavyRainLightning' | 'heavyRainLightningDay' | 'heavyRainLightningNight' | 'heavyRainNight' | 'history' | 'hockey' | 'home' | 'home_fill' | 'hurricane' | 'inbox' | 'inbox_fill' | 'indent' | 'information' | 'information_fill' | 'invitation' | 'invitation_fill' | 'italic' | 'key' | 'keyAlt' | 'keypad' | 'lastQuarter' | 'layout' | 'layout_fill' | 'layoutGrid' | 'layoutList' | 'leftAligned' | 'leftToRight' | 'lifePreserver' | 'lightning' | 'lightningBolt' | 'lightningBolt_fill' | 'lightningDay' | 'lightningNight' | 'lineGraph' | 'lineTypeBar' | 'lineTypeCandlestick' | 'link' | 'lipstick' | 'lipstick_fill' | 'list' | 'live' | 'locationArrow' | 'locationArrow_fill' | 'lock' | 'lock_fill' | 'logout' | 'magnifyingGlass' | 'magnifyingGlass_fill' | 'mail' | 'mail_fill' | 'manageAccount' | 'manageAccount_fill' | 'map' | 'mapPin' | 'mapPin_fill' | 'martini' | 'martini_fill' | 'meMail' | 'medal' | 'medal_fill' | 'medicalKit' | 'medicalKit_fill' | 'metrics' | 'mic' | 'mic_fill' | 'micOff' | 'micOff_fill' | 'microscope' | 'microscope_fill' | 'minus' | 'mlb' | 'moveToFolder' | 'moveToFolder_fill' | 'movies' | 'movies_fill' | 'music' | 'music_fill' | 'ncaab' | 'newComment' | 'newComment_fill' | 'newMoon' | 'news' | 'news_fill' | 'nextTrack' | 'nfc' | 'nfl' | 'notes' | 'notes_fill' | 'null' | 'numberedList' | 'oneColumn' | 'oneColumn_fill' | 'outbox' | 'outbox_fill' | 'outdent' | 'overflow' | 'overflowMail' | 'overflowVertical' | 'paperclip' | 'parenting' | 'parenting_fill' | 'parking' | 'parks' | 'parks_fill' | 'pause' | 'paw' | 'pawn' | 'pawn_fill' | 'person' | 'person_fill' | 'personArrowUturnLeft' | 'personArrowUturnLeft_fill' | 'phone' | 'phone_fill' | 'picture' | 'picture_fill' | 'pieChart' | 'pieChart_fill' | 'play' | 'play_fill' | 'playInCircle' | 'playInCircle_fill' | 'playMini' | 'plus' | 'poll' | 'poll_fill' | 'popular' | 'power' | 'print' | 'print_fill' | 'pro' | 'profile' | 'profile_fill' | 'prohibitionSign' | 'pulse' | 'question' | 'question_fill' | 'racingFlag' | 'radioSelected' | 'radioSelected_fill' | 'radioUnselected' | 'rain' | 'rainDay' | 'rainNight' | 'raindrop' | 'raindropDay' | 'raindropNight' | 'reblog' | 'reblogAlt' | 'recreation' | 'refresh' | 'refreshAlt' | 'removePerson' | 'removePerson_fill' | 'replay' | 'reply' | 'reply_fill' | 'replyAll' | 'replyAll_fill' | 'reverse' | 'revisions' | 'revisions_fill' | 'riceBowl' | 'rightAligned' | 'rightToLeft' | 'rugby' | 'scissors' | 'searchMail' | 'searchMail_fill' | 'searchWeb' | 'seekBackward10' | 'seekForward10' | 'segments' | 'segments_fill' | 'selector' | 'sendScheduled' | 'sendScheduled_fill' | 'sent' | 'sent_fill' | 'shield' | 'shieldWithCheckMark' | 'shieldWithCheckMark_fill' | 'shieldWithProhibitionSign' | 'shieldWithProhibitionSign_fill' | 'shieldWithX' | 'shieldWithX_fill' | 'shoppingBag' | 'shoppingBag_fill' | 'shrink' | 'sidebar' | 'sidebarError' | 'skull' | 'skull_fill' | 'slideRule' | 'smartPhone' | 'smartPhone_fill' | 'smiley' | 'smiley_fill' | 'snow' | 'snowDay' | 'snowNight' | 'snowflake' | 'soccer' | 'spellCheck' | 'sprinkle' | 'sprinkleDay' | 'sprinkleNight' | 'squareArrowDiagonalUpRight' | 'stadium' | 'star' | 'star_fill' | 'stardust' | 'stardust_fill' | 'stationery' | 'stationery_fill' | 'stationeryFall' | 'stationeryFall_fill' | 'stationerySpring' | 'stationerySpring_fill' | 'stationeryWinter' | 'stationeryWinter_fill' | 'statistics' | 'stop' | 'stopwatch' | 'stopwatch_fill' | 'stream' | 'sun' | 'sun_fill' | 'sunrise' | 'sunset' | 'supply' | 'supply_fill' | 'suspicious' | 'suspicious_fill' | 'swipeleft' | 'swipeleft_fill' | 'swiperight' | 'swiperight_fill' | 'tablet' | 'tablet_fill' | 'tag' | 'tag_fill' | 'target' | 'targetArrow' | 'tech' | 'tech_fill' | 'techAlt' | 'textColor' | 'textHighlight' | 'textHighlight_fill' | 'theme' | 'theme_fill' | 'threeColumn' | 'threeColumn_fill' | 'thumbDown' | 'thumbDown_fill' | 'thumbUp' | 'thumbUp_fill' | 'tornado' | 'train' | 'train_fill' | 'trashCan' | 'trashCan_fill' | 'travel' | 'travel_fill' | 'trending' | 'truck' | 'truck_fill' | 'tsunami' | 'tv' | 'tv_fill' | 'twoColumn' | 'twoColumn_fill' | 'underline' | 'unsub' | 'unsub_fill' | 'videoCamera' | 'videoCamera_fill' | 'videoCameraOff' | 'videoCameraOff_fill' | 'volume' | 'volumeLow' | 'volumeMute' | 'waningCrescent' | 'waningGibbous' | 'waxingCrescent' | 'waxingGibbous' | 'wellness' | 'wifi' | 'wifiOffline' | 'wind' | 'windCloud' | 'windDay' | 'windNight' | 'wine' | 'wine_fill' | 'wrench' | 'wrench_fill' | 'yahooPlus' | 'zoomIn' | 'zoomOut';
10
+
11
+ type PaletteType = keyof PaletteConfig;
12
+ type PaletteValue = {
13
+ hue: Hue;
14
+ step: HueStep;
15
+ opacity?: string;
16
+ };
17
+ type Palette = {
18
+ [key in PaletteType]: keyof PaletteConfig[key];
19
+ };
20
+ type Hue = 'gray' | 'purple' | 'indigo' | 'blue' | 'cyan' | 'teal' | 'mint' | 'green' | 'lime' | 'citron' | 'yellow' | 'brown' | 'nude' | 'orange' | 'sunset' | 'red' | 'rose' | 'pink' | 'magenta' | 'carbon';
21
+ type HueStep = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15';
22
+ type SpectrumColor = `${Hue}-${HueStep}`;
23
+ type CorePalette = Record<CorePaletteAlias, PaletteValue>;
24
+ type CorePaletteAlias = 'accent' | 'alert' | 'brand' | 'positive' | 'warning';
25
+ type BackgroundPaletteAlias = 'primary' | 'secondary';
26
+ type BackgroundPalette = Record<BackgroundPaletteAlias, PaletteValue>;
27
+ type ForegroundPalette = Record<ForegroundPaletteAlias, PaletteValue>;
28
+ type ForegroundPaletteAlias = 'primary' | 'secondary' | 'tertiary' | 'muted' | 'on-color';
29
+ type LinePalette = Record<LinePaletteAlias, PaletteValue>;
30
+ type LinePaletteAlias = 'primary' | 'secondary' | 'tertiary' | 'muted';
31
+ type AlwaysPalette = typeof alwaysPalette;
32
+ type AlwaysPaletteAlias = keyof AlwaysPalette;
33
+ type ForegroundColor = CorePaletteAlias | ForegroundPaletteAlias | AlwaysPaletteAlias;
34
+ type LineColor = CorePaletteAlias | LinePaletteAlias | AlwaysPaletteAlias;
35
+ type BackgroundColor = CorePaletteAlias | BackgroundPaletteAlias | AlwaysPaletteAlias;
36
+ type TextVariant = 'display1' | 'display2' | 'display3' | 'title1' | 'title2' | 'title3' | 'title4' | 'headline1' | 'body1' | 'label1' | 'label2' | 'caption1' | 'caption2' | 'legal1';
37
+ type FontFamilyGlobalAlias = 'icons' | 'sans' | 'sans-beta' | 'sans-condensed' | 'serif-text' | 'serif-display';
38
+ type FontFamilyGlobalConfig = Record<FontFamilyGlobalAlias, {
39
+ fallbacks: string[];
40
+ name: string;
41
+ }>;
42
+ type FontWeightNumeric = '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
43
+ type FontWeightDescriptive = 'thin' | 'extralight' | 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black';
44
+ type TextTransform = 'none' | 'uppercase' | 'lowercase' | 'capitalize';
45
+ type LetterSpacing = 'tighter' | 'tight' | 'normal' | 'wide' | 'wider' | 'widest';
46
+ type LineClampAlias = '1' | '2' | '3' | '4' | '5' | '6';
47
+ type LineHeight = number;
48
+ type FontSize = number;
49
+ type TextTransformConfig = Record<TextVariant, TextTransform>;
50
+ type FontSizeConfig = Record<TextVariant, FontSize>;
51
+ type FontFamilyConfig = Record<TextVariant, FontFamilyGlobalAlias>;
52
+ type FontWeightConfig = Record<TextVariant, FontWeightDescriptive>;
53
+ type LineHeightConfig = Record<TextVariant, LineHeight>;
54
+ type ConfigurableTextProperty = 'fontFamily' | 'fontSize' | 'fontWeight' | 'lineHeight' | 'textTransform';
55
+ type AvatarSize = 's' | 'm' | 'l';
56
+ type AvatarSizeConfig = Record<AvatarSize, number>;
57
+ type AvatarShape = BorderRadius;
58
+ type IconSize = 'sm' | 'md' | 'lg';
59
+ type IconSizeConfig = Record<IconSize, number>;
60
+ type SpacingAlias = '0' | 'px' | '0.5' | '1' | '1.5' | '2' | '2.5' | '3' | '3.5' | '4' | '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';
61
+ type SpacingConfig = Record<SpacingAlias, number>;
62
+ type BorderRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
63
+ type BorderRadiusConfig = Record<BorderRadius, number>;
64
+ type BorderWidth = 'none' | 'thin' | 'medium' | 'thick';
65
+ type BorderWidthConfig = Record<BorderWidth, number>;
66
+ type BoxShadowConfig = {
67
+ color: string;
68
+ offsetX: number;
69
+ offsetY: number;
70
+ blurRadius: number;
71
+ spreadRadius: number;
72
+ }[];
73
+ type ColorModeConfig = Record<ColorMode, ColorsConfig>;
74
+ type ColorsConfig = {
75
+ palette: PaletteConfig;
76
+ spectrum: SpectrumConfig;
77
+ };
78
+ type SpectrumValue = Record<HueStep, string>;
79
+ type SpectrumConfig = Record<Hue, SpectrumValue>;
80
+ type PaletteConfig = {
81
+ core: CorePalette;
82
+ background: BackgroundPalette;
83
+ foreground: ForegroundPalette;
84
+ line: LinePalette;
85
+ };
86
+ type ScaleConfig = {
87
+ avatarSizes: AvatarSizeConfig;
88
+ iconSizes: IconSizeConfig;
89
+ borderRadius: BorderRadiusConfig;
90
+ borderWidth: BorderWidthConfig;
91
+ fontFamily: FontFamilyConfig;
92
+ fontSize: FontSizeConfig;
93
+ fontWeight: FontWeightConfig;
94
+ lineHeight: LineHeightConfig;
95
+ textTransform: TextTransformConfig;
96
+ };
97
+ type ScaleModeConfig = Record<ScaleMode, ScaleConfig>;
98
+ type UniversalTokensConfig = {
99
+ colorMode: ColorModeConfig;
100
+ scaleMode: ScaleModeConfig;
101
+ fontFamily: FontFamilyGlobalConfig;
102
+ };
103
+ type PlatformMode = 'web' | 'ios' | 'android';
104
+ type ColorMode = 'light' | 'dark';
105
+ type ColorModeForApp = ColorMode | 'system';
106
+ type ScaleMode = 'xSmall' | 'small' | 'medium' | 'large' | 'xLarge' | 'xxLarge' | 'xxxLarge';
107
+ type ScaleModeForApp = ScaleMode | 'system';
108
+ type HighContrastMode = boolean;
109
+ type RegionMode = '🇺🇸 US' | '🇩🇪 DE' | '🇫🇷 FR' | '🇨🇳 CN';
110
+ interface Modes {
111
+ colorMode: ColorMode;
112
+ scaleMode: ScaleMode;
113
+ }
114
+ type Animation = 'none' | 'spin' | 'ping' | 'pulse' | 'bounce' | 'accordion-down' | 'accordion-up';
115
+ type TransitionDelay = '0' | '75' | '100' | '150' | '200' | '300' | '500' | '700' | '1000';
116
+ type TransitionDuration = '0' | '75' | '100' | '150' | '200' | '300' | '500' | '700' | '1000';
117
+ type TransitionTiming = 'linear' | 'in' | 'out' | 'in-out';
118
+ type AriaAttribute = 'busy' | 'checked' | 'disabled' | 'expanded' | 'hidden' | 'pressed' | 'readonly' | 'required' | 'selected' | 'invalid';
119
+ type DataAttribute = 'active' | 'active-item' | 'autofill' | 'backdrop' | 'enter' | 'leave' | 'focus-visible';
120
+ type Flex = '1' | 'auto' | 'initial' | 'none';
121
+ type FlexGrow = '0' | '1' | '2' | '3';
122
+ type FlexShrink = '0' | '1';
123
+ type FlexAlignContent = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'space-between' | 'space-around';
124
+ type FlexAlignItems = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
125
+ type FlexAlignSelf = 'auto' | 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
126
+ type FlexDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
127
+ type FlexWrap = 'wrap' | 'nowrap' | 'wrap-reverse';
128
+ type FlexJustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
129
+ type FlexBasis = 'min-content';
130
+ type Display = 'block' | 'inline-block' | 'inline' | 'flex' | 'inline-flex' | 'table' | 'inline-table' | 'table-caption' | 'table-cell' | 'table-column' | 'table-column-group' | 'table-footer-group' | 'table-header-group' | 'table-row-group' | 'table-row' | 'flow-root' | 'grid' | 'contents';
131
+ type Overflow = 'auto' | 'hidden' | 'clip' | 'visible' | 'scroll';
132
+ type Position = 'static' | 'fixed' | 'absolute' | 'relative' | 'sticky';
133
+ type ImageStyleProps = {
134
+ /**
135
+ * Determines how the image should be resized to fit its container.
136
+ */
137
+ contentFit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
138
+ };
139
+ interface BorderStyleProps {
140
+ /** Add a border radius to all corners of the box. */
141
+ borderRadius?: BorderRadius;
142
+ /** Add a border radius to top left corner of the box. */
143
+ borderTopStartRadius?: BorderRadius;
144
+ /** Add a border radius to top right corner of the box. */
145
+ borderTopEndRadius?: BorderRadius;
146
+ /** Add a border radius to bottom left corner of the box. */
147
+ borderBottomStartRadius?: BorderRadius;
148
+ /** Add a border radius to bottom right corner of the box. */
149
+ borderBottomEndRadius?: BorderRadius;
150
+ /** Adds a custom border color from the palette */
151
+ borderColor?: LineColor;
152
+ /** Border color on active. */
153
+ borderColorOnActive?: LineColor;
154
+ /** Border color on focus. */
155
+ borderColorOnFocus?: LineColor;
156
+ /** Border color on checked. */
157
+ borderColorOnChecked?: LineColor;
158
+ /** Border color on hover. */
159
+ borderColorOnHover?: LineColor;
160
+ /** Start border color */
161
+ borderStartColor?: LineColor;
162
+ /** End border color */
163
+ borderEndColor?: LineColor;
164
+ /** Top border color */
165
+ borderTopColor?: LineColor;
166
+ /** Bottom border color */
167
+ borderBottomColor?: LineColor;
168
+ /** Shorthand property to the width of an element's border. */
169
+ borderWidth?: BorderWidth;
170
+ /** Sets the width of the top and bottom border of an element. */
171
+ borderVerticalWidth?: BorderWidth;
172
+ /** Sets the width of the start (left) and end (right) border of an element. */
173
+ borderHorizontalWidth?: BorderWidth;
174
+ /** Sets the width of the start (left) border of an element. */
175
+ borderStartWidth?: BorderWidth;
176
+ /** Sets the width of the end (right) border of an element. */
177
+ borderEndWidth?: BorderWidth;
178
+ /** Sets the width of the top border of an element. */
179
+ borderTopWidth?: BorderWidth;
180
+ /** Sets the width of the bottom border of an element. */
181
+ borderBottomWidth?: BorderWidth;
182
+ }
183
+ interface LayoutStyleProps {
184
+ /** Sets whether an element is treated as a block or inline box and the layout used for its children, such as flow layout, grid or flex. */
185
+ display?: Display;
186
+ /** Shorthand property which sets the desired behavior when content does not fit in the parent element box (overflows) in the horizontal and/or vertical direction. */
187
+ overflow?: Overflow;
188
+ /** Sets what shows when content overflows a block-level element's left and right edges. This may be nothing, a scroll bar, or the overflow content. This property may also be set by using the overflow shorthand property. */
189
+ overflowX?: Overflow;
190
+ /** sets what shows when content overflows a block-level element's top and bottom edges. This may be nothing, a scroll bar, or the overflow content. This property may also be set by using the overflow shorthand property. */
191
+ overflowY?: Overflow;
192
+ /** Sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements. */
193
+ position?: Position;
194
+ }
195
+ interface SpacingStyleProps {
196
+ /** Apply inner spacing on all sides. */
197
+ spacing?: SpacingAlias;
198
+ /** Apply inner spacing on the leading and trailing sides. */
199
+ spacingHorizontal?: SpacingAlias;
200
+ /** Apply inner spacing on the top and bottom sides. */
201
+ spacingVertical?: SpacingAlias;
202
+ /** Apply inner spacing on the bottom side. */
203
+ spacingBottom?: SpacingAlias;
204
+ /** Apply inner spacing on the trailing side. */
205
+ spacingEnd?: SpacingAlias;
206
+ /** Apply inner spacing on the leading side. */
207
+ spacingStart?: SpacingAlias;
208
+ /** Apply inner spacing on the top side. */
209
+ spacingTop?: SpacingAlias;
210
+ /** Apply negative outer spacing on all sides. */
211
+ offset?: SpacingAlias;
212
+ /** Apply negative outer spacing on the top and bottom sides. */
213
+ offsetVertical?: SpacingAlias;
214
+ /** Apply negative outer spacing on the leading and trailing sides. */
215
+ offsetHorizontal?: SpacingAlias;
216
+ /** Apply negative outer spacing on the bottom side. */
217
+ offsetBottom?: SpacingAlias;
218
+ /** Apply negative outer spacing on the trailing side. */
219
+ offsetEnd?: SpacingAlias;
220
+ /** Apply negative outer spacing on the leading side. */
221
+ offsetStart?: SpacingAlias;
222
+ /** Apply negative outer spacing on the top side. */
223
+ offsetTop?: SpacingAlias;
224
+ /** Control the horizontal gutters between grid and flexbox items. */
225
+ columnGap?: SpacingAlias;
226
+ /** Control the vertical gutters between grid and flexbox items. */
227
+ rowGap?: SpacingAlias;
228
+ }
229
+ interface FlexStyleProps {
230
+ /** Sets the distribution of space between and around content items along a flexbox's cross-axis or a grid's block axis. */
231
+ alignContent?: FlexAlignContent;
232
+ /** Sets the align-self value on all direct children as a group. In Flexbox, it controls the alignment of items on the Cross Axis. In Grid Layout, it controls the alignment of items on the Block Axis within their grid area. */
233
+ alignItems?: FlexAlignItems;
234
+ /** Overrides a grid or flex item's align-items value. In Grid, it aligns the item inside the grid area. In Flexbox, it aligns the item on the cross axis. */
235
+ alignSelf?: FlexAlignSelf;
236
+ /** Sets how a flex item will grow or shrink to fit the space available in its flex container. */
237
+ flex?: Flex;
238
+ /** Sets how flex items are placed in the flex container defining the main axis and the direction (normal or reversed). */
239
+ flexDirection?: FlexDirection;
240
+ /** Sets the flex grow factor, which specifies how much of the flex container's remaining space should be assigned to the flex item's main size. */
241
+ flexGrow?: FlexGrow;
242
+ /** Sets the flex shrink factor of a flex item. If the size of all flex items is larger than the flex container, items shrink to fit according to flex-shrink. */
243
+ flexShrink?: FlexShrink;
244
+ /** Sets whether flex items are forced onto one line or can wrap onto multiple lines. If wrapping is allowed, it sets the direction that lines are stacked. */
245
+ flexWrap?: FlexWrap;
246
+ /** Defines how the browser distributes space between and around content items along the main-axis of a flex container, and the inline axis of a grid container. */
247
+ justifyContent?: FlexJustifyContent;
248
+ /** Sets the initial main size of a flex item. It sets the size of the content box unless otherwise set with box-sizing. https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis */
249
+ flexBasis?: FlexBasis;
250
+ }
251
+ interface StateStyleProps {
252
+ interactable?: boolean;
253
+ focusable?: boolean;
254
+ }
255
+ interface TextStyleProps {
256
+ /** Color of a Text or Icon element */
257
+ color?: ForegroundColor;
258
+ /** Color of placeholder text */
259
+ placeholderColor?: ForegroundColor;
260
+ /** Font family for the text */
261
+ fontFamily?: TextVariant | FontFamilyGlobalAlias;
262
+ /** Font size of the text */
263
+ fontSize?: TextVariant;
264
+ /** Font weight of the text */
265
+ fontWeight?: TextVariant | FontWeightDescriptive;
266
+ /** Line height of the text */
267
+ lineHeight?: TextVariant;
268
+ /** Text alignment of the text */
269
+ textAlign?: 'center' | 'justify' | 'start' | 'end';
270
+ /** Sets the text transform for the text */
271
+ textTransform?: TextVariant | TextTransform;
272
+ }
273
+ interface BackgroundStyleProps {
274
+ /** Sets the background color. */
275
+ backgroundColor?: BackgroundColor;
276
+ }
277
+ type CustomSizingStyleProps = {
278
+ iconSize?: IconSize;
279
+ avatarSize?: AvatarSize;
280
+ };
281
+ type StyleProps = BackgroundStyleProps & BorderStyleProps & LayoutStyleProps & FlexStyleProps & SpacingStyleProps & TextStyleProps & ImageStyleProps & CustomSizingStyleProps;
282
+ interface UniversalBoxProps extends PropsWithChildren, BackgroundStyleProps, BorderStyleProps, FlexStyleProps, LayoutStyleProps, SpacingStyleProps {
283
+ /**
284
+ * When asChild is set to true, the component's child will be cloned and passed
285
+ * the props and behavior required to make it functional.
286
+ */
287
+ asChild?: boolean;
288
+ }
289
+ interface UniversalStackProps extends Omit<UniversalBoxProps, 'flexDirection'> {
290
+ gap?: SpacingAlias;
291
+ }
292
+ interface UniversalTextProps extends PropsWithChildren, TextStyleProps, UniversalBoxProps {
293
+ /** Style of text. */
294
+ variant?: TextVariant;
295
+ /** Color of the text. */
296
+ color?: ForegroundColor;
297
+ }
298
+ type IconName = IconName$1;
299
+ interface UniversalIconProps extends Omit<TextStyleProps, 'fontFamily' | 'fontSize' | 'fontWeight' | 'lineHeight'>, UniversalBoxProps {
300
+ /** Size of the icon. */
301
+ size: IconSize;
302
+ /** Name of the icon. */
303
+ name: IconName;
304
+ /** Color of the icon. */
305
+ color?: ForegroundColor;
306
+ }
307
+ interface UniversalPressableProps extends UniversalBoxProps {
308
+ onPress?: () => void;
309
+ }
310
+ type ButtonVariant = CorePaletteAlias | `${CorePaletteAlias}-outline` | `${CorePaletteAlias}-ghost` | 'primary-ghost' | 'primary-outline' | 'secondary';
311
+ type ButtonSize = 's' | 'm' | 'l';
312
+ interface UniversalIconButtonProps {
313
+ /**
314
+ * The variant of the button
315
+ * @default 'accent'
316
+ */
317
+ variant?: ButtonVariant;
318
+ /**
319
+ * The size of the button
320
+ * @default 'm'
321
+ */
322
+ size?: ButtonSize;
323
+ /** The name of the icon to be displayed at the start of the button. */
324
+ name: IconName;
325
+ /** Color for the icon. */
326
+ color: ForegroundColor;
327
+ }
328
+ interface UniversalButtonProps {
329
+ /**
330
+ * The variant of the button
331
+ * @default 'accent'
332
+ */
333
+ variant?: ButtonVariant;
334
+ /**
335
+ * The size of the button
336
+ * @default 'm'
337
+ */
338
+ size?: ButtonSize;
339
+ /** The name of the icon to be displayed at the start of the button. */
340
+ startIcon?: IconName;
341
+ /** The name of the icon to be displayed at the end of the button. */
342
+ endIcon?: IconName;
343
+ /** Indicates whether the button should span the full width of its container. */
344
+ fullWidth?: boolean;
345
+ }
346
+ interface UniversalImageProps extends Omit<UniversalBoxProps, 'width' | 'height'>, ImageStyleProps {
347
+ /** The source URL of the image. */
348
+ src: string;
349
+ /** Provides fallback (alternate) text to display when the image specified by the Image element is not loaded. */
350
+ alt?: string;
351
+ width?: number;
352
+ height?: number;
353
+ }
354
+ interface UniversalAvatarProps extends UniversalImageProps {
355
+ /** The size of the Avatar. */
356
+ size?: AvatarSize;
357
+ /** The shape of the Avatar. */
358
+ shape?: BorderRadius;
359
+ }
360
+ interface UniversalTextInputProps {
361
+ disabled?: boolean;
362
+ required?: boolean;
363
+ backgroundColor?: BackgroundColor;
364
+ borderColor?: LineColor;
365
+ borderWidth?: BorderWidth;
366
+ borderRadius?: BorderRadius;
367
+ color?: ForegroundColor;
368
+ fontSize?: TextVariant;
369
+ placeholderColor?: ForegroundColor;
370
+ spacingVertical?: SpacingAlias;
371
+ spacingHorizontal?: SpacingAlias;
372
+ }
373
+
374
+ export { type CorePaletteAlias as $, type AvatarSizeConfig as A, type BackgroundStyleProps as B, type ColorModeForApp as C, type AlwaysPaletteAlias as D, type Animation as E, type FlexStyleProps as F, type AriaAttribute as G, type AvatarShape as H, type ImageStyleProps as I, type AvatarSize as J, type BackgroundColor as K, type LayoutStyleProps as L, type Modes as M, type BackgroundPalette as N, type BackgroundPaletteAlias as O, type BorderRadius as P, type BorderWidth as Q, type BoxShadowConfig as R, type ScaleModeForApp as S, type TextStyleProps as T, type UniversalAvatarProps as U, type ButtonSize as V, type ButtonVariant as W, type ColorModeConfig as X, type ColorsConfig as Y, type ConfigurableTextProperty as Z, type CorePalette as _, type UniversalButtonProps as a, type DataAttribute as a0, type Display as a1, type Flex as a2, type FlexAlignContent as a3, type FlexAlignItems as a4, type FlexAlignSelf as a5, type FlexBasis as a6, type FlexDirection as a7, type FlexGrow as a8, type FlexJustifyContent as a9, type Position as aA, type RegionMode as aB, type ScaleConfig as aC, type ScaleModeConfig as aD, type SpacingAlias as aE, type SpacingConfig as aF, type SpectrumColor as aG, type SpectrumConfig as aH, type StateStyleProps as aI, type TextTransform as aJ, type TextVariant as aK, type TransitionDelay as aL, type TransitionDuration as aM, type TransitionTiming as aN, type UniversalTextInputProps as aO, type FlexShrink as aa, type FlexWrap as ab, type FontFamilyGlobalAlias as ac, type FontSize as ad, type FontWeightDescriptive as ae, type FontWeightNumeric as af, type ForegroundColor as ag, type ForegroundPalette as ah, type ForegroundPaletteAlias as ai, type HighContrastMode as aj, type Hue as ak, type HueStep as al, type IconName as am, type IconSize as an, type LetterSpacing as ao, type LineClampAlias as ap, type LineColor as aq, type LineHeight as ar, type LinePalette as as, type LinePaletteAlias as at, type Overflow as au, type Palette as av, type PaletteConfig as aw, type PaletteType as ax, type PaletteValue as ay, type PlatformMode as az, type UniversalPressableProps as b, type UniversalIconButtonProps as c, type UniversalImageProps as d, type UniversalBoxProps as e, type UniversalStackProps as f, type UniversalTextProps as g, type UniversalIconProps as h, type ColorMode as i, type ScaleMode as j, type UniversalTokensConfig as k, type BorderStyleProps as l, type SpacingStyleProps as m, type CustomSizingStyleProps as n, type IconSizeConfig as o, type BorderRadiusConfig as p, type BorderWidthConfig as q, type FontFamilyConfig as r, type FontSizeConfig as s, type FontWeightConfig as t, type LineHeightConfig as u, type TextTransformConfig as v, type FontFamilyGlobalConfig as w, type StyleProps as x, alwaysPalette as y, type AlwaysPalette as z };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yahoo/uds",
3
3
  "description": "Yahoo Universal System",
4
- "version": "0.4.2",
4
+ "version": "0.4.4",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "uds": "./cli/uds-cli"
@@ -44,36 +44,6 @@
44
44
  "default": "./dist/experimental/index.cjs"
45
45
  }
46
46
  },
47
- "./tailwindPlugin": {
48
- "import": {
49
- "types": "./dist/tailwindPlugin.d.ts",
50
- "default": "./dist/tailwindPlugin.js"
51
- },
52
- "require": {
53
- "types": "./dist/tailwindPlugin.d.cts",
54
- "default": "./dist/tailwindPlugin.cjs"
55
- }
56
- },
57
- "./tailwindPurge": {
58
- "import": {
59
- "types": "./dist/tailwindPurge.d.ts",
60
- "default": "./dist/tailwindPurge.js"
61
- },
62
- "require": {
63
- "types": "./dist/tailwindPurge.cjs",
64
- "default": "./dist/tailwindPurge.cjs"
65
- }
66
- },
67
- "./tailwindPurge/utils": {
68
- "import": {
69
- "types": "./dist/tailwindPurge/utils.d.ts",
70
- "default": "./dist/tailwindPurge/utils.js"
71
- },
72
- "require": {
73
- "types": "./dist/tailwindPurge/utils.cjs",
74
- "default": "./dist/tailwindPurge/utils.cjs"
75
- }
76
- },
77
47
  "./fixtures": {
78
48
  "import": {
79
49
  "types": "./dist/fixtures.d.ts",
@@ -91,7 +61,24 @@
91
61
  "types": "./fonts/*.d.ts",
92
62
  "require": "./fonts/*.cjs"
93
63
  },
64
+ "./package.json": "./package.json",
65
+ "./styles/*": "./dist/styles/*",
66
+ "./tailwind/*": {
67
+ "import": {
68
+ "types": "./dist/tailwind/*.d.ts",
69
+ "default": "./dist/tailwind/*.js"
70
+ },
71
+ "require": {
72
+ "types": "./dist/tailwind/*.d.cts",
73
+ "default": "./dist/tailwind/*.cjs"
74
+ }
75
+ },
94
76
  "./tokens": {
77
+ "react-native": {
78
+ "types": "./dist/tokens/index.native.d.ts",
79
+ "require": "./dist/tokens/index.native.cjs",
80
+ "default": "./dist/tokens/index.native.js"
81
+ },
95
82
  "import": {
96
83
  "types": "./dist/tokens/index.d.ts",
97
84
  "default": "./dist/tokens/index.js"
@@ -102,11 +89,6 @@
102
89
  }
103
90
  },
104
91
  "./tokens/parseTokens": {
105
- "react-native": {
106
- "types": "./dist/tokens/parseTokens.native.d.ts",
107
- "require": "./dist/tokens/parseTokens.native.cjs",
108
- "default": "./dist/tokens/parseTokens.native.js"
109
- },
110
92
  "import": {
111
93
  "types": "./dist/tokens/parseTokens.d.ts",
112
94
  "default": "./dist/tokens/parseTokens.js"
@@ -115,9 +97,7 @@
115
97
  "types": "./dist/tokens/parseTokens.d.cts",
116
98
  "default": "./dist/tokens/parseTokens.cjs"
117
99
  }
118
- },
119
- "./styles/*": "./dist/styles/*",
120
- "./package.json": "./package.json"
100
+ }
121
101
  },
122
102
  "scripts": {
123
103
  "build": "bun run ./scripts/prebuild.ts && tsup && bun run ./scripts/postbuild.ts",
@@ -1 +0,0 @@
1
- @font-face{font-family:Yahoo Icons;font-display:swap;src:url(https://s.yimg.com/bw/fonts/yahoo-icons.woff2) format("woff2")}@font-face{font-family:Yahoo Sans;font-display:swap;src:url(https://s.yimg.com/bw/fonts/yahoo-sans-vf.woff2) format("woff2")}@font-face{font-family:Yahoo Sans Cond;font-display:swap;src:url(https://s.yimg.com/bw/fonts/yahoo-sans-condensed-vf.woff2) format("woff2")}@font-face{font-family:"Yahoo Serif Display";font-weight:300;font-style:normal;font-display:swap;src:url(https://s.yimg.com/bw/fonts/yahoo-serif-display-light.woff2) format("woff2")}@font-face{font-family:"Yahoo Serif Display";font-weight:400;font-style:normal;font-display:swap;src:url(https://s.yimg.com/bw/fonts/yahoo-serif-display-regular.woff2) format("woff2")}@font-face{font-family:"Yahoo Serif Display";font-weight:700;font-style:normal;font-display:swap;src:url(https://s.yimg.com/bw/fonts/yahoo-serif-display-bold.woff2) format("woff2")}@font-face{font-family:"Yahoo Serif Display";font-weight:800;font-style:normal;font-display:swap;src:url(https://s.yimg.com/bw/fonts/yahoo-serif-display-extrabold.woff2) format("woff2")}@font-face{font-family:"Yahoo Serif Display";font-weight:900;font-style:normal;font-display:swap;src:url(https://s.yimg.com/bw/fonts/yahoo-serif-display-black.woff2) format("woff2")}@font-face{font-family:"Yahoo Serif Text";font-weight:400;font-style:normal;font-display:swap;src:url(https://s.yimg.com/bw/fonts/yahoo-serif-text-regular.woff2) format("woff2")}@font-face{font-family:"Yahoo Serif Text";font-weight:400;font-style:italic;font-display:swap;src:url(https://s.yimg.com/bw/fonts/yahoo-serif-text-italic.woff2) format("woff2")}@font-face{font-family:"Yahoo Serif Text";font-weight:700;font-style:normal;font-display:swap;src:url(https://s.yimg.com/bw/fonts/yahoo-serif-text-bold.woff2) format("woff2")}@font-face{font-family:"Yahoo Serif Text";font-weight:800;font-style:italic;font-display:swap;src:url(https://s.yimg.com/bw/fonts/yahoo-serif-text-bold-italic.woff2) format("woff2")}:root{--uds-font-icons: "Yahoo Icons", "Helvetica Neue", "Helvetica", "Arial", "sans-serif";--uds-font-sans: "Yahoo Sans", "Helvetica Neue", "Helvetica", "Arial", "sans-serif";--uds-font-sans-condensed: "Yahoo Sans Cond", "Helvetica Neue", "Helvetica", "Arial", "sans-serif";--uds-font-serif-display: "Yahoo Serif Display", "Georgia", "Times", "Times New Roman", "serif";--uds-serif-text: "Yahoo Serif Text", "Georgia", "Times", "Times New Roman", "serif";line-height:1.5;font-family:var(--uds-font-sans);font-feature-settings:normal;font-variation-settings:normal}
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1 +0,0 @@
1
- "use strict";var Ne=Object.create;var b=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Xe=Object.getOwnPropertyNames;var Ue=Object.getPrototypeOf,Ve=Object.prototype.hasOwnProperty;var Ge=(o,e)=>{for(var t in e)b(o,t,{get:e[t],enumerable:!0})},ae=(o,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Xe(e))!Ve.call(o,a)&&a!==t&&b(o,a,{get:()=>e[a],enumerable:!(r=Pe(e,a))||r.enumerable});return o};var re=(o,e,t)=>(t=o!=null?Ne(Ue(o)):{},ae(e||!o||!o.__esModule?b(t,"default",{value:o,enumerable:!0}):t,o)),Ke=o=>ae(b({},"__esModule",{value:!0}),o);var e1={};Ge(e1,{defaultTailwindThemeAsUdsConfig:()=>$e,tailwindPlugin:()=>Qe});module.exports=Ke(e1);var oe=require("@yahoo/uds/fixtures");var ie={none:0,xs:2,sm:4,md:8,lg:12,xl:24,full:9999},ne={none:0,xs:2,sm:4,md:8,lg:16,xl:32,full:9999};var se={none:0,thin:1,medium:2,thick:2},le={none:0,thin:1,medium:2,thick:4};var de={core:{brand:{hue:"purple",step:"9"},accent:{hue:"blue",step:"9"},alert:{hue:"red",step:"9"},positive:{hue:"green",step:"9"},warning:{hue:"orange",step:"9"}},background:{primary:{hue:"gray",step:"0"},secondary:{hue:"gray",step:"2"}},foreground:{primary:{hue:"gray",step:"13"},secondary:{hue:"gray",step:"12"},tertiary:{hue:"gray",step:"9"},muted:{hue:"gray",step:"8"},"on-color":{hue:"gray",step:"0"}},line:{primary:{hue:"gray",step:"12"},secondary:{hue:"gray",step:"9"},tertiary:{hue:"gray",step:"7"},muted:{hue:"gray",step:"3"}}},ce={core:{brand:{hue:"purple",step:"9"},accent:{hue:"blue",step:"9"},alert:{hue:"red",step:"9"},positive:{hue:"green",step:"9"},warning:{hue:"orange",step:"9"}},background:{primary:{hue:"gray",step:"1"},secondary:{hue:"gray",step:"3"}},foreground:{primary:{hue:"gray",step:"14"},secondary:{hue:"gray",step:"13"},tertiary:{hue:"gray",step:"9"},muted:{hue:"gray",step:"8"},"on-color":{hue:"gray",step:"0"}},line:{primary:{hue:"gray",step:"12"},secondary:{hue:"gray",step:"9"},tertiary:{hue:"gray",step:"7"},muted:{hue:"gray",step:"3"}}},B={white:"#ffffff",black:"#000000",transparent:"transparent"};var N={s:16,m:24,l:32},pe=N,P={sm:16,md:24,lg:32},ge=P;var fe={none:0,1:1,2:2,3:4,4:8,5:12,6:16,7:20,8:24,9:28,10:32,11:36,12:40,13:44,14:48},me={none:0,1:1,2:2,3:4,4:8,5:12,6:16,7:24,8:32,9:40,10:48,11:56,12:64,13:72,14:80};var ue={blue:{0:"242 250 255",1:"223 242 255",2:"202 234 255",3:"162 218 255",4:"125 203 255",5:"89 189 255",6:"18 169 255",7:"24 143 255",8:"15 105 255",9:"0 99 235",10:"0 89 222",11:"0 72 196",12:"0 55 164",13:"0 39 126",14:"0 23 83",15:"0 10 38"},purple:{0:"248 244 255",1:"235 229 255",2:"225 217 255",3:"213 207 255",4:"202 194 255",5:"176 159 252",6:"149 126 252",7:"131 103 255",8:"124 73 252",9:"126 31 255",10:"96 1 210",11:"80 21 176",12:"57 0 125",13:"43 0 103",14:"29 0 71",15:"16 0 38"},pink:{0:"255 247 252",1:"255 235 249",2:"254 216 247",3:"255 176 231",4:"255 133 211",5:"255 85 195",6:"255 54 161",7:"255 0 128",8:"230 0 115",9:"220 2 118",10:"178 6 102",11:"113 0 75",12:"85 0 58",13:"56 0 40",14:"45 0 34",15:"38 0 16"},red:{0:"255 250 250",1:"255 240 241",2:"255 231 232",3:"255 214 218",4:"255 187 192",5:"255 152 159",6:"253 106 116",7:"255 77 82",8:"238 0 23",9:"211 13 46",10:"187 0 10",11:"157 0 4",12:"127 0 0",13:"98 3 0",14:"68 4 0",15:"38 3 0"},yellow:{0:"255 253 238",1:"255 250 209",2:"255 246 161",4:"255 233 87",3:"255 242 125",5:"255 211 51",6:"229 185 23",7:"151 117 0",8:"124 90 0",9:"100 67 0",10:"88 57 0",11:"75 47 0",12:"58 34 0",13:"44 25 0",14:"32 17 0",15:"21 11 0"},green:{0:"246 255 244",1:"225 253 220",2:"202 250 197",3:"162 242 162",4:"126 228 135",5:"86 196 112",6:"48 161 89",7:"0 135 81",8:"10 122 68",9:"0 108 59",10:"4 94 52",11:"4 77 44",12:"4 59 35",13:"4 51 31",14:"4 43 27",15:"3 33 21"},teal:{0:"242 255 251",1:"224 255 248",2:"207 255 248",3:"177 255 243",4:"133 247 233",5:"78 232 220",6:"17 211 205",7:"0 160 160",8:"0 130 130",9:"0 122 122",10:"0 110 107",11:"0 89 86",12:"0 69 67",13:"0 54 53",14:"0 44 44",15:"0 38 38"},gray:{0:"255 255 255",1:"245 248 250",2:"240 243 245",3:"224 228 233",4:"199 205 210",5:"176 185 193",6:"151 158 168",7:"130 138 147",8:"110 119 128",9:"91 99 106",10:"70 78 86",11:"44 54 63",12:"35 42 49",13:"29 34 40",14:"16 21 24",15:"0 0 0"},orange:{0:"255 249 242",1:"255 239 222",2:"255 229 202",3:"249 208 167",4:"252 182 111",5:"255 158 66",6:"255 137 21",7:"226 105 0",8:"204 78 0",9:"191 73 0",10:"166 64 0",11:"145 56 0",12:"115 44 0",13:"94 37 1",14:"68 26 0",15:"38 15 0"},rose:{0:"255 247 250",1:"255 235 243",2:"255 224 239",3:"255 209 226",4:"255 193 213",5:"250 162 187",6:"233 126 157",7:"211 89 124",8:"189 57 95",9:"167 52 85",10:"144 47 75",11:"113 35 57",12:"87 27 44",13:"66 22 35",14:"50 18 27",15:"38 15 22"},sunset:{0:"255 240 238",1:"251 221 218",2:"247 203 199",3:"234 170 163",4:"221 140 130",5:"209 113 99",6:"196 89 71",7:"184 68 46",8:"171 51 24",9:"158 44 18",10:"145 38 12",11:"124 26 1",12:"102 22 0",13:"81 18 0",14:"60 13 0",15:"38 8 0"},brown:{0:"255 253 250",1:"255 246 224",2:"255 236 209",3:"251 221 191",4:"237 199 159",5:"217 170 118",6:"185 136 79",7:"151 104 47",8:"134 90 35",9:"117 76 25",10:"91 56 11",11:"71 42 4",12:"55 33 1",13:"45 27 0",14:"38 23 0",15:"26 16 0"},citron:{0:"253 255 230",1:"249 253 193",2:"245 252 158",3:"235 244 87",4:"222 231 23",5:"205 212 0",6:"184 188 0",7:"158 159 0",8:"122 122 0",9:"115 113 0",10:"101 99 0",11:"78 76 0",12:"61 58 0",13:"49 46 0",14:"42 39 0",15:"38 35 0"},lime:{0:"249 255 245",1:"237 255 224",2:"230 255 209",3:"217 250 190",4:"202 239 168",5:"172 222 122",6:"137 199 70",7:"101 169 21",8:"75 133 0",9:"70 122 0",10:"62 107 0",11:"50 83 0",12:"40 65 0",13:"33 51 0",14:"28 43 0",15:"26 38 0"},mint:{0:"245 255 249",1:"231 252 240",2:"218 248 232",3:"201 239 219",4:"174 224 199",5:"133 203 172",6:"88 179 142",7:"45 151 113",8:"12 122 88",9:"1 109 78",10:"1 96 71",11:"0 74 57",12:"0 58 46",13:"0 47 38",14:"0 41 33",15:"0 28 23"},cyan:{0:"245 255 255",1:"223 255 255",2:"201 255 255",3:"161 245 251",4:"121 229 240",5:"85 205 223",6:"54 177 201",7:"29 146 174",8:"20 114 142",9:"19 100 126",10:"17 86 111",11:"13 64 86",12:"10 48 67",13:"9 37 53",14:"8 29 44",15:"4 18 28"},indigo:{0:"242 244 255",1:"226 230 255",2:"209 213 255",3:"184 188 255",4:"156 160 255",5:"130 130 255",6:"109 110 255",7:"93 94 255",8:"64 64 227",9:"32 21 194",10:"26 13 171",11:"22 9 144",12:"18 5 118",13:"15 3 91",14:"11 1 65",15:"6 0 38"},magenta:{0:"244 235 255",1:"236 217 251",2:"229 199 247",3:"223 182 243",4:"220 166 240",5:"212 136 227",6:"207 109 214",7:"201 84 199",8:"188 61 177",9:"164 46 151",10:"140 32 126",11:"116 22 103",12:"92 13 81",13:"68 6 60",14:"44 2 39",15:"20 0 18"},nude:{0:"255 245 245",1:"251 222 221",2:"248 203 196",3:"235 185 172",4:"222 169 149",5:"202 155 136",6:"182 139 122",7:"162 122 106",8:"142 104 89",9:"131 93 80",10:"120 83 71",11:"100 61 48",12:"80 34 19",13:"60 14 0",14:"40 9 0",15:"20 4 0"},carbon:{0:"255 255 255",1:"252 251 251",2:"245 245 245",3:"227 227 227",4:"205 205 205",5:"176 176 176",6:"142 142 142",7:"106 106 106",8:"90 90 90",9:"68 68 68",10:"50 50 50",11:"41 41 41",12:"31 31 31",13:"20 20 20",14:"10 10 10",15:"0 0 0"}},ye={blue:{0:"0 10 38",1:"0 14 57",2:"0 19 75",3:"0 29 102",4:"0 44 129",5:"0 63 156",6:"0 87 183",7:"0 116 210",8:"17 148 236",9:"18 169 255",10:"99 192 255",11:"125 203 255",12:"150 210 250",13:"182 224 252",14:"213 237 252",15:"240 247 252"},purple:{0:"25 0 38",1:"34 0 57",2:"42 0 75",3:"51 0 102",4:"57 0 125",5:"80 21 176",6:"96 1 210",7:"108 36 242",8:"119 89 255",9:"144 124 255",10:"165 149 248",11:"187 174 249",12:"209 201 251",13:"225 219 252",14:"235 232 254",15:"248 244 255"},pink:{0:"38 0 19",1:"48 0 23",2:"58 0 27",3:"75 0 34",4:"96 0 43",5:"123 0 54",6:"157 0 67",7:"194 0 81",8:"233 0 107",9:"255 0 128",10:"255 54 161",11:"255 101 186",12:"255 150 211",13:"255 186 228",14:"255 212 240",15:"255 229 247"},red:{0:"38 3 0",1:"57 3 0",2:"75 3 0",3:"102 1 0",4:"129 5 0",5:"156 15 12",6:"183 28 27",7:"210 46 47",8:"232 58 62",9:"255 77 82",10:"255 105 109",11:"255 135 141",12:"255 155 161",13:"255 183 188",14:"254 210 214",15:"255 240 241"},yellow:{0:"38 35 0",1:"48 42 0",2:"58 49 0",4:"96 73 0",3:"75 60 0",5:"123 91 0",6:"157 112 0",7:"194 136 0",8:"233 171 0",9:"255 204 0",10:"255 220 79",11:"255 232 102",12:"255 243 138",13:"255 249 163",14:"255 251 197",15:"255 253 238"},green:{0:"7 33 23",1:"7 43 29",2:"8 48 32",3:"8 55 36",4:"11 70 44",5:"14 91 55",6:"18 118 68",7:"23 149 83",8:"29 181 97",9:"26 197 103",10:"55 219 115",11:"91 235 126",12:"128 242 143",13:"169 251 169",14:"213 255 208",15:"247 255 245"},teal:{0:"0 35 38",1:"0 40 43",2:"0 45 49",3:"0 56 60",4:"0 73 76",5:"0 97 99",6:"0 126 127",7:"1 160 159",8:"15 194 190",9:"17 211 205",10:"52 227 222",11:"99 237 231",12:"145 249 243",13:"185 255 251",14:"216 255 252",15:"242 255 254"},gray:{0:"0 0 0",1:"16 21 24",2:"29 34 40",3:"35 42 49",4:"44 54 63",5:"70 78 86",6:"91 99 106",7:"110 119 128",8:"130 138 147",9:"151 158 168",10:"176 185 193",11:"199 205 210",12:"224 228 233",13:"240 243 245",14:"245 248 250",15:"255 255 255"},carbon:{0:"0 0 0",1:"10 10 10",2:"20 20 20",3:"31 31 31",4:"41 41 41",5:"50 50 50",6:"68 68 68",7:"90 90 90",8:"117 117 117",9:"142 142 142",10:"176 176 176",11:"205 205 205",12:"227 227 227",13:"245 245 245",14:"252 251 251",15:"255 255 255"},orange:{0:"38 15 0",1:"46 17 0",2:"54 19 0",3:"67 23 0",4:"86 28 0",5:"111 34 0",6:"142 41 0",7:"177 54 0",8:"229 80 0",9:"253 97 0",10:"255 123 41",11:"255 145 77",12:"255 161 102",13:"255 192 153",14:"255 224 204",15:"255 246 240"},rose:{0:"28 4 11",1:"38 5 15",2:"50 18 27",3:"66 22 35",4:"87 27 44",5:"113 35 57",6:"158 49 80",7:"191 58 96",8:"214 87 124",9:"221 108 141",10:"228 131 159",11:"245 164 188",12:"255 193 211",13:"255 214 226",14:"255 233 240",15:"255 251 252"},sunset:{0:"38 8 0",1:"54 11 0",2:"69 15 0",3:"100 20 0",4:"130 26 0",5:"156 40 12",6:"178 58 31",7:"197 79 53",8:"213 101 78",9:"219 112 90",10:"225 124 104",11:"235 147 131",12:"243 171 158",13:"249 194 185",14:"253 218 212",15:"255 241 238"},brown:{0:"38 23 0",1:"52 31 1",2:"66 40 2",3:"95 58 5",4:"123 75 10",5:"148 92 19",6:"168 108 31",7:"186 123 46",8:"200 138 66",9:"209 150 80",10:"219 165 103",11:"224 176 122",12:"229 190 148",13:"239 210 180",14:"248 230 212",15:"255 249 242"},citron:{0:"38 35 0",1:"42 39 0",2:"49 46 0",3:"61 58 0",4:"78 76 0",5:"101 99 0",6:"128 125 0",7:"153 153 0",8:"184 188 0",9:"205 212 0",10:"222 231 23",11:"235 244 87",12:"237 243 116",13:"243 249 158",14:"249 253 193",15:"254 255 238"},lime:{0:"20 38 0",1:"34 51 0",2:"41 63 0",3:"53 83 0",4:"65 104 2",5:"79 125 11",6:"94 145 24",7:"110 166 40",8:"127 187 60",9:"137 199 70",10:"151 209 90",11:"168 224 121",12:"184 237 148",13:"209 247 186",14:"226 255 211",15:"244 255 240"},mint:{0:"0 31 25",1:"0 41 34",2:"0 49 41",3:"0 62 52",4:"0 81 64",5:"0 106 77",6:"29 130 89",7:"33 150 104",8:"39 171 116",9:"72 194 129",10:"106 212 153",11:"149 222 182",12:"181 232 204",13:"209 244 224",14:"227 252 237",15:"242 255 248"},cyan:{0:"0 22 38",1:"0 32 54",2:"1 42 69",3:"3 65 100",4:"8 89 130",5:"15 114 156",6:"26 138 178",7:"41 161 197",8:"60 182 213",9:"72 192 219",10:"100 210 232",11:"124 227 242",12:"145 239 250",13:"179 244 249",14:"212 251 253",15:"242 255 255"},indigo:{0:"8 2 38",1:"13 4 65",2:"17 5 91",3:"20 7 117",4:"22 9 144",5:"26 13 171",6:"39 32 187",7:"60 63 219",8:"93 94 255",9:"112 117 242",10:"135 146 242",11:"163 175 251",12:"189 198 255",13:"211 214 255",14:"232 233 255",15:"252 253 255"},magenta:{0:"46 5 44",1:"63 6 58",2:"80 8 72",3:"96 11 86",4:"113 13 99",5:"138 23 122",6:"163 38 148",7:"188 61 177",8:"195 87 196",9:"194 116 205",10:"198 145 213",11:"206 172 222",13:"228 215 238",14:"239 231 247",15:"249 244 255",12:"217 195 230"},nude:{0:"20 0 0",1:"33 0 0",2:"46 0 0",3:"67 0 0",4:"89 20 18",5:"110 46 42",6:"132 73 66",7:"154 99 90",8:"175 124 112",9:"188 136 121",10:"200 147 131",11:"222 169 149",12:"230 189 170",13:"239 208 191",14:"247 224 210",15:"255 240 229"}};var v=["Helvetica Neue","Helvetica","Arial","sans-serif"],xe=["Georgia","Times","Times New Roman","serif"],Se={icons:{fallbacks:v,name:"yahoo-icons"},sans:{fallbacks:v,name:"yahoo-sans"},"sans-beta":{fallbacks:v,name:"yahoo-sans-beta"},"sans-condensed":{fallbacks:v,name:"yahoo-sans-condensed"},"serif-text":{fallbacks:xe,name:"yahoo-serif-text"},"serif-display":{fallbacks:xe,name:"yahoo-serif-display"}},X={display1:"sans",display2:"sans",display3:"sans",title1:"sans",title2:"sans",title3:"sans",title4:"sans",headline1:"sans",body1:"sans",label1:"sans",label2:"sans",caption1:"sans",caption2:"sans",legal1:"sans"},U={thin:"100",extralight:"200",light:"300",regular:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},V={display1:"black",display2:"extrabold",display3:"extrabold",title1:"bold",title2:"bold",title3:"bold",title4:"bold",headline1:"semibold",body1:"regular",label1:"semibold",label2:"regular",caption1:"semibold",caption2:"regular",legal1:"semibold"},G={display1:"uppercase",display2:"none",display3:"none",title1:"none",title2:"none",title3:"none",title4:"none",headline1:"none",body1:"none",label1:"none",label2:"none",caption1:"none",caption2:"none",legal1:"none"},K={fontSize:{display1:46,display2:37,display3:33,title1:29,title2:25,title3:21,title4:17,headline1:13,body1:13,label1:12,label2:12,caption1:11,caption2:11,legal1:10},lineHeight:{display1:44,display2:44,display3:44,title1:36,title2:32,title3:28,title4:24,headline1:16,body1:16,label1:16,label2:16,caption1:16,caption2:16,legal1:12}},Z={fontSize:{display1:46,display2:38,display3:34,title1:30,title2:26,title3:22,title4:18,headline1:14,body1:14,label1:13,label2:13,caption1:12,caption2:12,legal1:11},lineHeight:{...K.lineHeight,title1:40,headline1:20,body1:20,legal1:16}},A={fontSize:{display1:47,display2:39,display3:35,title1:31,title2:27,title3:23,title4:19,headline1:15,body1:15,label1:13,label2:13,caption1:12,caption2:12,legal1:11},lineHeight:{...Z.lineHeight,title2:36,title3:32}},j={fontSize:{...A.fontSize,display1:48,display2:40,display3:36,title1:32,title2:28,title3:24,title4:20,headline1:16,body1:16,label1:14,label2:14},lineHeight:{...A.lineHeight,title2:36,title3:32,headline1:20,body1:20,label1:20,label2:20}},Y={fontSize:{display1:50,display2:42,display3:38,title1:34,title2:30,title3:26,title4:22,headline1:18,body1:16,label1:16,label2:16,caption1:14,caption2:14,legal1:13},lineHeight:{...j.lineHeight,title1:44,headline1:24,body1:24,caption1:20,caption2:20}},q={fontSize:{display1:52,display2:44,display3:40,title1:36,title2:32,title3:28,title4:26,headline1:20,body1:20,label1:18,label2:18,caption1:16,caption2:16,legal1:15},lineHeight:{...Y.lineHeight,title2:40,title3:36,headline1:28,body1:28,label1:24,label2:24,legal1:20}},_e={fontSize:{display1:54,display2:46,display3:42,title1:38,title2:34,title3:30,title4:28,headline1:22,body1:22,label1:20,label2:20,caption1:18,caption2:18,legal1:17},lineHeight:{...q.lineHeight,title1:48,title2:44,title4:32,label1:28,label2:28,caption1:24,caption2:24}};var J={fontFamily:X,fontWeight:V,textTransform:G,avatarSizes:N,iconSizes:P,borderRadius:ie,borderWidth:se,spacing:fe},F={fontFamily:X,fontWeight:V,textTransform:G,avatarSizes:pe,iconSizes:ge,borderRadius:ne,borderWidth:le,spacing:me},p={colorMode:{light:{palette:de,spectrum:ue},dark:{palette:ce,spectrum:ye}},scaleMode:{xSmall:{...J,...K},small:{...J,...Z},medium:{...J,...A},large:{...F,...j},xLarge:{...F,...Y},xxLarge:{...F,...q},xxxLarge:{...F,..._e}},fontFamily:Se};var n="uds",Q=`${n}-spectrum-color`,L=`${n}-font`,he=`${n}-icon-size`,Te=`${n}-avatar-size`,w=`${n}-border-radius`,O=`${n}-border-width`,Re=`${n}-spacing`,z=`${n}-font-size`,W=`${n}-line-height`,Ee=`${n}-font-weight`,Ce=`${n}-text-transform`,k=`${n}-color-mode-dark`,Me=`${n}-color-mode-light`,be=`${n}-scale-mode-xsmall`,ve=`${n}-scale-mode-small`,Ae=`${n}-scale-mode-medium`,Fe=`${n}-scale-mode-large`,Le=`${n}-scale-mode-xlarge`,we=`${n}-scale-mode-xxlarge`,Oe=`${n}-scale-mode-xxxlarge`;var x1=`--${n}-font-icons`,S1=`--${n}-font-sans`,_1=`--${n}-font-sans-beta`,h1=`--${n}-font-sans-condensed`,T1=`--${n}-font-serif-display`,R1=`--${n}-font-serif-text`;var ze="light",u="large";function f(o){return Object.entries(o)}function I(o){return Object.fromEntries(o)}function l(o,e){return Object.keys(o).reduce((t,r,a)=>(t[r]=e(o[r],r,a),t),{})}function We(o){let{palette:e,spectrum:t}=o,r={},a={spectrum:{},palette:{}};for(let[s,i]of f(t))for(let[d,g]of f(i)){let x=`${s}-${d}`,c=`--${Q}-${x}`;a.spectrum[s]||(a.spectrum[s]={}),a.spectrum[s][d]=`rgb(var(${c}))`,r[c]=g}return f(e).forEach(([s,i])=>{for(let[d,{hue:g,step:x,opacity:c}]of Object.entries(i)){s in a.palette||(a.palette[s]={});let C=`--${n}-${s}-color-${d}`;r[C]=`var(--${Q}-${g}-${x})`,a.palette[s][d]=c?`rgb(var(${C}) / ${c})`:`rgb(var(${C}))`}}),{_vars:r,_raw:o,tailwindConfig:a}}function Ze(o){let e={},t={};for(let[r,a="regular"]of f(o)){let s=`--${Ee}-${r}`,i=U[a];e[s]=i,t[r]=`var(${s})`}return{_vars:e,_raw:o,tailwindConfig:{...U,...t}}}function ke(o,e,t){let r={},a={};for(let[s,i]of f(e)){let d=`--${o}-${s}`,g=t?t(i):i;r[d]=g,a[s]=`var(${d})`}return{_vars:r,_raw:e,tailwindConfig:a}}function T(o,e){if(!e)return{_vars:{},_raw:{},tailwindConfig:{}};let t={},r={};for(let[a,s]of f(e)){let i=`--${o}-${a}`,d=`${s}px`;t[i]=d,r[a]=`var(${i})`}return{_vars:t,_raw:e,tailwindConfig:r}}function je(o){return l(o,(e,t)=>{let{fallbacks:r=[]}=e??{};return[`var(--${L}-${t})`,...r]})}function ee(o){let{colorMode:e,scaleMode:t,fontFamily:r}=o;return{...o,colorMode:{light:We(e.light),dark:We(e.dark)},scaleMode:l(t,({borderRadius:a,borderWidth:s,spacing:i,fontSize:d,lineHeight:g,fontFamily:x,fontWeight:c,textTransform:C,avatarSizes:$,iconSizes:D})=>({fontFamily:ke(L,x,H=>`var(--${L}-${H})`),fontSize:T(z,d),fontWeight:Ze(c),lineHeight:T(W,g),textTransform:ke(Ce,C),borderRadius:T(w,a),borderWidth:T(O,s),spacing:T(Re,i),avatarSizes:T(Te,$),iconSizes:T(he,D)})),fontFamily:je(r)}}var De=re(require("tailwindcss/plugin"),1);var y=require("@yahoo/uds/fixtures");var _=re(require("tailwindcss/defaultTheme"),1),Ie={display1:"6xl",display2:"5xl",display3:"4xl",title1:"3xl",title2:"2xl",title3:"xl",title4:"lg",headline1:"base",body1:"base",label1:"sm",label2:"sm",caption1:"xs",caption2:"xs"},Ye={none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",14:"14"},qe={xs:"sm",sm:"DEFAULT",md:"md",lg:"lg",xl:"xl"},Je={thin:"DEFAULT",medium:"2",thick:"4"},m={fontSize:Ie,lineHeight:Ie,spacing:Ye,borderRadius:qe,borderWidth:Je};function R(o){return o.endsWith("rem")?parseFloat(o)*16:parseFloat(o)}var M={...p.scaleMode[u],fontSize:{...p.scaleMode[u].fontSize,...l(m.fontSize,o=>R(_.default.fontSize[o][0]))},lineHeight:{...p.scaleMode[u].fontSize,...l(m.lineHeight,o=>R(_.default.fontSize[o][1].lineHeight)),display1:R(_.default.fontSize[m.fontSize.display1][0]),display2:R(_.default.fontSize[m.fontSize.display2][0])},fontWeight:l(p.scaleMode[u].fontWeight,()=>"regular"),spacing:{...p.scaleMode[u].spacing,...l(m.spacing,o=>R(_.default.spacing[o]))},borderRadius:{...p.scaleMode[u].borderRadius,...l(m.borderRadius,o=>R(_.default.borderRadius[o]))},borderWidth:{...p.scaleMode[u].borderWidth,...l(m.borderWidth,o=>R(_.default.borderWidth[o]))}};function E(o){return{...p.scaleMode[o],fontWeight:M.fontWeight,fontSize:l(M.fontSize,(e,t)=>e+y.fontSizeRamp[o][t]),lineHeight:l(M.lineHeight,(e,t)=>e+y.lineHeightRamp[o][t]),spacing:l(M.spacing,(e,t)=>e+y.spacingRamp[o][t]),borderRadius:l(M.borderRadius,(e,t)=>e+y.borderRadiusRamp[o][t]),borderWidth:l(M.borderWidth,(e,t)=>e+y.borderWidthRamp[o][t])}}var $e={...p,scaleMode:{xSmall:E("xSmall"),small:E("small"),medium:E("medium"),large:E("large"),xLarge:E("xLarge"),xxLarge:E("xxLarge"),xxxLarge:E("xxxLarge")}};var Qe=De.default.withOptions(function({config:o=p}){let e=ee(o),t=e.colorMode.light._vars,r={...e.scaleMode.large.borderRadius._vars,...e.scaleMode.large.borderWidth._vars,...e.scaleMode.large.avatarSizes._vars,...e.scaleMode.large.iconSizes._vars,...e.scaleMode.large.spacing._vars,...e.scaleMode.large.fontFamily._vars,...e.scaleMode.large.fontSize._vars,...e.scaleMode.large.fontWeight._vars,...e.scaleMode.large.lineHeight._vars,...e.scaleMode.large.textTransform._vars};return function({addBase:a,matchUtilities:s}){a({":root":{...t,...r},[`.${Me}`]:t,[`.${Fe}`]:r,[`.${k}`]:{...e.colorMode.dark._vars},[`.${be}`]:{...e.scaleMode.xSmall.borderRadius._vars,...e.scaleMode.xSmall.borderWidth._vars,...e.scaleMode.xSmall.avatarSizes._vars,...e.scaleMode.xSmall.iconSizes._vars,...e.scaleMode.xSmall.spacing._vars,...e.scaleMode.xSmall.fontFamily._vars,...e.scaleMode.xSmall.fontSize._vars,...e.scaleMode.xSmall.fontWeight._vars,...e.scaleMode.xSmall.lineHeight._vars,...e.scaleMode.xSmall.textTransform._vars},[`.${ve}`]:{...e.scaleMode.small.borderRadius._vars,...e.scaleMode.small.borderWidth._vars,...e.scaleMode.small.avatarSizes._vars,...e.scaleMode.small.iconSizes._vars,...e.scaleMode.small.spacing._vars,...e.scaleMode.small.fontFamily._vars,...e.scaleMode.small.fontSize._vars,...e.scaleMode.small.fontWeight._vars,...e.scaleMode.small.lineHeight._vars,...e.scaleMode.small.textTransform._vars},[`.${Ae}`]:{...e.scaleMode.medium.borderRadius._vars,...e.scaleMode.medium.borderWidth._vars,...e.scaleMode.medium.avatarSizes._vars,...e.scaleMode.medium.iconSizes._vars,...e.scaleMode.medium.spacing._vars,...e.scaleMode.medium.fontFamily._vars,...e.scaleMode.medium.fontSize._vars,...e.scaleMode.medium.fontWeight._vars,...e.scaleMode.medium.lineHeight._vars,...e.scaleMode.medium.textTransform._vars},[`.${Le}`]:{...e.scaleMode.xLarge.borderRadius._vars,...e.scaleMode.xLarge.borderWidth._vars,...e.scaleMode.xLarge.avatarSizes._vars,...e.scaleMode.xLarge.iconSizes._vars,...e.scaleMode.xLarge.spacing._vars,...e.scaleMode.xLarge.fontFamily._vars,...e.scaleMode.xLarge.fontSize._vars,...e.scaleMode.xLarge.fontWeight._vars,...e.scaleMode.xLarge.lineHeight._vars,...e.scaleMode.xLarge.textTransform._vars},[`.${we}`]:{...e.scaleMode.xxLarge.borderRadius._vars,...e.scaleMode.xxLarge.borderWidth._vars,...e.scaleMode.xxLarge.avatarSizes._vars,...e.scaleMode.xxLarge.iconSizes._vars,...e.scaleMode.xxLarge.spacing._vars,...e.scaleMode.xxLarge.fontFamily._vars,...e.scaleMode.xxLarge.fontSize._vars,...e.scaleMode.xxLarge.fontWeight._vars,...e.scaleMode.xxLarge.lineHeight._vars,...e.scaleMode.xxLarge.textTransform._vars},[`.${Oe}`]:{...e.scaleMode.xxxLarge.borderRadius._vars,...e.scaleMode.xxxLarge.borderWidth._vars,...e.scaleMode.xxxLarge.avatarSizes._vars,...e.scaleMode.xxxLarge.iconSizes._vars,...e.scaleMode.xxxLarge.spacing._vars,...e.scaleMode.xxxLarge.fontFamily._vars,...e.scaleMode.xxxLarge.fontSize._vars,...e.scaleMode.xxxLarge.fontWeight._vars,...e.scaleMode.xxxLarge.lineHeight._vars,...e.scaleMode.xxxLarge.textTransform._vars}}),s({iconSize:i=>({width:i,height:i,fontSize:i,lineHeight:i})},{values:e.scaleMode.large.iconSizes.tailwindConfig}),s({avatarSize:i=>({width:i,height:i})},{values:e.scaleMode.large.avatarSizes.tailwindConfig}),s({case:i=>({"text-transform":i})},{values:e.scaleMode.large.textTransform.tailwindConfig}),s({"font-weight":i=>({"font-weight":i})},{values:e.scaleMode.large.fontWeight.tailwindConfig}),s({"font-size":i=>({"font-size":i})},{values:e.scaleMode.large.fontSize.tailwindConfig})}},function({config:o=p,safelist:e=[]}){let t=ee(o),r=t.colorMode[ze].tailwindConfig,a=t.scaleMode[u],s=l(r.spectrum,(S,h)=>({...S,...oe.tailwindColorsAsUds[h]})),i=r.palette.core,d={...oe.tailwindColorsAsUds,...s,...B,...i},g=r.palette.foreground,x=r.palette.background,c=r.palette.line,$=I(f(m.fontSize).map(([S,h])=>[h,[`var(--${z}-${S})`,{lineHeight:`var(--${W}-${S})`}]])),D=a.spacing.tailwindConfig,H=I(f(m.borderRadius).map(([S,h])=>[h,`var(--${w}-${S})`])),He={...a.borderRadius.tailwindConfig,...H},Be=I(f(m.borderWidth).map(([S,h])=>[h,`var(--${O}-${S})`])),te={...a.borderWidth.tailwindConfig,...Be};return{darkMode:["class",k],safelist:[k,...e],theme:{extend:{aria:{checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',invalid:'aria-invalid="true"'},data:{active:'active="true"',"active-item":'active-item="true"',autofill:'autofill="true"',backdrop:'backdrop="true"',enter:'enter="true"',leave:'leave="true"',"focus-visible":'focus-visible="true"'},animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"},borderRadius:He,borderWidth:te,outlineWidth:te,fontFamily:{...t.fontFamily,...a.fontFamily.tailwindConfig},fontSize:$,lineHeight:a.lineHeight.tailwindConfig,spacing:D,colors:d,backgroundColor:x,textColor:g,borderColor:c,fill:x,caretColor:g,placeholderColor:g,textDecorationColor:g,divideColor:c,outlineColor:c,ringColor:c,ringOffsetColor:c,stroke:c}}}});0&&(module.exports={defaultTailwindThemeAsUdsConfig,tailwindPlugin});