@yahoo/uds 3.35.1 → 3.36.0-beta.2

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 (43) hide show
  1. package/cli/FullWidthClassToProp.mock.tsx +17 -0
  2. package/dist/chunk-B5DVYOHR.js +2 -0
  3. package/dist/chunk-PZY3L2VB.cjs +1 -0
  4. package/dist/experimental/client/SwitchV2.cjs +0 -1
  5. package/dist/metafile-cjs.json +1 -1
  6. package/dist/metafile-esm.json +1 -1
  7. package/dist/tailwind/plugin.cjs +1 -1
  8. package/dist/tailwind/plugin.js +2 -2
  9. package/dist/tailwind/purger.cjs +1 -1
  10. package/dist/tailwind/purger.js +2 -2
  11. package/dist/tailwind/utils.cjs +1 -1
  12. package/dist/tailwind/utils.d.cts +6 -8
  13. package/dist/tailwind/utils.d.ts +6 -8
  14. package/dist/tailwind/utils.js +1 -1
  15. package/package.json +1 -1
  16. package/dist/Box-B5-iomov.d.ts +0 -34
  17. package/dist/Box-DiAlMwFs.d.cts +0 -34
  18. package/dist/Input-C2JHbAnz.d.cts +0 -54
  19. package/dist/Input-Drdk_VTx.d.ts +0 -54
  20. package/dist/Pressable-BtsR3Qz0.d.cts +0 -44
  21. package/dist/Pressable-DvTJyjgZ.d.ts +0 -44
  22. package/dist/VStack-mmwkcypy.d.cts +0 -83
  23. package/dist/VStack-r7oAc-8J.d.ts +0 -83
  24. package/dist/chunk-3ATZCWGK.js +0 -1
  25. package/dist/chunk-5NN6ZF5W.js +0 -2
  26. package/dist/chunk-CVTO6YUZ.cjs +0 -1
  27. package/dist/chunk-DT44WONZ.js +0 -2
  28. package/dist/chunk-EI6CRZHC.cjs +0 -1
  29. package/dist/chunk-ES6CXMIM.cjs +0 -1
  30. package/dist/chunk-FN67NTU3.cjs +0 -1
  31. package/dist/chunk-FOQIWA4A.js +0 -1
  32. package/dist/chunk-JR2PCA2X.cjs +0 -2
  33. package/dist/chunk-JVVDKBCK.js +0 -3
  34. package/dist/chunk-KEH2EHXC.js +0 -1
  35. package/dist/chunk-MIIME2GR.cjs +0 -1
  36. package/dist/chunk-NND2VG42.cjs +0 -3
  37. package/dist/chunk-R2KJRUSH.js +0 -2
  38. package/dist/chunk-TTJYIJLH.cjs +0 -1
  39. package/dist/chunk-ZQWXDXPQ.js +0 -1
  40. package/dist/index-BiFYC5eM.d.ts +0 -245
  41. package/dist/index-CISBacKa.d.cts +0 -245
  42. package/dist/types-BRmrSr-u.d.cts +0 -10585
  43. package/dist/types-BRmrSr-u.d.ts +0 -10585
@@ -1,2 +0,0 @@
1
- "use strict";var r=require("./chunk-NND2VG42.cjs"),e=require("react"),t=require("react/jsx-runtime"),l=r.createSlot(),a=e.forwardRef(function({className:e,asChild:a,onPress:n,onClick:s=n,backgroundColor:o,borderRadius:i,borderTopStartRadius:h,borderTopEndRadius:c,borderBottomStartRadius:d,borderBottomEndRadius:m,borderColor:u,borderStartColor:x,borderEndColor:f,borderTopColor:j,borderBottomColor:g,borderWidth:p,borderVerticalWidth:v,borderHorizontalWidth:z,borderStartWidth:C,borderEndWidth:M,borderTopWidth:F,borderBottomWidth:H,alignContent:b,alignItems:V,alignSelf:S,flex:w,flexDirection:L,flexGrow:A,flexShrink:B,flexWrap:W,justifyContent:E,flexBasis:T,display:_,overflow:R,overflowX:P,overflowY:I,position:k,spacing:G,spacingHorizontal:y,spacingVertical:N,spacingBottom:q,spacingEnd:D,spacingStart:X,spacingTop:Y,offset:J,offsetVertical:K,offsetHorizontal:O,offsetBottom:Q,offsetEnd:U,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:er,dropShadow:tr,insetShadow:lr,...ar},nr){const sr=r.getStyles({backgroundColor:o,borderRadius:i,borderTopStartRadius:h,borderTopEndRadius:c,borderBottomStartRadius:d,borderBottomEndRadius:m,borderColor:u,borderStartColor:x,borderEndColor:f,borderTopColor:j,borderBottomColor:g,borderWidth:p,borderVerticalWidth:v,borderHorizontalWidth:z,borderStartWidth:C,borderEndWidth:M,borderTopWidth:F,borderBottomWidth:H,alignContent:b,alignItems:V,alignSelf:S,flex:w,flexDirection:L,flexGrow:A,flexShrink:B,flexWrap:W,justifyContent:E,flexBasis:T,display:_,overflow:R,overflowX:P,overflowY:I,position:k,spacing:G,spacingHorizontal:y,spacingVertical:N,spacingBottom:q,spacingEnd:D,spacingStart:X,spacingTop:Y,offset:J,offsetVertical:K,offsetHorizontal:O,offsetBottom:Q,offsetEnd:U,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:er,dropShadow:tr,insetShadow:lr,className:e}),or=a?l:"button";return t.jsx(or,{className:sr,ref:nr,onClick:s,tabIndex:0,...ar})}),n=({size:r,variant:e})=>{if("outline"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsxs("g",{fill:"currentColor",clipPath:"url(#Building-outline-12_svg__a)",children:[t.jsx("path",{d:"M4.875 8.125h-1.5v-1.5h1.5zm0-2.625h-1.5V4h1.5z"}),t.jsx("path",{d:"m7.5 2.643 3.75 1.31v7.297H.75V.75H7.5zM1.95 10.05H6.3v-8.1H1.95zm5.625 0h2.475V4.805l-2.475-.866z"})]})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M8.4 2.6H2.6v10.8H4V11h3v2.4h1.4zM1 15V1h9v2.524l5 1.746V15zm9.1-9.746V13.4h3.3V6.406zM4.5 4h2v2h-2zm2 3.5h-2v2h2z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M13.367 4.752H4.3v14.495h2.724v-4.533h3.619v4.533h2.714V4.762l.01.003zM21.5 21.047h-19V2.952h12.667v2.494L21.5 7.843zm-1.8-1.8V9.087L15.167 7.37v11.876zM7.929 11.095h-1.81v1.81h1.81zm-1.81-3.619h1.81v1.81h-1.81zm5.429 0h-1.81v1.81h1.81zm-1.81 3.619h1.81v1.81h-1.81z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M17.8 4.2H4.2v23.6H8V21h6v6.8h3.8zM2 30V2h18v5.725l10 3.626V30zm18.2-19.862V27.8h7.6V12.894zM10 8H7v3h3zm-3 6h3v3H7zm5-6h3v3h-3zm3 6h-3v3h3zm7.5 1h3v3h-3zm3 6h-3v3h3z"})})}if("fill"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("g",{fill:"currentColor",clipPath:"url(#Building-fill-12_svg__a)",children:t.jsx("path",{d:"M7.5 11.25H.75V.75H7.5zM3.375 8.125h1.5v-1.5h-1.5zm0-2.625h1.5V4h-1.5zm7.875-1.547v7.297H9V3z"})})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M4.5 4v2h2V4zm2 3.5h-2v2h2zM12 4l3 1.27V15h-3zM1 1h9v14H1z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M2.5 2.952h10.857v18.095H2.5zm2.714 7.238V12h1.81v-1.81zm1.81-3.619h-1.81v1.81h1.81zm1.81 0v1.81h1.809V6.57zm1.809 3.62h-1.81V12h1.81zm-4.524 4.523v4.524h3.62v-4.524zM21.5 7.843l-6.333-3.081v16.285H21.5z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M2 2h16v28H2zm5 19v7h6v-7zM8.5 7h-3v3h3zm-3 6v3h3v-3zm9-6h-3v3h3zm-3 6v3h3v-3zM20 7l10 4.351V30H20zm3.5 8v3h3v-3z"})})}return t.jsx(t.Fragment,{})};/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */n.metadata={name:"Building",isSvgIcon:!0,variants:["outline","fill"]};var s=({size:r,variant:e})=>{if("outline"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m10.843 2.896-5.77 6.966L1.15 5.98l.845-.853 2.99 2.96L9.919 2.13z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M13.5 3.89 6.951 12 2.5 7.48l.958-.993 3.394 3.447L12.452 3z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M20.264 5.852 10.37 18.366l-6.642-6.89 1.295-1.249 5.213 5.407 8.616-10.898z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M30.19 6.341 13.677 26.276 2.803 15.509l1.688-1.706 9.012 8.922L28.341 4.81z"})})}if("fill"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M10.985 2.883 5.081 10.01 1.01 5.98l.985-.996L4.98 7.94l4.928-5.95z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M13.593 4.502 6.968 12.5 2.4 7.978 3.505 6.86l3.348 3.315 5.53-6.676z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m20.545 5.82-10.16 12.85-6.94-7.198 1.584-1.527 5.192 5.385L18.82 4.455z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M30.33 6.328 13.687 26.423 2.662 15.51l1.829-1.848 9.005 8.916 14.832-17.91z"})})}return t.jsx(t.Fragment,{})};s.metadata={name:"Check",isSvgIcon:!0,variants:["outline","fill"]};var o=({size:r,variant:e})=>{if("outline"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m9.745 3.099-2.9 2.898 2.901 2.9-.849.85-2.899-2.901-2.9 2.9-.848-.849 2.9-2.9L2.25 3.1l.848-.848L5.997 5.15l2.9-2.898z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m12.526 4.465-.99-.99L8 7.01 4.465 3.475l-.99.99L7.01 8l-3.535 3.536.99.99L8 8.99l3.536 3.536.99-.99L8.99 8z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m13.44 11.956 6.572-6.571L18.527 3.9l-6.571 6.57L5.385 3.9 3.9 5.385l6.57 6.57-6.57 6.572 1.485 1.485 6.57-6.571 6.572 6.57 1.485-1.484z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M17.702 15.934 28.818 4.818 27.05 3.05 15.934 14.166 4.818 3.05 3.05 4.818l11.116 11.116L3.05 27.05l1.768 1.768 11.116-11.116L27.05 28.818l1.768-1.768z"})})}if("fill"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m9.888 3.099-2.9 2.898 2.899 2.9-.99.99-2.9-2.9-2.898 2.9-.99-.99 2.898-2.9L2.108 3.1l.99-.99 2.9 2.898 2.9-2.898z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m9.131 8 3.536-3.536-1.131-1.131L8 6.869 4.464 3.333 3.333 4.464 6.869 8l-3.536 3.535 1.131 1.132L8 9.13l3.535 3.536 1.132-1.131z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m12 13.768 6.337 6.337 1.768-1.768L13.768 12l6.337-6.337-1.768-1.768L12 10.232 5.663 3.895 3.895 5.663 10.232 12l-6.337 6.337 1.768 1.768z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M17.91 16 28.954 4.955l-1.91-1.91L16 14.091 4.955 3.045l-1.91 1.91L14.091 16 3.045 27.045l1.91 1.91L16 17.909l11.045 11.046 1.91-1.91z"})})}return t.jsx(t.Fragment,{})};o.metadata={name:"Cross",isSvgIcon:!0,variants:["outline","fill"]};var i=({size:r,variant:e})=>{if("outline"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m10.698 6.597-9.4.001v-1.2h9.4z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M12.7 8.7H3.3V7.3h9.4z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M2.97 10.75h17.838v2.1H2.97z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M27 17H4.7v-2.3H27z"})})}if("fill"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M10.799 6.698h-9.6v-1.4h9.6z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M12.8 8.8H3.2V7.2h9.6z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M2.966 10.75h18.068v2.5H2.966z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M27.3 17.3H4.7v-2.6h22.6z"})})}return t.jsx(t.Fragment,{})};i.metadata={name:"Minus",isSvgIcon:!0,variants:["outline","fill"]};var h=({size:r,variant:e})=>{if("outline"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M6.9 3.375a.9.9 0 1 0-1.8 0 .9.9 0 0 0 1.8 0m1.35 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0m.53 4.643a2.2 2.2 0 0 0-1.104-.293H4.324a2.224 2.224 0 0 0-2.183 1.8h7.718a2.22 2.22 0 0 0-1.08-1.507M.75 9.95a3.574 3.574 0 0 1 3.574-3.574h3.352A3.574 3.574 0 0 1 11.25 9.95v.875a.05.05 0 0 1-.05.051H.8a.05.05 0 0 1-.05-.05z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M9.2 4.5a1.2 1.2 0 1 0-2.4 0 1.2 1.2 0 0 0 2.4 0m1.8 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0m.706 6.19a2.97 2.97 0 0 0-1.472-.39H5.766a2.966 2.966 0 0 0-2.912 2.4h10.292a2.97 2.97 0 0 0-1.44-2.01M1 13.267A4.766 4.766 0 0 1 5.766 8.5h4.468A4.765 4.765 0 0 1 15 13.266v1.166c0 .038-.03.068-.068.068H1.068A.07.07 0 0 1 1 14.432z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M14.25 7.95a2.25 2.25 0 1 0-4.5 0 2.25 2.25 0 0 0 4.5 0m1.8 0a4.05 4.05 0 1 1-8.1 0 4.05 4.05 0 0 1 8.1 0m.927 7.244A4.2 4.2 0 0 0 15 14.7H9a4.2 4.2 0 0 0-4.157 3.6h14.314a4.2 4.2 0 0 0-2.18-3.106M3 18.9a6 6 0 0 1 6-6h6a6 6 0 0 1 6 6v1.121a.08.08 0 0 1-.079.079H3.08a.08.08 0 0 1-.08-.08z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M19.7 10a3.7 3.7 0 1 0-7.4 0 3.7 3.7 0 0 0 7.4 0m2.3 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0m8 17.043q0-.681-.1-1.343a9.044 9.044 0 0 0-8.943-7.7h-9.914A9.04 9.04 0 0 0 2 27.043V28h28zM8.144 20.955a6.74 6.74 0 0 1 2.9-.655h9.913a6.744 6.744 0 0 1 6.608 5.4H4.435a6.74 6.74 0 0 1 3.71-4.745"})})}if("fill"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M6 5.625a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5m-3.45 1.22A3.57 3.57 0 0 0 .75 9.95v.875c0 .028.023.051.05.051h10.4a.05.05 0 0 0 .05-.05V9.95a3.574 3.574 0 0 0-3.574-3.574H4.324c-.622 0-1.233.162-1.773.47"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M8 7.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6M3.401 9.128A4.77 4.77 0 0 0 1 13.266v1.166c0 .038.03.068.068.068h13.864c.038 0 .068-.03.068-.068v-1.166A4.766 4.766 0 0 0 10.234 8.5H5.766a4.76 4.76 0 0 0-2.365.628"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M12 12a4.05 4.05 0 1 0 0-8.1 4.05 4.05 0 0 0 0 8.1m-5.824 1.606A6 6 0 0 0 3 18.9v1.121c0 .044.035.079.079.079H20.92a.08.08 0 0 0 .08-.08V18.9a6 6 0 0 0-6-6H9a6 6 0 0 0-2.824.706"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M16 16a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-8.845 2.878A9.04 9.04 0 0 0 2 27.043V28h28v-.957A9.043 9.043 0 0 0 20.957 18h-9.914a9.05 9.05 0 0 0-3.888.878"})})}return t.jsx(t.Fragment,{})};h.metadata={name:"Person",isSvgIcon:!0,variants:["outline","fill"]};var c=({size:r,variant:e})=>{if("outline"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("g",{clipPath:"url(#Progress-outline-12_svg__a)",children:t.jsx("path",{fill:"currentColor",d:"M5.924 2.025a3.9 3.9 0 1 0 3.9 3.9h1.2a5.1 5.1 0 1 1-5.1-5.1.6.6 0 1 1 0 1.2"})})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M7.9 2.7a5.2 5.2 0 1 0 5.2 5.2h1.6a6.8 6.8 0 1 1-6.8-6.8.8.8 0 1 1 0 1.6"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M12 4a8 8 0 1 0 8 8h2c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2a1 1 0 1 1 0 2"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M16.15 4.3C9.605 4.3 4.3 9.605 4.3 16.15S9.605 28 16.15 28 28 22.695 28 16.15h2.3c0 7.815-6.335 14.15-14.15 14.15S2 23.965 2 16.15 8.335 2 16.15 2a1.15 1.15 0 0 1 0 2.3"})})}if("fill"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("g",{clipPath:"url(#Progress-fill-12_svg__a)",children:t.jsx("path",{fill:"currentColor",d:"M6 2.175A3.825 3.825 0 1 0 9.823 6h1.35A5.175 5.175 0 1 1 6 .825a.675.675 0 0 1 0 1.35"})})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M8 2.9A5.1 5.1 0 1 0 13.1 8h1.8A6.9 6.9 0 1 1 8 1.1a.9.9 0 1 1 0 1.8"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M12.15 4.3A7.85 7.85 0 1 0 20 12.15h2.3c0 5.606-4.544 10.15-10.15 10.15S2 17.756 2 12.15 6.544 2 12.15 2a1.15 1.15 0 0 1 0 2.3"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M16.35 4.7C9.916 4.7 4.7 9.916 4.7 16.35S9.916 28 16.35 28 28 22.784 28 16.35h2.7c0 7.925-6.425 14.35-14.35 14.35S2 24.275 2 16.35 8.425 2 16.35 2a1.35 1.35 0 1 1 0 2.7"})})}return t.jsx(t.Fragment,{})};c.metadata={name:"Progress",isSvgIcon:!0,variants:["outline","fill"]},
2
- /*! © 2025 Yahoo, Inc. UDS v0.0.0-development */exports.Pressable=a,exports.a=o,exports.e=s,exports.e2=h,exports.o=i,exports.o2=c,exports.t=n;
@@ -1,3 +0,0 @@
1
- import{variants as o}from"./chunk-5NN6ZF5W.js";import{textVariants as r,backgroundColors as t,foregroundColors as e,spectrumColors as n,borderRadii as i,borderWidths as a,lineColors as s}from"@yahoo/uds/fixtures";import{getFeatureFlags as l}from"@yahoo/uds/flags";import d from"clsx";import f from"imurmurhash";import{extendTailwindMerge as c}from"tailwind-merge";import{forwardRef as p,memo as u,isValidElement as m,cloneElement as b,Children as h}from"react";import{jsx as g}from"react/jsx-runtime";import S from"lodash/isFunction";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
- function x(o){return"boolean"==typeof o?`${o}`:0===o?"0":o}function y(o){const r=Object.create(null),t=Object.keys(o);for(let e=0,n=t.length;e<n;e++){const n=t[e];void 0!==o[n]&&(r[n]=o[n])}return r}var C=c({extend:{theme:{borderColor:s,borderWidth:a,borderRadius:i}},override:{classGroups:{"text-color":[{text:[...e,...n]}],"bg-color":[{bg:t}],"font-family":[{font:["icons",...r]}],leading:[{leading:r}]},conflictingClassGroups:{}}}),W=(...o)=>{const r=d(o);return C(r)},w=o=>r=>{if(!o?.variants)return W(o?.base,r?.className);const{variants:t,defaultVariants:e}=o,n=Object.keys(t).map(o=>{const n=r?.[o],i=e?.[o],a=x(n)||x(i);return t[o][a]}),i={...e,...r&&y(r)},a=o?.compoundVariants?.reduce((o,{className:r,...t})=>Object.entries(t).every(([o,r])=>i[o]===r)?W(o,r):o,"");return W(o?.base,n,a,r?.className)},v=w({variants:o}),B=new Map,N=o=>{const{useGetStylesCache:r}=l();if(r){const r=function(o){const r=Object.create(null),t=Object.keys(o).sort();for(let e=0,n=t.length;e<n;e++){const n=t[e];r[n]=o[n]}return r}(y(o)),t=(new f).hash(JSON.stringify(r)).result();if(B.has(t))return B.get(t);const e=v(r);return B.set(t,e),e}return v(o)};function T(...o){return r=>o.forEach(o=>function(o,r){"function"==typeof o?o(r):null!=o&&(o.current=r)}(o,r))}function E(){const o=p((o,t)=>{const{children:n,...i}=o,a=h.toArray(n),s=a.find(e);if(s){const o=s.props.children,e=a.map(r=>r===s?h.count(o)>1?h.only(null):m(o)?o.props.children:null:r);return g(r,{...i,ref:t,children:m(o)?b(o,void 0,e):null})}return g(r,{...i,ref:t,children:n})});o.displayName="Slot";const r=p((o,r)=>{const{children:t,...e}=o;return m(t)?b(t,{...n(e,t.props),ref:r?T(r,t.ref):t.ref}):h.count(t)>1?h.only(null):null});r.displayName="SlotClone";const t=({children:o})=>o;function e(o){return m(o)&&o.type===t}function n(o,r){const t={...r};for(const e in r){const n=o[e],i=r[e];/^on[A-Z]/.test(e)?n&&i?t[e]=(...o)=>{i(...o),n(...o)}:n&&(t[e]=n):"style"===e&&(t[e]={...n,...i})}return{...o,...t}}return o}var R=E(),z=p(function({asChild:o,as:r="div",className:t,backgroundColor:e,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:a,borderBottomStartRadius:s,borderBottomEndRadius:l,borderColor:d,borderStartColor:f,borderEndColor:c,borderTopColor:p,borderBottomColor:u,borderWidth:m,borderVerticalWidth:b,borderHorizontalWidth:h,borderStartWidth:S,borderEndWidth:x,borderTopWidth:y,borderBottomWidth:C,alignContent:W,alignItems:w,alignSelf:v,flex:B,flexDirection:T,flexGrow:E,flexShrink:z,flexWrap:G,justifyContent:H,flexBasis:V,display:j="flex",overflow:k,overflowX:I,overflowY:O,position:A,spacing:D,spacingHorizontal:F,spacingVertical:X,spacingBottom:Y,spacingEnd:$,spacingStart:Z,spacingTop:J,offset:M,offsetVertical:P,offsetHorizontal:_,offsetBottom:q,offsetEnd:K,offsetStart:L,offsetTop:Q,columnGap:U,rowGap:oo,width:ro,height:to,dropShadow:eo,insetShadow:no,...io},ao){const so=N({backgroundColor:e,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:a,borderBottomStartRadius:s,borderBottomEndRadius:l,borderColor:d,borderStartColor:f,borderEndColor:c,borderTopColor:p,borderBottomColor:u,borderWidth:m,borderVerticalWidth:b,borderHorizontalWidth:h,borderStartWidth:S,borderEndWidth:x,borderTopWidth:y,borderBottomWidth:C,alignContent:W,alignItems:w,alignSelf:v,flex:B,flexDirection:T,flexGrow:E,flexShrink:z,flexWrap:G,justifyContent:H,flexBasis:V,display:j,overflow:k,overflowX:I,overflowY:O,position:A,spacing:D,spacingHorizontal:F,spacingVertical:X,spacingBottom:Y,spacingEnd:$,spacingStart:Z,spacingTop:J,offset:M,offsetVertical:P,offsetHorizontal:_,offsetBottom:q,offsetEnd:K,offsetStart:L,offsetTop:Q,columnGap:U,rowGap:oo,width:ro,height:to,dropShadow:eo,insetShadow:no,className:t});return g(o?R:r,{className:so,ref:ao,...io})});z.displayName="Box";var G=E(),H={display1:"h1",display2:"h1",display3:"h1",title1:"h1",title2:"h2",title3:"h3",title4:"h4",headline1:"h5",body1:"p",label1:"p",label2:"p",label3:"p",label4:"p",caption1:"p",caption2:"p",legal1:"p",ui1:"span",ui2:"span",ui3:"span",ui4:"span",ui5:"span",ui6:"span",inherit:"p"},V=p(function({className:o,asChild:r,color:t="primary",variant:e="body1",as:n=H[e],fontFamily:i,fontSize:a,fontWeight:s,lineHeight:l,textTransform:d,textAlign:f,backgroundColor:c,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:m,borderBottomStartRadius:b,borderBottomEndRadius:h,borderColor:S,borderStartColor:x,borderEndColor:y,borderTopColor:C,borderBottomColor:W,borderWidth:w,borderVerticalWidth:v,borderHorizontalWidth:B,borderStartWidth:T,borderEndWidth:E,borderTopWidth:R,borderBottomWidth:z,alignContent:V,alignItems:j,alignSelf:k,flex:I,flexDirection:O,flexGrow:A,flexShrink:D,flexWrap:F,justifyContent:X,flexBasis:Y,display:$,overflow:Z,overflowX:J,overflowY:M,position:P,spacing:_,spacingHorizontal:q,spacingVertical:K,spacingBottom:L,spacingEnd:Q,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:so,columnGap:lo,rowGap:fo,...co},po){const uo={...t&&"inherit"!==t?{color:t}:{},...e&&"inherit"!==e?{fontFamily:i??e,fontSize:a??e,fontWeight:s??e,lineHeight:l??e,textTransform:d??e}:{},textAlign:f},mo=N({className:o,...uo,backgroundColor:c,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:m,borderBottomStartRadius:b,borderBottomEndRadius:h,borderColor:S,borderStartColor:x,borderEndColor:y,borderTopColor:C,borderBottomColor:W,borderWidth:w,borderVerticalWidth:v,borderHorizontalWidth:B,borderStartWidth:T,borderEndWidth:E,borderTopWidth:R,borderBottomWidth:z,alignContent:V,alignItems:j,alignSelf:k,flex:I,flexDirection:O,flexGrow:A,flexShrink:D,flexWrap:F,justifyContent:X,flexBasis:Y,display:$,overflow:Z,overflowX:J,overflowY:M,position:P,spacing:_,spacingHorizontal:q,spacingVertical:K,spacingBottom:L,spacingEnd:Q,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:so,columnGap:lo,rowGap:fo});return g(r?G:n,{className:mo,ref:po,...co})});V.displayName="Text";var j={xs:12,sm:16,md:24,lg:32},k=p(function({name:o,size:r="md",variant:t="outline",color:e="primary",className:n,...i},a){const s=o.metadata?.variants??[],l=s.includes(t)?t:s[0]??"fill",d="multicolor"===l,f=N({flex:"none",color:d?void 0:e,className:W(n,!d&&"[&_path]:fill-current")}),c=j[r];return g("svg",{ref:a,xmlns:"http://www.w3.org/2000/svg",width:c,height:c,viewBox:`0 0 ${c} ${c}`,"aria-hidden":"true",focusable:"false",className:f,...i,children:g(o,{size:r,variant:l})})});k.displayName="Icon";var I=u(function({icon:o,iconProps:r,className:t,...e}){if(!o)return null;const{className:n,...i}=r||{},a=W(t,n),s=o;if(s.metadata?.isSvgIcon)return g(k,{name:s,...i,...e,className:a});if(S(o)){const t=o(r||{}),n=t?.props.className;return m(t)&&b(t,{...e,className:W(a,n)})}return m(o)&&b(o,{...i,...o.props,...e,className:W(a,o.props.className)})});I.displayName="IconSlot";
3
- /*! © 2025 Yahoo, Inc. UDS v0.0.0-development */export{z as Box,k as Icon,I as IconSlot,V as Text,E as createSlot,w as cva,W as cx,N as getStyles};
@@ -1 +0,0 @@
1
- import{VStack as e,HStack as r}from"./chunk-3ATZCWGK.js";import{cx as t,Box as i,Text as o,getStyles as a}from"./chunk-JVVDKBCK.js";import{forwardRef as n,useMemo as l}from"react";import{jsxs as s,jsx as d}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var c={horizontal:"w-full",vertical:""},m=n(function({vertical:a=!1,contentPosition:n="center",className:m,layerClassNames:h,children:f,...v},x){const p=a?"vertical":"horizontal",N=a?e:r,b=l(()=>({root:t(c[p],m,h?.root),label:t(h?.text),line:h?.line}),[m,p,h?.root,h?.text,h?.line]),u=l(()=>"vertical"===p?{borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0}:{borderLeftWidth:0,borderRightWidth:0,borderBottomWidth:0},[p]),y=()=>d(i,{flex:"1",className:b.line,style:u});return f?s(N,{flex:"1",alignItems:"center",className:b.root,ref:x,...v,children:["start"!==n&&d(y,{}),d(i,{flex:"none",children:d(o,{color:"inherit",variant:"inherit",className:b.label,children:f})}),"end"!==n&&d(y,{})]}):d(i,{display:"flex",flex:"none",className:b.root,ref:x,...v,children:d(y,{})})});m.displayName="DividerCore";var h=n(function({variant:e="primary",layerClassNames:r,...i},o){const n=l(()=>({root:t("inherit"!==e&&a({dividerVariantRoot:e}),r?.root),text:t("inherit"!==e?a({dividerVariantLabel:e}):void 0,r?.text),line:t("inherit"!==e&&a({dividerVariantLine:e}),r?.line)}),[r?.line,r?.root,r?.text,e]);return d(m,{ref:o,layerClassNames:n,...i})});h.displayName="DividerInternal";export{h as DividerInternal};
@@ -1 +0,0 @@
1
- "use strict";var e=require("./chunk-NQ7BFO3S.cjs"),t=require("./chunk-LAIVXF4G.cjs"),r=require("./chunk-J7PUOUXC.cjs"),n=require("./chunk-3AYBRPUC.cjs"),a=require("@yahoo/uds/fixtures"),o=require("lodash/isString"),s=require("tailwindcss/plugin.js");function i(e){return e&&e.__esModule?e:{default:e}}var l=i(o),d=i(s),c=e=>{throw new Error("Didn't expect to get here")};var u=(e,t,r,n)=>{const a=e.typography[t]?.[r];if(!a)throw new Error(`Missing typography data for variant "${t}" and key "${r}"`);const o="base"===n?a.base:a.breakpoints?.[n];if(!o)throw new Error(`Missing value for variant "${t}", key "${r}", and breakpoint "${n}"`);if(l.default(o))return o;switch(o.type){case"px":return o.value/16+"rem";case"unitless":return String(o.value)}return c()},f=(e,t)=>t in e.font?`var(--${n.FONT_FAMILY_PREFIX}-${t})`:t,F=(e,t)=>Object.fromEntries(a.textVariants.flatMap(r=>[[`--${n.FONT_FAMILY_PREFIX}-${r}`,f(e,u(e,r,"fontFamily",t))],[`--${n.FONT_SIZE_PREFIX}-${r}`,u(e,r,"fontSize",t)],[`--${n.FONT_WEIGHT_PREFIX}-${r}`,u(e,r,"fontWeight",t)],[`--${n.FONT_SLANT_PREFIX}-${r}`,u(e,r,"fontSlant",t)],[`--${n.FONT_WIDTH_PREFIX}-${r}`,u(e,r,"fontWidth",t)],[`--${n.LINE_HEIGHT_PREFIX}-${r}`,u(e,r,"lineHeight",t)],[`--${n.TEXT_TRANSFORM_PREFIX}-${r}`,u(e,r,"textTransform",t)]])),_=e=>Object.fromEntries(a.textVariants.map(t=>[t,`var(--${e}-${t})`])),p={fontFamily:_(n.FONT_FAMILY_PREFIX),fontWeight:_(n.FONT_WEIGHT_PREFIX),fontSlant:_(n.FONT_SLANT_PREFIX),fontWidth:_(n.FONT_WIDTH_PREFIX),fontSize:_(n.FONT_SIZE_PREFIX),lineHeight:_(n.LINE_HEIGHT_PREFIX),textTransform:_(n.TEXT_TRANSFORM_PREFIX)};function E(e,t){const r=I(e);for(const e of r)t({"@font-face":e})}var h=d.default.withOptions(function({fontIds:e}){return function({addBase:t}){E(e,t)}});function I(e){return e.flatMap(e=>{const{declarations:r,fontFamily:n}=t.FONT_DECLARATIONS_MAP[e];return r.map(e=>({fontFamily:n,fontDisplay:"swap",...e}))})}function S(e){return`"${e}"`}function g(e){return{...e.borderRadius._vars,...e.borderWidth._vars,...e.avatarSizes._vars,...e.iconSizes._vars}}exports.RESPONSIVE_TAILWIND_CONFIG_MAP=p,exports.addFontFaceDeclarations=E,exports.addFontsPlugin=h,exports.assertUnreachable=c,exports.getBaseTextStyles=e=>({":root":F(e,"base")}),exports.getColorModeStyles=function(e){return{light:{colorScheme:"light","--uds-light-mode-icon":"inline","--uds-dark-mode-icon":"none",...e.colorMode.light._vars},dark:{colorScheme:"dark","--uds-light-mode-icon":"none","--uds-dark-mode-icon":"inline",...e.colorMode.dark._vars}}},exports.getFontFaceDeclarations=I,exports.getFontStyles=function(e){return t.fromEntries(r.entries(e).map(([e,r])=>{const a=`--${n.FONT_FAMILY_PREFIX}-${e}`,o=t.FONT_DECLARATIONS_MAP[r];return[a,[o.fontFamily,...o.fallback].map(S).join(", ")]}))},exports.getMotionStyles=function(n){const o=r.entries(n).flatMap(([t,n])=>r.entries(n).flatMap(([r,n])=>a.motionSpringConfigOptions.map(a=>[e.getMotionVar({variant:t,speed:r,control:a}),`${n[a]}`])));return t.fromEntries(o)},exports.getResponsiveTextStyles=e=>{const t=(r=e.breakpoints,Object.entries(r)).sort(([,{value:e}],[,{value:t}])=>e-t);var r;return{[`.${n.TEXT_RESPONSIVE_CLASSNAME}`]:Object.fromEntries(t.map(([t,{value:r}])=>[`@media (min-width: ${r}px)`,F(e,t)])),".uds-text-base":F(e,"base"),...Object.fromEntries(t.map(([t])=>[`.uds-text-${t}`,F(e,t)]))}},exports.getScaleModeStyles=function(e){return{xSmall:g(e.scaleMode.xSmall),small:g(e.scaleMode.small),medium:g(e.scaleMode.medium),large:g(e.scaleMode.large),xLarge:g(e.scaleMode.xLarge),xxLarge:g(e.scaleMode.xxLarge),xxxLarge:g(e.scaleMode.xxxLarge)}},exports.getShadowStyles=function({config:e,shadowType:a}){const o=e.shadow[a],s=r.entries(o).map(([e])=>[`.uds-${a}-shadow-${e}`,{[`--uds-${a}-shadow`]:`var(--${n.UDS_PREFIX}-${a}-shadow-${e})`,boxShadow:`var(--${n.UDS_PREFIX}-drop-shadow, 0 0 transparent), var(--${n.UDS_PREFIX}-inset-shadow, 0 0 transparent), var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), var(--tw-shadow, 0 0 transparent)`}]);return t.fromEntries(s)};
@@ -1,3 +0,0 @@
1
- "use strict";var o=require("./chunk-FN67NTU3.cjs"),r=require("@yahoo/uds/fixtures"),e=require("@yahoo/uds/flags"),t=require("clsx"),n=require("imurmurhash"),i=require("tailwind-merge"),a=require("react"),s=require("react/jsx-runtime"),l=require("lodash/isFunction");function d(o){return o&&o.__esModule?o:{default:o}}var f=d(t),c=d(n),p=d(l);/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
- function u(o){return"boolean"==typeof o?`${o}`:0===o?"0":o}function b(o){const r=Object.create(null),e=Object.keys(o);for(let t=0,n=e.length;t<n;t++){const n=e[t];void 0!==o[n]&&(r[n]=o[n])}return r}var h=i.extendTailwindMerge({extend:{theme:{borderColor:r.lineColors,borderWidth:r.borderWidths,borderRadius:r.borderRadii}},override:{classGroups:{"text-color":[{text:[...r.foregroundColors,...r.spectrumColors]}],"bg-color":[{bg:r.backgroundColors}],"font-family":[{font:["icons",...r.textVariants]}],leading:[{leading:r.textVariants}]},conflictingClassGroups:{}}}),m=(...o)=>{const r=f.default(o);return h(r)},g=o=>r=>{if(!o?.variants)return m(o?.base,r?.className);const{variants:e,defaultVariants:t}=o,n=Object.keys(e).map(o=>{const n=r?.[o],i=t?.[o],a=u(n)||u(i);return e[o][a]}),i={...t,...r&&b(r)},a=o?.compoundVariants?.reduce((o,{className:r,...e})=>Object.entries(e).every(([o,r])=>i[o]===r)?m(o,r):o,"");return m(o?.base,n,a,r?.className)},x=g({variants:o.variants}),C=new Map,S=o=>{const{useGetStylesCache:r}=e.getFeatureFlags();if(r){const r=function(o){const r=Object.create(null),e=Object.keys(o).sort();for(let t=0,n=e.length;t<n;t++){const n=e[t];r[n]=o[n]}return r}(b(o)),e=(new c.default).hash(JSON.stringify(r)).result();if(C.has(e))return C.get(e);const t=x(r);return C.set(e,t),t}return x(o)};function w(...o){return r=>o.forEach(o=>function(o,r){"function"==typeof o?o(r):null!=o&&(o.current=r)}(o,r))}function y(){const o=a.forwardRef((o,e)=>{const{children:n,...i}=o,l=a.Children.toArray(n),d=l.find(t);if(d){const o=d.props.children,t=l.map(r=>r===d?a.Children.count(o)>1?a.Children.only(null):a.isValidElement(o)?o.props.children:null:r);return s.jsx(r,{...i,ref:e,children:a.isValidElement(o)?a.cloneElement(o,void 0,t):null})}return s.jsx(r,{...i,ref:e,children:n})});o.displayName="Slot";const r=a.forwardRef((o,r)=>{const{children:e,...t}=o;return a.isValidElement(e)?a.cloneElement(e,{...n(t,e.props),ref:r?w(r,e.ref):e.ref}):a.Children.count(e)>1?a.Children.only(null):null});r.displayName="SlotClone";const e=({children:o})=>o;function t(o){return a.isValidElement(o)&&o.type===e}function n(o,r){const e={...r};for(const t in r){const n=o[t],i=r[t];/^on[A-Z]/.test(t)?n&&i?e[t]=(...o)=>{i(...o),n(...o)}:n&&(e[t]=n):"style"===t&&(e[t]={...n,...i})}return{...o,...e}}return o}var v=y(),W=a.forwardRef(function({asChild:o,as:r="div",className:e,backgroundColor:t,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:a,borderBottomStartRadius:l,borderBottomEndRadius:d,borderColor:f,borderStartColor:c,borderEndColor:p,borderTopColor:u,borderBottomColor:b,borderWidth:h,borderVerticalWidth:m,borderHorizontalWidth:g,borderStartWidth:x,borderEndWidth:C,borderTopWidth:w,borderBottomWidth:y,alignContent:W,alignItems:E,alignSelf:B,flex:T,flexDirection:N,flexGrow:R,flexShrink:V,flexWrap:j,justifyContent:z,flexBasis:G,display:H="flex",overflow:k,overflowX:q,overflowY:I,position:O,spacing:F,spacingHorizontal:A,spacingVertical:D,spacingBottom:X,spacingEnd:Y,spacingStart:M,spacingTop:$,offset:_,offsetVertical:J,offsetHorizontal:P,offsetBottom:U,offsetEnd:Z,offsetStart:K,offsetTop:L,columnGap:Q,rowGap:oo,width:ro,height:eo,dropShadow:to,insetShadow:no,...io},ao){const so=S({backgroundColor:t,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:a,borderBottomStartRadius:l,borderBottomEndRadius:d,borderColor:f,borderStartColor:c,borderEndColor:p,borderTopColor:u,borderBottomColor:b,borderWidth:h,borderVerticalWidth:m,borderHorizontalWidth:g,borderStartWidth:x,borderEndWidth:C,borderTopWidth:w,borderBottomWidth:y,alignContent:W,alignItems:E,alignSelf:B,flex:T,flexDirection:N,flexGrow:R,flexShrink:V,flexWrap:j,justifyContent:z,flexBasis:G,display:H,overflow:k,overflowX:q,overflowY:I,position:O,spacing:F,spacingHorizontal:A,spacingVertical:D,spacingBottom:X,spacingEnd:Y,spacingStart:M,spacingTop:$,offset:_,offsetVertical:J,offsetHorizontal:P,offsetBottom:U,offsetEnd:Z,offsetStart:K,offsetTop:L,columnGap:Q,rowGap:oo,width:ro,height:eo,dropShadow:to,insetShadow:no,className:e}),lo=o?v:r;return s.jsx(lo,{className:so,ref:ao,...io})});W.displayName="Box";var E=y(),B={display1:"h1",display2:"h1",display3:"h1",title1:"h1",title2:"h2",title3:"h3",title4:"h4",headline1:"h5",body1:"p",label1:"p",label2:"p",label3:"p",label4:"p",caption1:"p",caption2:"p",legal1:"p",ui1:"span",ui2:"span",ui3:"span",ui4:"span",ui5:"span",ui6:"span",inherit:"p"},T=a.forwardRef(function({className:o,asChild:r,color:e="primary",variant:t="body1",as:n=B[t],fontFamily:i,fontSize:a,fontWeight:l,lineHeight:d,textTransform:f,textAlign:c,backgroundColor:p,borderRadius:u,borderTopStartRadius:b,borderTopEndRadius:h,borderBottomStartRadius:m,borderBottomEndRadius:g,borderColor:x,borderStartColor:C,borderEndColor:w,borderTopColor:y,borderBottomColor:v,borderWidth:W,borderVerticalWidth:T,borderHorizontalWidth:N,borderStartWidth:R,borderEndWidth:V,borderTopWidth:j,borderBottomWidth:z,alignContent:G,alignItems:H,alignSelf:k,flex:q,flexDirection:I,flexGrow:O,flexShrink:F,flexWrap:A,justifyContent:D,flexBasis:X,display:Y,overflow:M,overflowX:$,overflowY:_,position:J,spacing:P,spacingHorizontal:U,spacingVertical:Z,spacingBottom:K,spacingEnd:L,spacingStart:Q,spacingTop:oo,offset:ro,offsetVertical:eo,offsetHorizontal:to,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:so,columnGap:lo,rowGap:fo,...co},po){const uo={...e&&"inherit"!==e?{color:e}:{},...t&&"inherit"!==t?{fontFamily:i??t,fontSize:a??t,fontWeight:l??t,lineHeight:d??t,textTransform:f??t}:{},textAlign:c},bo=S({className:o,...uo,backgroundColor:p,borderRadius:u,borderTopStartRadius:b,borderTopEndRadius:h,borderBottomStartRadius:m,borderBottomEndRadius:g,borderColor:x,borderStartColor:C,borderEndColor:w,borderTopColor:y,borderBottomColor:v,borderWidth:W,borderVerticalWidth:T,borderHorizontalWidth:N,borderStartWidth:R,borderEndWidth:V,borderTopWidth:j,borderBottomWidth:z,alignContent:G,alignItems:H,alignSelf:k,flex:q,flexDirection:I,flexGrow:O,flexShrink:F,flexWrap:A,justifyContent:D,flexBasis:X,display:Y,overflow:M,overflowX:$,overflowY:_,position:J,spacing:P,spacingHorizontal:U,spacingVertical:Z,spacingBottom:K,spacingEnd:L,spacingStart:Q,spacingTop:oo,offset:ro,offsetVertical:eo,offsetHorizontal:to,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:so,columnGap:lo,rowGap:fo}),ho=r?E:n;return s.jsx(ho,{className:bo,ref:po,...co})});T.displayName="Text";var N={xs:12,sm:16,md:24,lg:32},R=a.forwardRef(function({name:o,size:r="md",variant:e="outline",color:t="primary",className:n,...i},a){const l=o.metadata?.variants??[],d=l.includes(e)?e:l[0]??"fill",f="multicolor"===d,c=S({flex:"none",color:f?void 0:t,className:m(n,!f&&"[&_path]:fill-current")}),p=N[r];return s.jsx("svg",{ref:a,xmlns:"http://www.w3.org/2000/svg",width:p,height:p,viewBox:`0 0 ${p} ${p}`,"aria-hidden":"true",focusable:"false",className:c,...i,children:s.jsx(o,{size:r,variant:d})})});R.displayName="Icon";var V=a.memo(function({icon:o,iconProps:r,className:e,...t}){if(!o)return null;const{className:n,...i}=r||{},l=m(e,n),d=o;if(d.metadata?.isSvgIcon)return s.jsx(R,{name:d,...i,...t,className:l});if(p.default(o)){const e=o(r||{}),n=e?.props.className;return a.isValidElement(e)&&a.cloneElement(e,{...t,className:m(l,n)})}return a.isValidElement(o)&&a.cloneElement(o,{...i,...o.props,...t,className:m(l,o.props.className)})});V.displayName="IconSlot",
3
- /*! © 2025 Yahoo, Inc. UDS v0.0.0-development */exports.Box=W,exports.Icon=R,exports.IconSlot=V,exports.Text=T,exports.createSlot=y,exports.cva=g,exports.cx=m,exports.getStyles=S;
@@ -1,2 +0,0 @@
1
- import{getMotionVar as r}from"./chunk-KYESDN2J.js";import{FONT_DECLARATIONS_MAP as t,fromEntries as a}from"./chunk-I2KSBIOI.js";import{entries as n}from"./chunk-EWJ3J526.js";import{TEXT_TRANSFORM_PREFIX as o,LINE_HEIGHT_PREFIX as e,FONT_SIZE_PREFIX as i,FONT_WIDTH_PREFIX as s,FONT_SLANT_PREFIX as d,FONT_WEIGHT_PREFIX as f,FONT_FAMILY_PREFIX as c,TEXT_RESPONSIVE_CLASSNAME as l,UDS_PREFIX as u}from"./chunk-24RMELG3.js";import{textVariants as m,motionSpringConfigOptions as p}from"@yahoo/uds/fixtures";import h from"lodash/isString";import $ from"tailwindcss/plugin.js";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
- var g=r=>{throw new Error("Didn't expect to get here")};var v=(r,t,a,n)=>{const o=r.typography[t]?.[a];if(!o)throw new Error(`Missing typography data for variant "${t}" and key "${a}"`);const e="base"===n?o.base:o.breakpoints?.[n];if(!e)throw new Error(`Missing value for variant "${t}", key "${a}", and breakpoint "${n}"`);if(h(e))return e;switch(e.type){case"px":return e.value/16+"rem";case"unitless":return String(e.value)}return g()},w=(r,t)=>t in r.font?`var(--${c}-${t})`:t,x=(r,t)=>Object.fromEntries(m.flatMap(a=>[[`--${c}-${a}`,w(r,v(r,a,"fontFamily",t))],[`--${i}-${a}`,v(r,a,"fontSize",t)],[`--${f}-${a}`,v(r,a,"fontWeight",t)],[`--${d}-${a}`,v(r,a,"fontSlant",t)],[`--${s}-${a}`,v(r,a,"fontWidth",t)],[`--${e}-${a}`,v(r,a,"lineHeight",t)],[`--${o}-${a}`,v(r,a,"textTransform",t)]])),b=r=>Object.fromEntries(m.map(t=>[t,`var(--${r}-${t})`])),M={fontFamily:b(c),fontWeight:b(f),fontSlant:b(d),fontWidth:b(s),fontSize:b(i),lineHeight:b(e),textTransform:b(o)},k=r=>({":root":x(r,"base")}),y=r=>{const t=(a=r.breakpoints,Object.entries(a)).sort(([,{value:r}],[,{value:t}])=>r-t);var a;return{[`.${l}`]:Object.fromEntries(t.map(([t,{value:a}])=>[`@media (min-width: ${a}px)`,x(r,t)])),".uds-text-base":x(r,"base"),...Object.fromEntries(t.map(([t])=>[`.uds-text-${t}`,x(r,t)]))}};function S(r,t){const a=L(r);for(const r of a)t({"@font-face":r})}var j=$.withOptions(function({fontIds:r}){return function({addBase:t}){S(r,t)}});function E(r){return{light:{colorScheme:"light","--uds-light-mode-icon":"inline","--uds-dark-mode-icon":"none",...r.colorMode.light._vars},dark:{colorScheme:"dark","--uds-light-mode-icon":"none","--uds-dark-mode-icon":"inline",...r.colorMode.dark._vars}}}function L(r){return r.flatMap(r=>{const{declarations:a,fontFamily:n}=t[r];return a.map(r=>({fontFamily:n,fontDisplay:"swap",...r}))})}function O(r){return`"${r}"`}function W(r){return a(n(r).map(([r,a])=>{const n=`--${c}-${r}`,o=t[a];return[n,[o.fontFamily,...o.fallback].map(O).join(", ")]}))}function _(t){const o=n(t).flatMap(([t,a])=>n(a).flatMap(([a,n])=>p.map(o=>[r({variant:t,speed:a,control:o}),`${n[o]}`])));return a(o)}function F(r){return{...r.borderRadius._vars,...r.borderWidth._vars,...r.avatarSizes._vars,...r.iconSizes._vars}}function z(r){return{xSmall:F(r.scaleMode.xSmall),small:F(r.scaleMode.small),medium:F(r.scaleMode.medium),large:F(r.scaleMode.large),xLarge:F(r.scaleMode.xLarge),xxLarge:F(r.scaleMode.xxLarge),xxxLarge:F(r.scaleMode.xxxLarge)}}function I({config:r,shadowType:t}){const o=r.shadow[t],e=n(o).map(([r])=>[`.uds-${t}-shadow-${r}`,{[`--uds-${t}-shadow`]:`var(--${u}-${t}-shadow-${r})`,boxShadow:`var(--${u}-drop-shadow, 0 0 transparent), var(--${u}-inset-shadow, 0 0 transparent), var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), var(--tw-shadow, 0 0 transparent)`}]);return a(e)}export{M as RESPONSIVE_TAILWIND_CONFIG_MAP,S as addFontFaceDeclarations,j as addFontsPlugin,g as assertUnreachable,k as getBaseTextStyles,E as getColorModeStyles,L as getFontFaceDeclarations,W as getFontStyles,_ as getMotionStyles,y as getResponsiveTextStyles,z as getScaleModeStyles,I as getShadowStyles};
@@ -1 +0,0 @@
1
- "use strict";var r=require("./chunk-NND2VG42.cjs"),e=require("lodash/isFunction"),a=require("react/jsx-runtime");function t(r){return r&&r.__esModule?r:{default:r}}var i=t(e);/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */exports.FormLabel=({htmlFor:e,required:t,label:s,children:l,color:n="muted",variant:u="label3",hasError:c=!1,showRequiredAsterisk:o=!1,as:h="label",className:d,...m})=>{const x=s?i.default(s)?s():s:l;return x?a.jsxs(r.Text,{variant:u,color:n,as:h,htmlFor:e,className:r.cx("cursor-[inherit]",d),...m,children:[x,t&&o&&a.jsx(r.Text,{as:"sup",color:c?"alert":"inherit",variant:"inherit",spacingStart:"0.5","aria-hidden":!0,children:"*"})]}):null};
@@ -1 +0,0 @@
1
- import{Text as r,cx as a}from"./chunk-JVVDKBCK.js";import i from"lodash/isFunction";import{jsxs as e,jsx as t}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var o=({htmlFor:o,required:l,label:s,children:n,color:c="muted",variant:h="label3",hasError:m=!1,showRequiredAsterisk:u=!1,as:d="label",className:p,...v})=>{const b=s?i(s)?s():s:n;return b?e(r,{variant:h,color:c,as:d,htmlFor:o,className:a("cursor-[inherit]",p),...v,children:[b,l&&u&&t(r,{as:"sup",color:m?"alert":"inherit",variant:"inherit",spacingStart:"0.5","aria-hidden":!0,children:"*"})]}):null};export{o as FormLabel};
@@ -1,245 +0,0 @@
1
- import * as properties from '@yahoo/uds/fixtures';
2
- import { n as ShadowPreset, h as UniversalTokensConfig } from './types-BRmrSr-u.js';
3
-
4
- type DispatchContext = {
5
- componentName: string;
6
- subComponentName?: string;
7
- propertyKey: string;
8
- layer: string;
9
- };
10
- interface ConfigurableProperty<T extends AllPossibleProperties, CVR = unknown> {
11
- name: string;
12
- cssProperties: string | string[];
13
- twThemePath: (selected: T, value: string) => string;
14
- possibleFixtures: T[];
15
- extendedProperties?: ExtendablePropertiesName[] | ((context: DispatchContext) => ExtendablePropertiesName[] | undefined | false);
16
- customValueRenderer?: (schemaStateValue: SchemaStateValue<CVR>, schema: unknown, themeGetter: (path: string) => string) => string;
17
- concatenate?: boolean;
18
- concatenationDelimiter?: string;
19
- }
20
- declare const publicProperties: {
21
- readonly backgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
22
- readonly borderWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
23
- readonly borderRadius: ConfigurableProperty<"borderRadii", unknown>;
24
- readonly borderColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
25
- readonly fontFamily: ConfigurableProperty<"textVariants", unknown>;
26
- readonly fontSize: ConfigurableProperty<"textVariants", unknown>;
27
- readonly fontVariationSettings: ConfigurableProperty<"textVariants", unknown>;
28
- readonly lineHeight: ConfigurableProperty<"textVariants", unknown>;
29
- readonly textTransform: ConfigurableProperty<"textVariants", unknown>;
30
- readonly padding: ConfigurableProperty<"spacingAliases", unknown>;
31
- readonly gap: ConfigurableProperty<"spacingAliases", unknown>;
32
- readonly color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
33
- readonly fontWeight: ConfigurableProperty<"textVariants", unknown>;
34
- readonly iconSize: ConfigurableProperty<"iconSizes", unknown>;
35
- readonly spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
36
- readonly spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
37
- readonly textVariant: ConfigurableProperty<"textVariants", unknown>;
38
- readonly textDecorationLine: ConfigurableProperty<"textDecorationLines", unknown>;
39
- readonly shadow: ConfigurableProperty<"shadowVariants", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
40
- readonly insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
41
- readonly height: ConfigurableProperty<"spacingAliases", unknown>;
42
- readonly width: ConfigurableProperty<"spacingAliases", unknown>;
43
- };
44
- declare const configurableProperties: {
45
- outlineWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
46
- outlineColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
47
- insetOutlineOffset: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
48
- solidOutline: ConfigurableProperty<never, unknown>;
49
- backgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
50
- borderWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
51
- borderRadius: ConfigurableProperty<"borderRadii", unknown>;
52
- borderColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
53
- fontFamily: ConfigurableProperty<"textVariants", unknown>;
54
- fontSize: ConfigurableProperty<"textVariants", unknown>;
55
- fontVariationSettings: ConfigurableProperty<"textVariants", unknown>;
56
- lineHeight: ConfigurableProperty<"textVariants", unknown>;
57
- textTransform: ConfigurableProperty<"textVariants", unknown>;
58
- padding: ConfigurableProperty<"spacingAliases", unknown>;
59
- gap: ConfigurableProperty<"spacingAliases", unknown>;
60
- color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
61
- fontWeight: ConfigurableProperty<"textVariants", unknown>;
62
- iconSize: ConfigurableProperty<"iconSizes", unknown>;
63
- spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
64
- spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
65
- textVariant: ConfigurableProperty<"textVariants", unknown>;
66
- textDecorationLine: ConfigurableProperty<"textDecorationLines", unknown>;
67
- shadow: ConfigurableProperty<"shadowVariants", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
68
- insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
69
- height: ConfigurableProperty<"spacingAliases", unknown>;
70
- width: ConfigurableProperty<"spacingAliases", unknown>;
71
- };
72
- type ExtendablePropertiesName = keyof typeof configurableProperties;
73
- type ConfigurablePropertiesName = keyof typeof publicProperties;
74
- interface SelectedConfigurableProperty<C extends ConfigurablePropertiesName, O extends string, T extends (typeof publicProperties)[C]['possibleFixtures'] = (typeof publicProperties)[C]['possibleFixtures'], V extends readonly (readonly string[])[] = readonly (readonly string[])[]> {
75
- label: string;
76
- name: C;
77
- typeOfFixture: T;
78
- values: V;
79
- pseudoStates?: PossibleStates[];
80
- supportsCustom?: boolean;
81
- defaults: {
82
- [K in O]: V[number][number];
83
- };
84
- }
85
-
86
- type AllPossibleProperties = Exclude<keyof typeof properties, 'iconButtonClassNames' | 'iconButtonSize' | 'iconButtonStates' | 'buttonClassNames' | 'buttonColorProperties' | 'buttonIconSvgSize' | 'buttonKinds' | 'buttonMotionEffects' | 'buttonMotionProperties' | 'buttonPalettes' | 'buttonSizeProperties' | 'buttonSizes' | 'buttonStates' | 'buttonVariants'> | 'shadowVariantConfig';
87
- type PossibleStates = 'hover' | 'pressed' | 'focused' | 'invalid' | 'focus-within' | 'focused-keyboard' | 'visited' | 'readonly' | 'disabled' | 'invalid&hover' | 'invalid&pressed';
88
- type PossibleStatesWithRest = 'rest' | PossibleStates;
89
- interface LayerConfig {
90
- label: string;
91
- properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
92
- pseudoSelector?: string;
93
- }
94
- interface ComponentStateConfig {
95
- label: string;
96
- options: string[];
97
- layers: {
98
- root: LayerConfig;
99
- } & Record<string, LayerConfig>;
100
- }
101
- interface SubComponentConfig {
102
- label: string;
103
- description: string;
104
- overrideComponentName?: string;
105
- variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
106
- }
107
- interface VariantConfig<O extends string = string> {
108
- label: string;
109
- description: string;
110
- isConfigurable: boolean;
111
- default: O;
112
- options: readonly O[];
113
- }
114
- interface VariantConfigWithProperties<O extends string = string> extends VariantConfig<O> {
115
- layers: {
116
- root: LayerConfig;
117
- } & Record<string, LayerConfig>;
118
- }
119
- interface VariantConfigWithComponentStates<O extends string = string> extends VariantConfig<O> {
120
- componentStates?: Readonly<Record<string, ComponentStateConfig>>;
121
- }
122
- interface ComponentConfig {
123
- label: string;
124
- description: string;
125
- overrideComponentName?: string;
126
- subComponents?: Record<string, SubComponentConfig>;
127
- variants?: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
128
- }
129
- type AutoComponents = Omit<UniversalTokensConfig, 'colorMode' | 'font' | 'scaleMode' | 'version' | 'motion' | 'button' | 'iconButton' | 'shadow' | 'breakpoints' | 'typography' | 'globalDefaults'>;
130
- type AutoComponentName = keyof AutoComponents;
131
- type AllVariantKeys = {
132
- [K in keyof AutoComponents]: {
133
- [V in keyof AutoComponents[K]['defaults']]: V;
134
- }[keyof AutoComponents[K]['defaults']];
135
- }[keyof AutoComponents];
136
-
137
- type ThemeFn = (path: string) => string;
138
- type SchemaStateValue<T = any> = {
139
- type: string;
140
- valueType: 'alias' | 'custom';
141
- value: T;
142
- };
143
- declare const statePseudoMapDocsMode: Record<PossibleStates | 'rest', string>;
144
- declare function findFixtureType(property: SelectedConfigurableProperty<ConfigurablePropertiesName, string>, variantKey: string): string;
145
- declare function toMinimalDbConfigObject<C extends ComponentConfig>(config: C): any;
146
- declare function generateClassName({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, }: {
147
- componentName: string;
148
- variantKey: string;
149
- variantValue?: string;
150
- layer: string;
151
- layerOptionalPseudoSelector?: string;
152
- subComponentName?: string;
153
- stateKey?: string;
154
- stateValue?: string;
155
- }): string;
156
- declare function generateDeclaration({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, schema, propertyKey, originalPropertyDefinition, theme, currentStyles, previewOptions, }: {
157
- componentName: string;
158
- variantKey: string;
159
- variantValue: string;
160
- layer: string;
161
- layerOptionalPseudoSelector?: string;
162
- subComponentName?: string;
163
- stateKey?: string;
164
- stateValue?: string;
165
- schema: unknown;
166
- propertyKey: string;
167
- originalPropertyDefinition: SelectedConfigurableProperty<ConfigurablePropertiesName, any>;
168
- theme: ThemeFn;
169
- currentStyles: Readonly<Record<string, Record<string, string>>>;
170
- previewOptions?: {
171
- generatePseudoStateClassModifier?: boolean;
172
- forcePseudoState?: boolean;
173
- };
174
- }): Record<string, Record<string, string>>;
175
- declare function generateStyles<C extends ComponentConfig>(config: C, schema: any, theme: ThemeFn, previewOptions?: {
176
- generatePseudoStateClassModifier: boolean;
177
- forcePseudoState: boolean;
178
- }): Record<string, Record<string, string>>;
179
- declare function createConfigurableProperty<C extends ConfigurablePropertiesName, O extends string, T extends (typeof configurableProperties)[C]['possibleFixtures'], V extends readonly (readonly string[])[] = readonly (readonly string[])[]>(prop: {
180
- name: C;
181
- typeOfFixture: T;
182
- values: V;
183
- defaults: {
184
- [K in O]: V[number][number];
185
- };
186
- label: string;
187
- pseudoStates?: PossibleStates[];
188
- supportsCustom?: boolean;
189
- }): SelectedConfigurableProperty<C, O, T, V>;
190
- /**
191
- * @deprecated use the new functions instead
192
- */
193
- declare function createVariantConfig<O extends string, T extends Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, O>>>(config: {
194
- label: string;
195
- description: string;
196
- isConfigurable: boolean;
197
- default: O;
198
- options: readonly O[];
199
- properties: T;
200
- }): VariantConfig<O>;
201
- declare function createComponentStateConfig(config: {
202
- label: string;
203
- options: string[];
204
- layers: {
205
- root: LayerConfig;
206
- } & Record<string, LayerConfig>;
207
- }): ComponentStateConfig;
208
- declare function createVariantConfigWithProperties(config: {
209
- label: string;
210
- description: string;
211
- isConfigurable: boolean;
212
- default: string;
213
- options: readonly string[];
214
- layers: {
215
- root: LayerConfig;
216
- } & Record<string, LayerConfig>;
217
- }): VariantConfigWithProperties;
218
- declare function createVariantConfigWithComponentStates(config: {
219
- label: string;
220
- description: string;
221
- isConfigurable: boolean;
222
- default: string;
223
- options: readonly string[];
224
- componentStates: Record<string, ComponentStateConfig>;
225
- }): VariantConfigWithComponentStates;
226
- declare function createComponentStates(config: {
227
- label: string;
228
- options: string[];
229
- layers: {
230
- root: LayerConfig;
231
- } & Record<string, LayerConfig>;
232
- }): ComponentStateConfig;
233
- declare function createLayerConfig(config: {
234
- label: string;
235
- pseudoSelector?: string;
236
- properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
237
- }): LayerConfig;
238
- declare function createSubComponentConfig(config: {
239
- label: string;
240
- description: string;
241
- overrideComponentName?: string;
242
- variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
243
- }): SubComponentConfig;
244
-
245
- export { type AllPossibleProperties as A, type ConfigurablePropertiesName as C, type ExtendablePropertiesName as E, type LayerConfig as L, type PossibleStates as P, type SelectedConfigurableProperty as S, type VariantConfig as V, type PossibleStatesWithRest as a, type ComponentStateConfig as b, configurableProperties as c, type SubComponentConfig as d, type VariantConfigWithProperties as e, type VariantConfigWithComponentStates as f, type ComponentConfig as g, type AutoComponents as h, type AutoComponentName as i, type AllVariantKeys as j, type SchemaStateValue as k, findFixtureType as l, generateClassName as m, generateDeclaration as n, generateStyles as o, createConfigurableProperty as p, createVariantConfig as q, createComponentStateConfig as r, statePseudoMapDocsMode as s, toMinimalDbConfigObject as t, createVariantConfigWithProperties as u, createVariantConfigWithComponentStates as v, createComponentStates as w, createLayerConfig as x, createSubComponentConfig as y };
@@ -1,245 +0,0 @@
1
- import * as properties from '@yahoo/uds/fixtures';
2
- import { n as ShadowPreset, h as UniversalTokensConfig } from './types-BRmrSr-u.cjs';
3
-
4
- type DispatchContext = {
5
- componentName: string;
6
- subComponentName?: string;
7
- propertyKey: string;
8
- layer: string;
9
- };
10
- interface ConfigurableProperty<T extends AllPossibleProperties, CVR = unknown> {
11
- name: string;
12
- cssProperties: string | string[];
13
- twThemePath: (selected: T, value: string) => string;
14
- possibleFixtures: T[];
15
- extendedProperties?: ExtendablePropertiesName[] | ((context: DispatchContext) => ExtendablePropertiesName[] | undefined | false);
16
- customValueRenderer?: (schemaStateValue: SchemaStateValue<CVR>, schema: unknown, themeGetter: (path: string) => string) => string;
17
- concatenate?: boolean;
18
- concatenationDelimiter?: string;
19
- }
20
- declare const publicProperties: {
21
- readonly backgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
22
- readonly borderWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
23
- readonly borderRadius: ConfigurableProperty<"borderRadii", unknown>;
24
- readonly borderColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
25
- readonly fontFamily: ConfigurableProperty<"textVariants", unknown>;
26
- readonly fontSize: ConfigurableProperty<"textVariants", unknown>;
27
- readonly fontVariationSettings: ConfigurableProperty<"textVariants", unknown>;
28
- readonly lineHeight: ConfigurableProperty<"textVariants", unknown>;
29
- readonly textTransform: ConfigurableProperty<"textVariants", unknown>;
30
- readonly padding: ConfigurableProperty<"spacingAliases", unknown>;
31
- readonly gap: ConfigurableProperty<"spacingAliases", unknown>;
32
- readonly color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
33
- readonly fontWeight: ConfigurableProperty<"textVariants", unknown>;
34
- readonly iconSize: ConfigurableProperty<"iconSizes", unknown>;
35
- readonly spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
36
- readonly spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
37
- readonly textVariant: ConfigurableProperty<"textVariants", unknown>;
38
- readonly textDecorationLine: ConfigurableProperty<"textDecorationLines", unknown>;
39
- readonly shadow: ConfigurableProperty<"shadowVariants", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
40
- readonly insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
41
- readonly height: ConfigurableProperty<"spacingAliases", unknown>;
42
- readonly width: ConfigurableProperty<"spacingAliases", unknown>;
43
- };
44
- declare const configurableProperties: {
45
- outlineWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
46
- outlineColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
47
- insetOutlineOffset: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
48
- solidOutline: ConfigurableProperty<never, unknown>;
49
- backgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
50
- borderWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
51
- borderRadius: ConfigurableProperty<"borderRadii", unknown>;
52
- borderColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
53
- fontFamily: ConfigurableProperty<"textVariants", unknown>;
54
- fontSize: ConfigurableProperty<"textVariants", unknown>;
55
- fontVariationSettings: ConfigurableProperty<"textVariants", unknown>;
56
- lineHeight: ConfigurableProperty<"textVariants", unknown>;
57
- textTransform: ConfigurableProperty<"textVariants", unknown>;
58
- padding: ConfigurableProperty<"spacingAliases", unknown>;
59
- gap: ConfigurableProperty<"spacingAliases", unknown>;
60
- color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
61
- fontWeight: ConfigurableProperty<"textVariants", unknown>;
62
- iconSize: ConfigurableProperty<"iconSizes", unknown>;
63
- spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
64
- spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
65
- textVariant: ConfigurableProperty<"textVariants", unknown>;
66
- textDecorationLine: ConfigurableProperty<"textDecorationLines", unknown>;
67
- shadow: ConfigurableProperty<"shadowVariants", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
68
- insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
69
- height: ConfigurableProperty<"spacingAliases", unknown>;
70
- width: ConfigurableProperty<"spacingAliases", unknown>;
71
- };
72
- type ExtendablePropertiesName = keyof typeof configurableProperties;
73
- type ConfigurablePropertiesName = keyof typeof publicProperties;
74
- interface SelectedConfigurableProperty<C extends ConfigurablePropertiesName, O extends string, T extends (typeof publicProperties)[C]['possibleFixtures'] = (typeof publicProperties)[C]['possibleFixtures'], V extends readonly (readonly string[])[] = readonly (readonly string[])[]> {
75
- label: string;
76
- name: C;
77
- typeOfFixture: T;
78
- values: V;
79
- pseudoStates?: PossibleStates[];
80
- supportsCustom?: boolean;
81
- defaults: {
82
- [K in O]: V[number][number];
83
- };
84
- }
85
-
86
- type AllPossibleProperties = Exclude<keyof typeof properties, 'iconButtonClassNames' | 'iconButtonSize' | 'iconButtonStates' | 'buttonClassNames' | 'buttonColorProperties' | 'buttonIconSvgSize' | 'buttonKinds' | 'buttonMotionEffects' | 'buttonMotionProperties' | 'buttonPalettes' | 'buttonSizeProperties' | 'buttonSizes' | 'buttonStates' | 'buttonVariants'> | 'shadowVariantConfig';
87
- type PossibleStates = 'hover' | 'pressed' | 'focused' | 'invalid' | 'focus-within' | 'focused-keyboard' | 'visited' | 'readonly' | 'disabled' | 'invalid&hover' | 'invalid&pressed';
88
- type PossibleStatesWithRest = 'rest' | PossibleStates;
89
- interface LayerConfig {
90
- label: string;
91
- properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
92
- pseudoSelector?: string;
93
- }
94
- interface ComponentStateConfig {
95
- label: string;
96
- options: string[];
97
- layers: {
98
- root: LayerConfig;
99
- } & Record<string, LayerConfig>;
100
- }
101
- interface SubComponentConfig {
102
- label: string;
103
- description: string;
104
- overrideComponentName?: string;
105
- variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
106
- }
107
- interface VariantConfig<O extends string = string> {
108
- label: string;
109
- description: string;
110
- isConfigurable: boolean;
111
- default: O;
112
- options: readonly O[];
113
- }
114
- interface VariantConfigWithProperties<O extends string = string> extends VariantConfig<O> {
115
- layers: {
116
- root: LayerConfig;
117
- } & Record<string, LayerConfig>;
118
- }
119
- interface VariantConfigWithComponentStates<O extends string = string> extends VariantConfig<O> {
120
- componentStates?: Readonly<Record<string, ComponentStateConfig>>;
121
- }
122
- interface ComponentConfig {
123
- label: string;
124
- description: string;
125
- overrideComponentName?: string;
126
- subComponents?: Record<string, SubComponentConfig>;
127
- variants?: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
128
- }
129
- type AutoComponents = Omit<UniversalTokensConfig, 'colorMode' | 'font' | 'scaleMode' | 'version' | 'motion' | 'button' | 'iconButton' | 'shadow' | 'breakpoints' | 'typography' | 'globalDefaults'>;
130
- type AutoComponentName = keyof AutoComponents;
131
- type AllVariantKeys = {
132
- [K in keyof AutoComponents]: {
133
- [V in keyof AutoComponents[K]['defaults']]: V;
134
- }[keyof AutoComponents[K]['defaults']];
135
- }[keyof AutoComponents];
136
-
137
- type ThemeFn = (path: string) => string;
138
- type SchemaStateValue<T = any> = {
139
- type: string;
140
- valueType: 'alias' | 'custom';
141
- value: T;
142
- };
143
- declare const statePseudoMapDocsMode: Record<PossibleStates | 'rest', string>;
144
- declare function findFixtureType(property: SelectedConfigurableProperty<ConfigurablePropertiesName, string>, variantKey: string): string;
145
- declare function toMinimalDbConfigObject<C extends ComponentConfig>(config: C): any;
146
- declare function generateClassName({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, }: {
147
- componentName: string;
148
- variantKey: string;
149
- variantValue?: string;
150
- layer: string;
151
- layerOptionalPseudoSelector?: string;
152
- subComponentName?: string;
153
- stateKey?: string;
154
- stateValue?: string;
155
- }): string;
156
- declare function generateDeclaration({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, schema, propertyKey, originalPropertyDefinition, theme, currentStyles, previewOptions, }: {
157
- componentName: string;
158
- variantKey: string;
159
- variantValue: string;
160
- layer: string;
161
- layerOptionalPseudoSelector?: string;
162
- subComponentName?: string;
163
- stateKey?: string;
164
- stateValue?: string;
165
- schema: unknown;
166
- propertyKey: string;
167
- originalPropertyDefinition: SelectedConfigurableProperty<ConfigurablePropertiesName, any>;
168
- theme: ThemeFn;
169
- currentStyles: Readonly<Record<string, Record<string, string>>>;
170
- previewOptions?: {
171
- generatePseudoStateClassModifier?: boolean;
172
- forcePseudoState?: boolean;
173
- };
174
- }): Record<string, Record<string, string>>;
175
- declare function generateStyles<C extends ComponentConfig>(config: C, schema: any, theme: ThemeFn, previewOptions?: {
176
- generatePseudoStateClassModifier: boolean;
177
- forcePseudoState: boolean;
178
- }): Record<string, Record<string, string>>;
179
- declare function createConfigurableProperty<C extends ConfigurablePropertiesName, O extends string, T extends (typeof configurableProperties)[C]['possibleFixtures'], V extends readonly (readonly string[])[] = readonly (readonly string[])[]>(prop: {
180
- name: C;
181
- typeOfFixture: T;
182
- values: V;
183
- defaults: {
184
- [K in O]: V[number][number];
185
- };
186
- label: string;
187
- pseudoStates?: PossibleStates[];
188
- supportsCustom?: boolean;
189
- }): SelectedConfigurableProperty<C, O, T, V>;
190
- /**
191
- * @deprecated use the new functions instead
192
- */
193
- declare function createVariantConfig<O extends string, T extends Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, O>>>(config: {
194
- label: string;
195
- description: string;
196
- isConfigurable: boolean;
197
- default: O;
198
- options: readonly O[];
199
- properties: T;
200
- }): VariantConfig<O>;
201
- declare function createComponentStateConfig(config: {
202
- label: string;
203
- options: string[];
204
- layers: {
205
- root: LayerConfig;
206
- } & Record<string, LayerConfig>;
207
- }): ComponentStateConfig;
208
- declare function createVariantConfigWithProperties(config: {
209
- label: string;
210
- description: string;
211
- isConfigurable: boolean;
212
- default: string;
213
- options: readonly string[];
214
- layers: {
215
- root: LayerConfig;
216
- } & Record<string, LayerConfig>;
217
- }): VariantConfigWithProperties;
218
- declare function createVariantConfigWithComponentStates(config: {
219
- label: string;
220
- description: string;
221
- isConfigurable: boolean;
222
- default: string;
223
- options: readonly string[];
224
- componentStates: Record<string, ComponentStateConfig>;
225
- }): VariantConfigWithComponentStates;
226
- declare function createComponentStates(config: {
227
- label: string;
228
- options: string[];
229
- layers: {
230
- root: LayerConfig;
231
- } & Record<string, LayerConfig>;
232
- }): ComponentStateConfig;
233
- declare function createLayerConfig(config: {
234
- label: string;
235
- pseudoSelector?: string;
236
- properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
237
- }): LayerConfig;
238
- declare function createSubComponentConfig(config: {
239
- label: string;
240
- description: string;
241
- overrideComponentName?: string;
242
- variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
243
- }): SubComponentConfig;
244
-
245
- export { type AllPossibleProperties as A, type ConfigurablePropertiesName as C, type ExtendablePropertiesName as E, type LayerConfig as L, type PossibleStates as P, type SelectedConfigurableProperty as S, type VariantConfig as V, type PossibleStatesWithRest as a, type ComponentStateConfig as b, configurableProperties as c, type SubComponentConfig as d, type VariantConfigWithProperties as e, type VariantConfigWithComponentStates as f, type ComponentConfig as g, type AutoComponents as h, type AutoComponentName as i, type AllVariantKeys as j, type SchemaStateValue as k, findFixtureType as l, generateClassName as m, generateDeclaration as n, generateStyles as o, createConfigurableProperty as p, createVariantConfig as q, createComponentStateConfig as r, statePseudoMapDocsMode as s, toMinimalDbConfigObject as t, createVariantConfigWithProperties as u, createVariantConfigWithComponentStates as v, createComponentStates as w, createLayerConfig as x, createSubComponentConfig as y };