@cloudflare/kumo 2.14.0 → 2.15.0

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 (394) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/ai/component-registry.json +231 -43
  3. package/ai/component-registry.md +774 -166
  4. package/ai/schemas.ts +22 -3
  5. package/dist/.build-complete +1 -1
  6. package/dist/ai/schemas.d.ts +51 -2
  7. package/dist/ai/schemas.js +32 -1
  8. package/dist/blocks-source/delete-resource/delete-resource.test.tsx +21 -0
  9. package/dist/blocks-source/delete-resource/delete-resource.tsx +14 -8
  10. package/dist/chunks/{index.parts-h7wtkrxpz4m8eqn9.js → AccordionPanelDataAttributes-mmrmkky28u1010l5.js} +150 -61
  11. package/dist/chunks/{AlertDialogTrigger-dkihgpvj12si73w3.js → AlertDialogTrigger-l1r1gbxcky1xq889.js} +4 -4
  12. package/dist/chunks/{index.parts-kgiqby97w6tn6jw7.js → AlertDialogTriggerDataAttributes-go49qon601catpgn.js} +24 -9
  13. package/dist/chunks/{AutocompleteItem-drxau0wm3735nihq.js → AutocompleteItem-36ysm5nwbsd0snr6.js} +5 -5
  14. package/dist/chunks/AutocompleteItemDataAttributes-n5rigpf0s9ylnwi3.js +232 -0
  15. package/dist/chunks/{AutocompleteSeparator-hqtaxxxye1rfezfg.js → AutocompleteSeparator-bnqeqh7i983d92gx.js} +2 -2
  16. package/dist/chunks/{index.parts-b9zmk3ta77w8dy9f.js → AvatarImageDataAttributes-jw70u384c83lhqfp.js} +39 -15
  17. package/dist/chunks/{Button-ccl5r1xlbe3gh998.js → ButtonDataAttributes-nceand1fi7lvnmkb.js} +12 -4
  18. package/dist/chunks/{CSPContext-ctyrgg64girv38ls.js → CSPContext-iv67i0qqhihg8mur.js} +1 -1
  19. package/dist/chunks/{CSPProvider-p9ensukmowjpkgc0.js → CSPProvider-finau3a8hnc9o2td.js} +2 -2
  20. package/dist/chunks/{CheckboxGroup-knvypu2d1s0iz86k.js → CheckboxGroup-581mfftu99wvjb3a.js} +18 -23
  21. package/dist/chunks/{CheckboxGroupContext-lgc9dwxou662i6zo.js → CheckboxGroupContext-jf1bt3znvqlhrql6.js} +1 -1
  22. package/dist/chunks/CheckboxGroupDataAttributes-nskqcxts64symbvf.js +10 -0
  23. package/dist/chunks/{CheckboxIndicator-n982pbktfkxsa5zz.js → CheckboxIndicator-i13dmhacfgqo328c.js} +86 -29
  24. package/dist/chunks/CheckboxIndicatorDataAttributes-3p29ju7nkczz1l2y.js +85 -0
  25. package/dist/chunks/{CollapsiblePanel-jm0ni90g7wz7ppkc.js → CollapsiblePanel-md5suzmtnsyz1kab.js} +17 -13
  26. package/dist/chunks/CollapsibleRootDataAttributes-bynmgxmt4jikaoha.js +36 -0
  27. package/dist/chunks/{ComboboxClear-c2kvjkh9yc6xfl38.js → ComboboxClear-ioejwvtnmqanph88.js} +31 -24
  28. package/dist/chunks/ComboboxClearDataAttributes-lo0enstdmrqpywsy.js +402 -0
  29. package/dist/chunks/{ComboboxEmpty-o0q20j2l2syar9kx.js → ComboboxEmpty-gkt1y5b81a4983v7.js} +207 -215
  30. package/dist/chunks/ComboboxItemIndicatorDataAttributes-iku7l9ig0ve09an4.js +259 -0
  31. package/dist/chunks/{ComboboxPopup-oxgggc2wxy6bfmru.js → ComboboxPopup-n8cbgys9st446j1i.js} +15 -15
  32. package/dist/chunks/{CompositeItem-hzuk5x3e5zsfgnyj.js → CompositeItem-kepwg8jtvgap06o6.js} +3 -3
  33. package/dist/chunks/{CompositeList-lbr4enu6yzek7oa9.js → CompositeList-gwuaf6d14s4da0j0.js} +9 -7
  34. package/dist/chunks/{CompositeListContext-m9frxn53kkmr23d0.js → CompositeListContext-bejvmlu39hsfjzgu.js} +1 -1
  35. package/dist/chunks/{CompositeRoot-g72lchaerolf5dc9.js → CompositeRoot-dnlkb27uw4g5aocf.js} +12 -12
  36. package/dist/chunks/{CompositeRootContext-ixz4myr7uwvavx6w.js → CompositeRootContext-obm54j7y6s86qwhq.js} +1 -1
  37. package/dist/chunks/{index.parts-d4wim8mcnl9a2n9d.js → ContextMenuTriggerDataAttributes-xwozccynxv6pk5s0.js} +29 -15
  38. package/dist/chunks/DialogBackdropDataAttributes-jwqxd6jla03xh8ke.js +28 -0
  39. package/dist/chunks/{DialogHandle-klk7uo1q1y8ghyx5.js → DialogCloseDataAttributes-12m7gwh3i6fd7d05.js} +14 -6
  40. package/dist/chunks/{DialogPopup-olsvyf7ulia6ekb1.js → DialogPopup-n6w7b389e7bs0472.js} +13 -11
  41. package/dist/chunks/{DialogRoot-hl3genvzl9h8ridm.js → DialogRoot-hkkqj7vcjpkx8qk8.js} +3 -3
  42. package/dist/chunks/{DialogTrigger-g44cuem7n4wez533.js → DialogTrigger-kpugfkbfswqrus4u.js} +16 -16
  43. package/dist/chunks/DialogTriggerDataAttributes-bp9bu13cvwuddh5b.js +18 -0
  44. package/dist/chunks/DialogViewportDataAttributes-mma9emv1edsc1vuy.js +78 -0
  45. package/dist/chunks/{DirectionContext-opvqcb794uxicri4.js → DirectionContext-kpby968j030psajn.js} +1 -1
  46. package/dist/chunks/{DirectionProvider-er2gibtc9a1f0kep.js → DirectionProvider-cg0pwzgdyg6r73r6.js} +2 -2
  47. package/dist/chunks/{DrawerViewport-eqzib92gukr4qap3.js → DrawerViewport-mzqpwvqtylnad8ib.js} +110 -61
  48. package/dist/chunks/{index.parts-jknln7yxhdokkvd6.js → DrawerViewportDataAttributes-dd9593zm9fl9vcsm.js} +166 -85
  49. package/dist/chunks/{FieldControl-c5sahhd5xg3nr2x7.js → FieldControl-hjj2tcqruozadgdi.js} +18 -27
  50. package/dist/chunks/{FieldDescription-ldfiii5bvssfib3d.js → FieldDescription-orix2gepowrp5ni4.js} +11 -11
  51. package/dist/chunks/{FieldItemContext-kpsmvqm5a98m8zpx.js → FieldItemContext-ohsf45im6xhpay40.js} +1 -1
  52. package/dist/chunks/FieldItemDataAttributes-m52srx69pispz49i.js +283 -0
  53. package/dist/chunks/{FieldLabel-j9teqs9f1exqv346.js → FieldLabel-fjc7tdis7rcbq8o4.js} +17 -15
  54. package/dist/chunks/{FieldsetLegend-jyy40ylt2ynkvgob.js → FieldsetLegend-gl9z9eezr0xg9zr7.js} +5 -5
  55. package/dist/chunks/FieldsetLegendDataAttributes-fn20251jxjqkpkxm.js +17 -0
  56. package/dist/chunks/{FieldsetRootContext-7nlstw7wronafxhw.js → FieldsetRootContext-fphwizvcm55ydg94.js} +1 -1
  57. package/dist/chunks/{FloatingPortalLite-da0wdcmem7ahkle6.js → FloatingPortalLite-j7dsy7gokbxdoe1i.js} +2 -2
  58. package/dist/chunks/{popupTriggerMap-ehv0fuhnmy59j3pn.js → FloatingRootStore-men6ufp3a2b296fh.js} +117 -119
  59. package/dist/chunks/{FloatingTree-lhdqtlu8s6m66n7l.js → FloatingTree-kiyzavvaum442o1s.js} +6 -6
  60. package/dist/chunks/{Form-fjfbann47c7ws316.js → Form-oz425k7r4abea8o4.js} +7 -7
  61. package/dist/chunks/{FormContext-bsu99v8i8pwu1yxc.js → FormContext-jv19engyccpf6xcl.js} +2 -2
  62. package/dist/chunks/{Input-irwtufp5t73pwnoj.js → Input-ozudotydd679ly63.js} +2 -2
  63. package/dist/chunks/InputDataAttributes-oy8t6q5y5t8ik02j.js +42 -0
  64. package/dist/chunks/ItemIndicator-cvf8cw5fv5l3cd8j.js +37 -0
  65. package/dist/chunks/{LabelableContext-ccxbhu73vrk089m1.js → LabelableContext-dz4wz3lu3lgqusu7.js} +37 -6
  66. package/dist/chunks/{ListboxSeparator-nfyv54r2v5qtmosj.js → ListboxSeparator-skazx18vzzj7i9zp.js} +2 -2
  67. package/dist/chunks/MenuClearDataAttributes-fo0pekd36n56mdxu.js +1645 -0
  68. package/dist/chunks/{MenuSubmenuTrigger-mbbda6ucik6nphbq.js → MenuSubmenuTrigger-hm5xbgik6aq95x35.js} +639 -281
  69. package/dist/chunks/MenuSubmenuTriggerDataAttributes-gdfxdjymgmnaxdds.js +372 -0
  70. package/dist/chunks/{MenuTrigger-disngqnt74owi30p.js → MenuTrigger-dlfvicsaggss0o9m.js} +36 -28
  71. package/dist/chunks/{Menubar-fluuxyn8c2zuz5pr.js → Menubar-ja5int05ihjj0ra4.js} +24 -14
  72. package/dist/chunks/{MenubarContext-blatefsj42br7jh8.js → MenubarContext-ooz0h08i55c8oip5.js} +1 -1
  73. package/dist/chunks/{MeterLabel-k6no448jvaidaptf.js → MeterLabel-cykbkvqys5263z05.js} +12 -12
  74. package/dist/chunks/{index.parts-gf9v1piz8xxt8ap1.js → NavigationMenuIconDataAttributes-l82pkpm61d0meqxf.js} +333 -94
  75. package/dist/chunks/{NullStore-jwgpmovsgl47g9bv.js → NullStore-my62xo2vfcfkerri.js} +7 -6
  76. package/dist/chunks/{index.parts-c1ocmbxanagpan6d.js → NumberFieldScrubAreaCursorDataAttributes-k2lsbk35svshnwf5.js} +439 -215
  77. package/dist/chunks/{index.parts-p2lcxzhh1ll3584m.js → OTPFieldInputDataAttributes-gvgtu2gg85kgjzwr.js} +173 -56
  78. package/dist/chunks/{PopoverClose-kpyt8hbqc52lnjb8.js → PopoverViewport-peh28i8q4hqfjy97.js} +135 -81
  79. package/dist/chunks/PopoverViewportDataAttributes-gplhq9d7ffp9q8u3.js +329 -0
  80. package/dist/chunks/{PrehydrationScript-j6zlrxmojrqni6b9.js → PrehydrationScript-hs2je3mndbxuts7w.js} +29 -14
  81. package/dist/chunks/{index.parts-cc0yi5vo7s4x3r9p.js → PreviewCardViewportDataAttributes-bgfwmyshey7fx6nr.js} +263 -36
  82. package/dist/chunks/{index.parts-lpafjiz853r94ydb.js → ProgressLabelDataAttributes-j8mutcz11ei0ohvj.js} +103 -22
  83. package/dist/chunks/{RadioGroup-pok1e5qbnbujrz1e.js → RadioGroup-kioqngmmuo7a1lfa.js} +37 -42
  84. package/dist/chunks/{RadioGroupContext-galfnl2el7y2krov.js → RadioGroupContext-dr6uihsj7oky0eol.js} +1 -1
  85. package/dist/chunks/RadioGroupDataAttributes-dpdr6xe4ve204qwb.js +10 -0
  86. package/dist/chunks/{RadioIndicator-jd511oajbwmyjxbg.js → RadioIndicator-bhxqih8wzv7hyrec.js} +83 -27
  87. package/dist/chunks/RadioIndicatorDataAttributes-n5yupp5psifu0d4f.js +80 -0
  88. package/dist/chunks/{ScrollAreaThumb-eed3hf0pmrblshfw.js → ScrollAreaThumb-hxig41yn4lrurd3o.js} +114 -43
  89. package/dist/chunks/ScrollAreaThumbDataAttributes-gup5wfxvqye6jj27.js +137 -0
  90. package/dist/chunks/SelectScrollUpArrowDataAttributes-fce5i1afjkb0necr.js +473 -0
  91. package/dist/chunks/{SelectSeparator-mrjooj7vmjez6fua.js → SelectSeparator-nnak70azojox8b2b.js} +249 -162
  92. package/dist/chunks/{Separator-bcm4ezllqxvtpvuj.js → Separator-fhwve0tfny3tht3a.js} +2 -2
  93. package/dist/chunks/SeparatorDataAttributes-ch6e63bas7zflw00.js +11 -0
  94. package/dist/chunks/{index.parts-j6kbr29a542ya81m.js → SliderIndicator-h1o3qbrvr8x0t4t2.js} +129 -74
  95. package/dist/chunks/SliderIndicatorDataAttributes-ff2f1cjealif5nvo.js +240 -0
  96. package/dist/chunks/{SwitchRoot-gahuqddsq1s55p8m.js → SwitchRoot-m4t2tq5zn5wibyxk.js} +74 -22
  97. package/dist/chunks/SwitchThumbDataAttributes-f95ld864on9y6ptk.js +90 -0
  98. package/dist/chunks/{TabsList-ebl0v8gu8wn28zss.js → TabsList-n5n93rxr4sy704u8.js} +48 -30
  99. package/dist/chunks/TabsListDataAttributes-e03a7kbubuf02z1l.js +183 -0
  100. package/dist/chunks/ToastArrowDataAttributes-jbnvz3kp6a35slgj.js +136 -0
  101. package/dist/chunks/{Toggle-mbshs50266z9hgxp.js → ToggleDataAttributes-jl9ojyvwgrvefke6.js} +26 -11
  102. package/dist/chunks/{ToggleGroupContext-h4v7jaf77rp2xng9.js → ToggleGroupContext-hg8zbkgqpscqhz83.js} +1 -1
  103. package/dist/chunks/{ToggleGroup-k2caz2ghv6zbzp5l.js → ToggleGroupDataAttributes-n1dwona1alvabstl.js} +30 -9
  104. package/dist/chunks/{ToolbarGroupContext-e5cg7needj0edodc.js → ToolbarGroupContext-eawva8xkxb4osbxb.js} +1 -1
  105. package/dist/chunks/{ToolbarInput-i4h95tes75w0p5y2.js → ToolbarInput-kyxl1be0p3cyuayp.js} +10 -10
  106. package/dist/chunks/ToolbarInputDataAttributes-n4a18a4km735du04.js +150 -0
  107. package/dist/chunks/{ToolbarRootContext-eqk40r8uh4h6r211.js → ToolbarRootContext-difqbj720teyt8lu.js} +1 -1
  108. package/dist/chunks/{TooltipPopup-dm4y0hbdeylzp22y.js → TooltipPopup-furysmeyb68uycbz.js} +41 -68
  109. package/dist/chunks/{TooltipProvider-h40qf9wcn0atj15v.js → TooltipProvider-hyans0ens4axh1y8.js} +5 -5
  110. package/dist/chunks/TooltipViewportDataAttributes-gkwbezdq40ssuevg.js +312 -0
  111. package/dist/chunks/{adaptiveOriginMiddleware-b8ztjthe278xq7lm.js → adaptiveOriginMiddleware-m9tqzw58wya9sdds.js} +3 -3
  112. package/dist/chunks/{addEventListener-l40nxvf06iukgvnj.js → addEventListener-ku3x23446prmd1kz.js} +1 -1
  113. package/dist/chunks/{areArraysEqual-bcx201k1x9ziizym.js → areArraysEqual-nnpg93s9g7aqcaoh.js} +1 -1
  114. package/dist/chunks/{autocomplete-m6h1pbygknrz5div.js → autocomplete-kgp17p6oz4pczxt9.js} +9 -9
  115. package/dist/chunks/{badge-dq8bx752b9dp7dst.js → badge-kyz53p7p0ng393bs.js} +2 -1
  116. package/dist/chunks/{banner-msnmqm7of2lck01x.js → banner-cpla8vqjxaulggyd.js} +3 -3
  117. package/dist/chunks/{breadcrumbs-lhi1qrdh74mb4zsx.js → breadcrumbs-oyuqwb09l08uhok2.js} +7 -16
  118. package/dist/chunks/{button-group-i9dh83xutyuxyry7.js → button-group-biv43ksvaipc3p5n.js} +2 -2
  119. package/dist/chunks/{button-pa1bq9b85hawg41a.js → button-oxy32x5w9x9az80g.js} +25 -6
  120. package/dist/chunks/{chart-kd1xd6crso2i956o.js → chart-foxl6xbubuoshfcs.js} +14 -10
  121. package/dist/chunks/{checkbox-lbo436duy7krxcsk.js → checkbox-o9627970y7c9ciqy.js} +90 -36
  122. package/dist/chunks/{clamp-jcjhzx71s6wt1rnc.js → clamp-rcpupxvhqrn8uuyf.js} +1 -1
  123. package/dist/chunks/{clipboard-text-gd6s3n1bqse9zgt8.js → clipboard-text-bhy88tgvk1o6wmyl.js} +6 -6
  124. package/dist/chunks/{cloudflare-logo-boafurcbm5ttoo4o.js → cloudflare-logo-d8mid9xr190h78cu.js} +3 -3
  125. package/dist/chunks/{code-eu8kzwqnlhoyin24.js → code-nj2nu6qzxhz6qnkk.js} +1 -1
  126. package/dist/chunks/{collapsible-l8g94on4w7qfosmn.js → collapsible-ic6813hc4yv5s5hv.js} +2 -2
  127. package/dist/chunks/{combobox-hdxtsm2gqcxxgfju.js → combobox-hwrq8etkr7p2id0x.js} +7 -7
  128. package/dist/chunks/{command-palette-crtm3nd32yjhuax1.js → command-palette-el4x943vpmid0po0.js} +8 -8
  129. package/dist/chunks/{composite-ab8dmdfoj6tmhcn1.js → composite-c11t1ok72s3cggjc.js} +1 -1
  130. package/dist/chunks/{constants-flxfd6q03phtu007.js → constants-l10cgj6pyqg27jod.js} +1 -1
  131. package/dist/chunks/{createBaseUIEventDetails-3ob3qgs95ffm8l0w.js → createBaseUIEventDetails-nvee6bghv2reeqdb.js} +3 -2
  132. package/dist/chunks/{createItems-b8n8vigg5nak6j9s.js → createItems-n07tfwx89cdoar18.js} +42 -77
  133. package/dist/chunks/{createToastManager-onmoqrmr8zo02rif.js → createToastManager-cxjmn4jx3ejh85fs.js} +86 -42
  134. package/dist/chunks/{date-picker-cotkexrpqu5tjikv.js → date-picker-oee5ehsrepnlmltj.js} +4 -2
  135. package/dist/chunks/{date-range-picker-i6d8y1yemm7x5ins.js → date-range-picker-hpx3cdu9ve01jx6d.js} +1 -1
  136. package/dist/chunks/{dialog-glpnivujociqs9lh.js → dialog-lgrwmsumwpftp2u8.js} +7 -7
  137. package/dist/chunks/{dropdown-m53ji1d66mws89wh.js → dropdown-o875yxeqod7qp871.js} +133 -30
  138. package/dist/chunks/{empty-hkvg3is3uc6dj1at.js → empty-ft85jcbs7fd5t3tn.js} +11 -12
  139. package/dist/chunks/{engine-g5egnkub1ikv3wvy.js → engine-hzmefiqm63hu0c7i.js} +2 -2
  140. package/dist/chunks/{error-f4f6l13zx6tynxmy.js → error-lbnic2b20qr3mukp.js} +2 -2
  141. package/dist/chunks/{field-oqtso1v0oszlxi0e.js → field-jzzlgre0jmrr38o2.js} +4 -4
  142. package/dist/chunks/{flow-iz8sn24h5q6q4b10.js → flow-imvwzp5p2f8y2dxm.js} +7 -3
  143. package/dist/chunks/{formatNumber-kcnmauoqxku5a84c.js → formatNumber-b4kjdsebslm2b3t0.js} +2 -2
  144. package/dist/chunks/{getCssDimensions-olosvhh5husavesv.js → getCssDimensions-gckwdrp86f73cv51.js} +1 -1
  145. package/dist/chunks/{getElementTransform-cuiqmjglkrz4db6c.js → getElementTransform-cz3jyftv0x5io95f.js} +1 -1
  146. package/dist/chunks/getFiniteAnimations-jwd833ybtz81j5f0.js +13 -0
  147. package/dist/chunks/getHighlightReason-fhc53kq6qakcct9s.js +15 -0
  148. package/dist/chunks/{getPseudoElementBounds-x7b9uqi5hdb1lq2r.js → getPseudoElementBounds-csuw8kwsoeyxd5tv.js} +2 -2
  149. package/dist/chunks/{grid-fjlo3wlpkwgw56y9.js → grid-nwiczrab3r4w0zr2.js} +1 -1
  150. package/dist/chunks/{index.parts-ftxrjoy00esi3aau.js → index.parts-db9pzsm9rrs9tp0t.js} +12 -12
  151. package/dist/chunks/{index.parts-iq66xivmdw2mouvx.js → index.parts-ggacwr0yakuemead.js} +7 -7
  152. package/dist/chunks/{index.parts-g390bxx23hdko02m.js → index.parts-pcg3pmf3yyro841t.js} +2 -2
  153. package/dist/chunks/{inertValue-e0o6qvuef83v78fk.js → inertValue-n09gkjvwwa1kddov.js} +2 -2
  154. package/dist/chunks/{inline-copy-text-gbd7jhwpor27l4rq.js → inline-copy-text-57r67slswfqvgbaf.js} +2 -2
  155. package/dist/chunks/{input-group-fjr4r5ax0x78ppax.js → input-group-n08mcd8b36wbylro.js} +5 -5
  156. package/dist/chunks/{input-h5ox92gf13ge04hp.js → input-il37wjigy2xtgdo2.js} +4 -4
  157. package/dist/chunks/{input-c8lv9ulv0kortliq.js → input-ksy1w6j1m6olz6ck.js} +3 -3
  158. package/dist/chunks/{isElementDisabled-o0j7po84u0xjuwgg.js → isElementDisabled-dyqutxpzdfppbohx.js} +1 -1
  159. package/dist/chunks/itemEquality-ki3x4tzdhjlqjey6.js +56 -0
  160. package/dist/chunks/{label-gzyfw17u08irhdo8.js → label-hugrtzreeqk5mtqu.js} +10 -6
  161. package/dist/chunks/{layer-card-idh3863vdgprgqai.js → layer-card-mar4dya5kl1vvie6.js} +3 -3
  162. package/dist/chunks/{layer-dialog-j5ywmzs46ccg6oqy.js → layer-dialog-dwrrgv1wasrerow4.js} +71 -46
  163. package/dist/chunks/{link-cqyfjezntvr53rh7.js → link-h84bkh8eem39p529.js} +4 -4
  164. package/dist/chunks/{loader-j2v6fab8iucuxz1z.js → loader-kv5nk8j8tsuesxqo.js} +2 -6
  165. package/dist/chunks/{locale-provider-kjlnws7jln3ak0dr.js → locale-provider-e3310bgo4lnffqkd.js} +20 -8
  166. package/dist/chunks/{menubar-fjhotkmndttb8mua.js → menubar-m5pqhx7lu5z7mkks.js} +2 -2
  167. package/dist/chunks/{mergeCleanups-ix8l84cgutsbotpd.js → mergeCleanups-nw73c6jfwl5tyhw4.js} +1 -1
  168. package/dist/chunks/{meter-majprsslwmpbmkzg.js → meter-poh8jpe0qtq6mvee.js} +2 -2
  169. package/dist/chunks/{pagination-oaenm9t7ou3lmcgw.js → pagination-h24on80p2z5ugqdb.js} +3 -3
  170. package/dist/chunks/{popover-hr0bfgg48xzjggky.js → popover-nqrt3ykqv6sic8pz.js} +70 -16
  171. package/dist/chunks/{popupHandle-7ghmro8a5uerjwu5.js → popupHandle-dk3ixgc8flr7v971.js} +4 -4
  172. package/dist/chunks/popupStoreUtils-czfnxn051xakask5.js +868 -0
  173. package/dist/chunks/radio-d3pkrvsldfbdefav.js +203 -0
  174. package/dist/chunks/{reason-parts-m5ishukzeux3q0pc.js → reason-parts-hssx64rmlxyn6gw5.js} +3 -2
  175. package/dist/chunks/{resolveAriaLabelledBy-nc8mdie5shy87nsb.js → resolveAriaLabelledBy-knaucrjrjwnk7tvs.js} +1 -1
  176. package/dist/chunks/resolveValueLabel-ntacnb58mhka5gg0.js +70 -0
  177. package/dist/chunks/{safePolygon-kmd5wsz26l4xtj6c.js → safePolygon-ep4133qogeu5vjf3.js} +34 -38
  178. package/dist/chunks/{safeReact-hpp4cck3y2s5jg75.js → safeReact-ek77ilng4ekk7mgz.js} +2 -2
  179. package/dist/chunks/{scrollable-b6m9ze1u7ps0q1qn.js → scrollable-k784b35i80aolmvg.js} +8 -13
  180. package/dist/chunks/{select-futox5zqr3r80y9a.js → select-ey03k4630uckf1rk.js} +8 -8
  181. package/dist/chunks/{sensitive-input-cw33yncetxk3fbrl.js → sensitive-input-lfrrtyg9n5ulq3tb.js} +23 -28
  182. package/dist/chunks/{serializeValue-ipcakiw32jb7kany.js → serializeValue-d1otz2i7h5tygrwf.js} +1 -1
  183. package/dist/chunks/{sidebar-in9zhvr473afsjpp.js → sidebar-gluq5b5oacrdk4m4.js} +23 -16
  184. package/dist/chunks/{skeleton-line-m9dyh126t9k07jvg.js → skeleton-line-gjf1fecmyy82aejz.js} +1 -1
  185. package/dist/chunks/slider-juwif2d8xa5n0429.js +87 -0
  186. package/dist/chunks/{stringifyLocale-bxsgxdnzaef2vcar.js → stringifyLocale-gbxouqj7ol627jxh.js} +1 -1
  187. package/dist/chunks/{styles-kl02oyrlnld7arja.js → styles-eb8bvypmayf578jf.js} +2 -2
  188. package/dist/chunks/{surface-irf0af2mfglu4p0j.js → surface-ginwpan1pz61l6k2.js} +2 -2
  189. package/dist/chunks/{switch-cqsvolm7h69z7vgg.js → switch-mqf1ulvle4nd6d2t.js} +4 -4
  190. package/dist/chunks/{table-yf8ul2e5nbemioi1.js → table-nysse5tiwf47gg4k.js} +2 -2
  191. package/dist/chunks/{table-of-contents-cvduqgssxdcbpagh.js → table-of-contents-gkjv9ck8etbz64ej.js} +5 -2
  192. package/dist/chunks/{tabs-gf57qqf1wcclaejq.js → tabs-mmkz7q5rofnmogwt.js} +3 -3
  193. package/dist/chunks/{tag-input-ohfybx5dbxy3houy.js → tag-input-b10gfxoob9vcizpm.js} +6 -5
  194. package/dist/chunks/{text-f1wxz183ckq7qtl7.js → text-me99rjbjkaff98gp.js} +1 -2
  195. package/dist/chunks/{toast-bzaothy2yrezh787.js → toast-b4t9rt9y1sumcmy2.js} +4 -4
  196. package/dist/chunks/{toolbar-h213d8e22yjh5cwq.js → toolbar-hov6sa3ui366f447.js} +5 -5
  197. package/dist/chunks/{tooltip-o4natsv01lpq8oq2.js → tooltip-lguwh8bjhxwnjfus.js} +3 -3
  198. package/dist/chunks/use-copy-feedback-gl55ghst0csvpv4j.js +55 -0
  199. package/dist/chunks/{useAnchoredPopupScrollLock-kp3kai20u91sdm7v.js → useAnchoredPopupScrollLock-msm8tzkewysnunut.js} +4 -4
  200. package/dist/chunks/{useAnimationFrame-0tt315hl9n3jzl86.js → useAnimationFrame-k9lqdj9quln3sd85.js} +3 -3
  201. package/dist/chunks/{useAriaLabelledBy-ox8dum59shmgypq1.js → useAriaLabelledBy-j3j9jqlr9ukyk08s.js} +7 -6
  202. package/dist/chunks/{useBaseUiId-lg1teubxudgin0w2.js → useBaseUiId-nk4k7nj9h1cy76ny.js} +2 -2
  203. package/dist/chunks/{useButton-h7s9aq1sfw6arawe.js → useButton-lklvdzuhvj22bx07.js} +14 -12
  204. package/dist/chunks/{useClick-l0p0endoxrlp0ae5.js → useClick-pcbkcc7r620v1smu.js} +12 -12
  205. package/dist/chunks/{useCollapsiblePanel-g6t146nqj521pild.js → useCollapsiblePanel-lrfsgx21ds36cwlp.js} +75 -28
  206. package/dist/chunks/{useCompositeItem-p7090ga00dpqcg5j.js → useCompositeItem-2juex3zh9gyrs8e9.js} +4 -4
  207. package/dist/chunks/{useCompositeListItem-odg6yo4h8866b37o.js → useCompositeListItem-ekwo2j2rjkggg7xj.js} +3 -3
  208. package/dist/chunks/{useControlled-lfns1ot6kwowa4t4.js → useControlled-i3srnkxy598s0au9.js} +3 -3
  209. package/dist/chunks/{useFieldValidation-e5pc8loiwzd68g4f.js → useFieldValidation-oe16jiigp971yrzr.js} +7 -7
  210. package/dist/chunks/{useFloatingRootContext-c849wtis7gx013m8.js → useFloatingRootContext-k676b6m7f80bdapd.js} +6 -6
  211. package/dist/chunks/{useFocus-lqwrnfa1svv3bcx1.js → useFocus-mn7a9t9v6fnlb4mf.js} +12 -14
  212. package/dist/chunks/useId-82z8yqlmc1hy1c5t.js +50 -0
  213. package/dist/chunks/useInitialLiveRegionTextMutation-nl2hus7zx1h7ggno.js +86 -0
  214. package/dist/chunks/{useLabel-kcggu762z3z2taeb.js → useLabel-me6zzfvkypo458pi.js} +19 -9
  215. package/dist/chunks/{useLabelableId-gqiiuqqn2k0u62r4.js → useLabelableId-bjeh6q3pgrqjb7er.js} +6 -6
  216. package/dist/chunks/{useListNavigation-3nyjs362qcau34in.js → useListNavigation-hpddbd0cc9pvt461.js} +56 -74
  217. package/dist/chunks/{useOnMount-hadwgyauanbzrvem.js → useOnMount-gxggz1m0n869s6r0.js} +2 -2
  218. package/dist/chunks/{useOpenChangeComplete-lk2gfu250t7r20c6.js → useOpenChangeComplete-edtabjwqmechsyv6.js} +10 -8
  219. package/dist/chunks/{usePopupHandleStore-hx871cmn66j0q7wz.js → usePopupHandleStore-gawjmfjf1xdgiph3.js} +2 -2
  220. package/dist/chunks/{usePopupViewport-iy5j9zawjrr3pcs0.js → usePopupViewport-l6w01iohvzloghy8.js} +28 -36
  221. package/dist/chunks/{usePositioner-k9nc7cl550bgfwzs.js → usePositioner-mzvgnazldqvy44z2.js} +41 -72
  222. package/dist/chunks/usePressAndHold-k9ynk78pgf677kpx.js +179 -0
  223. package/dist/chunks/{usePreviousValue-io5t1pdxehw21l85.js → usePreviousValue-o6swt5tb7xhpdu4e.js} +1 -1
  224. package/dist/chunks/{useRegisterFieldControl-lvusf6vc963clx02.js → useRegisterFieldControl-m1stc9l9y4cndf0k.js} +4 -4
  225. package/dist/chunks/{useRegisteredLabelId-hw6b87h1k7kow1o2.js → useRegisteredLabelId-b7u9ygya03448zzn.js} +3 -3
  226. package/dist/chunks/{useRender-onwjigxa00uch2ip.js → useRender-h9ktka9xt4obdv6y.js} +2 -2
  227. package/dist/chunks/{useRenderDialogRoot-lddunc01twftravv.js → useRenderDialogRoot-bsqrqpc1ddau7xg4.js} +57 -20
  228. package/dist/chunks/{useRenderElement-lrvp2pwrpt5zq1zd.js → useRenderElement-nkklxbq1rp7h2kw0.js} +17 -24
  229. package/dist/chunks/{useScrollLock-buonkbwuland9wl3.js → useScrollLock-le7ajwlt7oh6fzxi.js} +68 -72
  230. package/dist/chunks/useSetFieldFocused-fbvj7gcv67dqfkp0.js +35 -0
  231. package/dist/chunks/{useStableCallback-b1i1ghzd9k75bb85.js → useStableCallback-le5qgj6p9l04729n.js} +3 -3
  232. package/dist/chunks/{useSwipeDismiss-m1s13x9t9ey9ax3p.js → useSwipeDismiss-e8tfxzlp05p86mgb.js} +35 -54
  233. package/dist/chunks/{useTimeout-cpql3c8p250cr093.js → useTimeout-f0ayn2l2l9aop4l8.js} +3 -3
  234. package/dist/chunks/{useTransitionStatus-bwqaavnekreihom2.js → useTransitionStatus-disysoblzgk34w14.js} +9 -5
  235. package/dist/chunks/{useTriggerFocusGuards-lz7wt484xltizro4.js → useTriggerFocusGuards-dyd3hb1m8en8ct50.js} +12 -22
  236. package/dist/chunks/useTriggerSwitchTransition-hk5j36hd5dq2ok6w.js +62 -0
  237. package/dist/chunks/{useTypeahead-kvag4w6hu2g1kbwt.js → useTypeahead-kfdsw1ksl5bgvvzl.js} +16 -12
  238. package/dist/chunks/{useValueAsRef-o4s9ohb3aczypmnk.js → useValueAsRef-dv0tmfr1xlpzdlru.js} +3 -3
  239. package/dist/chunks/{useValueChanged-cz5wflhe8g15n6w1.js → useValueChanged-fjssa2v6d4w8y332.js} +3 -3
  240. package/dist/chunks/{utils-0i7gujfv3f3e9dqh.js → utils-o44zfmzz9z7uyj1v.js} +0 -1
  241. package/dist/chunks/{valueToPercent-d7gbqk1umostj7ch.js → valueToPercent-djk2mqnihth2uvf6.js} +1 -1
  242. package/dist/chunks/vendor-styling-gs32v7xt5znc8kg0.js +1167 -0
  243. package/dist/chunks/{vendor-utils-ecfbsk425x1bm0gh.js → vendor-utils-io8z5lsfxq8m2dcc.js} +88 -30
  244. package/dist/chunks/{visuallyHidden-nous086atnlxtf74.js → visuallyHidden-kzzs9hbe93is3rci.js} +2 -1
  245. package/dist/code.js +6 -11
  246. package/dist/components/autocomplete.d.ts +1 -1
  247. package/dist/components/autocomplete.js +1 -1
  248. package/dist/components/badge.js +1 -1
  249. package/dist/components/banner.js +1 -1
  250. package/dist/components/breadcrumbs.js +1 -1
  251. package/dist/components/button-group.js +1 -1
  252. package/dist/components/button.js +1 -1
  253. package/dist/components/chart.d.ts +1 -1
  254. package/dist/components/chart.js +1 -1
  255. package/dist/components/checkbox.d.ts +1 -1
  256. package/dist/components/checkbox.js +1 -1
  257. package/dist/components/clipboard-text.js +1 -1
  258. package/dist/components/cloudflare-logo.js +1 -1
  259. package/dist/components/code.js +1 -1
  260. package/dist/components/collapsible.js +1 -1
  261. package/dist/components/combobox.js +1 -1
  262. package/dist/components/command-palette.js +1 -1
  263. package/dist/components/date-picker.d.ts +1 -1
  264. package/dist/components/date-picker.js +1 -1
  265. package/dist/components/date-range-picker.js +1 -1
  266. package/dist/components/dialog.js +1 -1
  267. package/dist/components/dropdown.d.ts +1 -1
  268. package/dist/components/dropdown.js +1 -1
  269. package/dist/components/empty.js +1 -1
  270. package/dist/components/field.js +1 -1
  271. package/dist/components/flow.js +1 -1
  272. package/dist/components/grid.js +1 -1
  273. package/dist/components/inline-copy-text.js +1 -1
  274. package/dist/components/input-group.js +1 -1
  275. package/dist/components/input.js +3 -3
  276. package/dist/components/label.d.ts +1 -1
  277. package/dist/components/label.js +1 -1
  278. package/dist/components/layer-card.js +1 -1
  279. package/dist/components/layer-dialog.d.ts +2 -2
  280. package/dist/components/layer-dialog.js +1 -1
  281. package/dist/components/link.js +1 -1
  282. package/dist/components/loader.js +2 -2
  283. package/dist/components/menubar.js +1 -1
  284. package/dist/components/meter.js +1 -1
  285. package/dist/components/pagination.js +1 -1
  286. package/dist/components/popover.d.ts +1 -1
  287. package/dist/components/popover.js +1 -1
  288. package/dist/components/radio.d.ts +1 -1
  289. package/dist/components/radio.js +1 -1
  290. package/dist/components/select.js +1 -1
  291. package/dist/components/sensitive-input.js +1 -1
  292. package/dist/components/sidebar.d.ts +1 -1
  293. package/dist/components/sidebar.js +1 -1
  294. package/dist/components/slider.d.ts +2 -0
  295. package/dist/components/slider.js +3 -0
  296. package/dist/components/surface.js +1 -1
  297. package/dist/components/switch.js +1 -1
  298. package/dist/components/table-of-contents.js +1 -1
  299. package/dist/components/table.d.ts +1 -1
  300. package/dist/components/table.js +1 -1
  301. package/dist/components/tabs.js +1 -1
  302. package/dist/components/tag-input.js +1 -1
  303. package/dist/components/text.js +1 -1
  304. package/dist/components/toast.js +2 -2
  305. package/dist/components/toolbar.js +1 -1
  306. package/dist/components/tooltip.js +1 -1
  307. package/dist/{index-NqlNd7cQ.d.ts → index-5bJAnzUo.d.ts} +19 -7
  308. package/dist/{index-Cqrye3KD.d.ts → index-AUC5xRcO.d.ts} +64 -7
  309. package/dist/{index-C0d8uwYO.d.ts → index-BW1HVU7T.d.ts} +33 -5
  310. package/dist/index-BWe6haHU.d.ts +64 -0
  311. package/dist/{index-ChGFA5-n.d.ts → index-BvNXYn7u.d.ts} +4 -1
  312. package/dist/{index-D-y1ktn-.d.ts → index-CE09bLNb.d.ts} +5 -1
  313. package/dist/{index-bAud6rG2.d.ts → index-CU_lnxg7.d.ts} +13 -4
  314. package/dist/{index-Vj9ZzRh0.d.ts → index-DNsSKNUe.d.ts} +4 -1
  315. package/dist/{index-J1qdw9mL.d.ts → index-DjSGDESy.d.ts} +36 -2
  316. package/dist/{index-_Sl5wohy.d.ts → index-RP_rt8vB.d.ts} +1 -1
  317. package/dist/{index-Cp0aQngm.d.ts → index-T1sSoiWG.d.ts} +3 -1
  318. package/dist/{index-CtTNoYA2.d.ts → index-fsZE0vPs.d.ts} +12 -0
  319. package/dist/index.d.ts +14 -13
  320. package/dist/index.js +68 -63
  321. package/dist/{locale-provider-BLGya10h.d.ts → locale-provider-CAjVN3_0.d.ts} +6 -2
  322. package/dist/primitives/accordion.js +2 -2
  323. package/dist/primitives/alert-dialog.js +7 -2
  324. package/dist/primitives/autocomplete.js +5 -2
  325. package/dist/primitives/avatar.js +2 -2
  326. package/dist/primitives/button.js +2 -2
  327. package/dist/primitives/checkbox-group.js +3 -2
  328. package/dist/primitives/checkbox.js +3 -2
  329. package/dist/primitives/collapsible.js +4 -2
  330. package/dist/primitives/combobox.js +5 -2
  331. package/dist/primitives/context-menu.js +5 -2
  332. package/dist/primitives/csp-provider.js +1 -1
  333. package/dist/primitives/dialog.js +8 -2
  334. package/dist/primitives/direction-provider.js +2 -2
  335. package/dist/primitives/drawer.js +5 -2
  336. package/dist/primitives/field.js +3 -2
  337. package/dist/primitives/fieldset.js +2 -2
  338. package/dist/primitives/form.js +1 -1
  339. package/dist/primitives/input.js +3 -2
  340. package/dist/primitives/menu.js +5 -2
  341. package/dist/primitives/menubar.js +2 -2
  342. package/dist/primitives/meter.js +1 -1
  343. package/dist/primitives/navigation-menu.js +2 -2
  344. package/dist/primitives/number-field.js +2 -2
  345. package/dist/primitives/otp-field.js +3 -2
  346. package/dist/primitives/popover.js +2 -2
  347. package/dist/primitives/preview-card.js +2 -2
  348. package/dist/primitives/progress.js +2 -2
  349. package/dist/primitives/radio-group.js +3 -2
  350. package/dist/primitives/radio.js +3 -2
  351. package/dist/primitives/scroll-area.js +3 -2
  352. package/dist/primitives/select.js +4 -2
  353. package/dist/primitives/separator.js +3 -2
  354. package/dist/primitives/slider.js +3 -2
  355. package/dist/primitives/switch.js +3 -2
  356. package/dist/primitives/tabs.js +3 -2
  357. package/dist/primitives/toast.js +4 -2
  358. package/dist/primitives/toggle-group.js +2 -2
  359. package/dist/primitives/toggle.js +2 -2
  360. package/dist/primitives/toolbar.js +2 -2
  361. package/dist/primitives/tooltip.js +3 -2
  362. package/dist/primitives.d.ts +1 -1
  363. package/dist/primitives.js +70 -42
  364. package/dist/styles/kumo-standalone.css +1 -1
  365. package/dist/utils.d.ts +1 -1
  366. package/dist/utils.js +3 -3
  367. package/package.json +7 -3
  368. package/scripts/component-registry/discovery.ts +1 -0
  369. package/scripts/component-registry/metadata.ts +38 -0
  370. package/dist/chunks/DialogViewport-e1tqfisqexc7o9z8.js +0 -42
  371. package/dist/chunks/MenuBackdrop-ouznwyglg27bosoj.js +0 -73
  372. package/dist/chunks/index.parts-bq90erougcgrwlgk.js +0 -242
  373. package/dist/chunks/index.parts-cdxa6fwtp3lpkpp4.js +0 -11
  374. package/dist/chunks/index.parts-cl2xux9bjec6cibd.js +0 -44
  375. package/dist/chunks/index.parts-e9s1lqq3qa9l6ndm.js +0 -10
  376. package/dist/chunks/index.parts-eks3uafpskcxle6j.js +0 -99
  377. package/dist/chunks/index.parts-fbip2x29k5okvypg.js +0 -64
  378. package/dist/chunks/index.parts-fhza3s183grld7zq.js +0 -102
  379. package/dist/chunks/index.parts-hmx3qlh517ii56yi.js +0 -116
  380. package/dist/chunks/index.parts-i6gbeimeit8gzhvi.js +0 -10
  381. package/dist/chunks/index.parts-ioii4acz2bjrf6sb.js +0 -77
  382. package/dist/chunks/index.parts-jjup1zgnozoxi7ky.js +0 -140
  383. package/dist/chunks/index.parts-jpm6c0fe0gyky12m.js +0 -95
  384. package/dist/chunks/index.parts-moguar0t0u4aumou.js +0 -31
  385. package/dist/chunks/index.parts-mw0e646n3qp6v1qe.js +0 -73
  386. package/dist/chunks/index.parts-olcmo45gi8e1qma1.js +0 -10
  387. package/dist/chunks/popupStoreUtils-i0y57dvmcnqrh4pv.js +0 -444
  388. package/dist/chunks/radio-35dx7y6rjrezbjsp.js +0 -173
  389. package/dist/chunks/resolveValueLabel-hpmsash3ektitvnb.js +0 -123
  390. package/dist/chunks/useDismiss-me91ertzzz3gly12.js +0 -384
  391. package/dist/chunks/useFilteredItems-kw2za6m9bng7twr0.js +0 -181
  392. package/dist/chunks/useForcedRerendering-i3n4ms0xose8borh.js +0 -14
  393. package/dist/chunks/useId-f8w657f9yys10abm.js +0 -32
  394. package/dist/chunks/vendor-styling-da1xibnxfkjmtglr.js +0 -3631
@@ -1,3631 +0,0 @@
1
- "use client";
2
- //#region ../../node_modules/.pnpm/cnfast@0.0.8/node_modules/cnfast/dist/index.mjs
3
- const isArray = Array.isArray;
4
- const resolveClassValue = (value) => {
5
- if (!value) return "";
6
- if (typeof value === "string") return value;
7
- if (typeof value === "number") return "" + value;
8
- let result = "";
9
- if (isArray(value)) {
10
- const length = value.length;
11
- for (let index = 0; index < length; index++) {
12
- const item = value[index];
13
- if (!item) continue;
14
- const resolved = typeof item === "string" ? item : resolveClassValue(item);
15
- if (resolved) {
16
- if (result) result += " ";
17
- result += resolved;
18
- }
19
- }
20
- return result;
21
- }
22
- if (typeof value === "object") {
23
- for (const key in value) if (value[key]) {
24
- if (result) result += " ";
25
- result += key;
26
- }
27
- }
28
- return result;
29
- };
30
- /**
31
- * Concatenates two arrays faster than the array spread operator.
32
- */
33
- const concatArrays = (array1, array2) => {
34
- const length1 = array1.length;
35
- const length2 = array2.length;
36
- const combinedArray = new Array(length1 + length2);
37
- for (let i = 0; i < length1; i++) combinedArray[i] = array1[i];
38
- for (let i = 0; i < length2; i++) combinedArray[length1 + i] = array2[i];
39
- return combinedArray;
40
- };
41
- const createClassValidatorObject = (classGroupId, validator) => ({
42
- classGroupId,
43
- validator
44
- });
45
- const createClassPartObject = (nextPart = /* @__PURE__ */ new Map(), validators = null, classGroupId) => ({
46
- nextPart,
47
- validators,
48
- classGroupId
49
- });
50
- const CLASS_PART_SEPARATOR = "-";
51
- const EMPTY_CONFLICTS = [];
52
- const ARBITRARY_PROPERTY_PREFIX = "arbitrary..";
53
- const createClassGroupUtils = (config) => {
54
- const classMap = createClassMap(config);
55
- const { conflictingClassGroups, conflictingClassGroupModifiers } = config;
56
- const getClassGroupId = (className) => {
57
- if (className[0] === "[" && className[className.length - 1] === "]") return getGroupIdForArbitraryProperty(className);
58
- const classParts = className.split(CLASS_PART_SEPARATOR);
59
- return getGroupRecursive(classParts, classParts[0] === "" && classParts.length > 1 ? 1 : 0, classMap);
60
- };
61
- const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
62
- if (hasPostfixModifier) {
63
- const modifierConflicts = conflictingClassGroupModifiers[classGroupId];
64
- const baseConflicts = conflictingClassGroups[classGroupId];
65
- if (modifierConflicts) {
66
- if (baseConflicts) return concatArrays(baseConflicts, modifierConflicts);
67
- return modifierConflicts;
68
- }
69
- return baseConflicts || EMPTY_CONFLICTS;
70
- }
71
- return conflictingClassGroups[classGroupId] || EMPTY_CONFLICTS;
72
- };
73
- return {
74
- getClassGroupId,
75
- getConflictingClassGroupIds
76
- };
77
- };
78
- const getGroupRecursive = (classParts, startIndex, classPartObject) => {
79
- if (classParts.length - startIndex === 0) return classPartObject.classGroupId;
80
- const currentClassPart = classParts[startIndex];
81
- const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
82
- if (nextClassPartObject) {
83
- const result = getGroupRecursive(classParts, startIndex + 1, nextClassPartObject);
84
- if (result) return result;
85
- }
86
- const validators = classPartObject.validators;
87
- if (validators === null) return;
88
- const classRest = startIndex === 0 ? classParts.join(CLASS_PART_SEPARATOR) : classParts.slice(startIndex).join(CLASS_PART_SEPARATOR);
89
- const validatorsLength = validators.length;
90
- for (let index = 0; index < validatorsLength; index++) {
91
- const validatorObject = validators[index];
92
- if (validatorObject.validator(classRest)) return validatorObject.classGroupId;
93
- }
94
- };
95
- /**
96
- * Get the class group ID for an arbitrary property.
97
- *
98
- * @param className - The class name to get the group ID for. Is expected to be string starting with `[` and ending with `]`.
99
- */
100
- const getGroupIdForArbitraryProperty = (className) => {
101
- const content = className.slice(1, -1);
102
- const colonIndex = content.indexOf(":");
103
- if (colonIndex === -1) return;
104
- const property = content.slice(0, colonIndex);
105
- return property ? ARBITRARY_PROPERTY_PREFIX + property : void 0;
106
- };
107
- /**
108
- * Exported for testing only
109
- */
110
- const createClassMap = (config) => {
111
- const { theme, classGroups } = config;
112
- return processClassGroups(classGroups, theme);
113
- };
114
- const processClassGroups = (classGroups, theme) => {
115
- const classMap = createClassPartObject();
116
- for (const classGroupId in classGroups) {
117
- const group = classGroups[classGroupId];
118
- processClassesRecursively(group, classMap, classGroupId, theme);
119
- }
120
- return classMap;
121
- };
122
- const processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
123
- const length = classGroup.length;
124
- for (let index = 0; index < length; index++) {
125
- const classDefinition = classGroup[index];
126
- processClassDefinition(classDefinition, classPartObject, classGroupId, theme);
127
- }
128
- };
129
- const processClassDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
130
- if (typeof classDefinition === "string") {
131
- processStringDefinition(classDefinition, classPartObject, classGroupId);
132
- return;
133
- }
134
- if (typeof classDefinition === "function") {
135
- processFunctionDefinition(classDefinition, classPartObject, classGroupId, theme);
136
- return;
137
- }
138
- processObjectDefinition(classDefinition, classPartObject, classGroupId, theme);
139
- };
140
- const processStringDefinition = (classDefinition, classPartObject, classGroupId) => {
141
- const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
142
- classPartObjectToEdit.classGroupId = classGroupId;
143
- };
144
- const processFunctionDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
145
- if (isThemeGetter(classDefinition)) {
146
- processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
147
- return;
148
- }
149
- if (classPartObject.validators === null) classPartObject.validators = [];
150
- classPartObject.validators.push(createClassValidatorObject(classGroupId, classDefinition));
151
- };
152
- const processObjectDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
153
- const entries = Object.entries(classDefinition);
154
- const length = entries.length;
155
- for (let index = 0; index < length; index++) {
156
- const [key, value] = entries[index];
157
- processClassesRecursively(value, getPart(classPartObject, key), classGroupId, theme);
158
- }
159
- };
160
- const getPart = (classPartObject, path) => {
161
- let current = classPartObject;
162
- const parts = path.split(CLASS_PART_SEPARATOR);
163
- const length = parts.length;
164
- for (let index = 0; index < length; index++) {
165
- const part = parts[index];
166
- let next = current.nextPart.get(part);
167
- if (!next) {
168
- next = createClassPartObject();
169
- current.nextPart.set(part, next);
170
- }
171
- current = next;
172
- }
173
- return current;
174
- };
175
- const isThemeGetter = (classDefinition) => "isThemeGetter" in classDefinition && classDefinition.isThemeGetter === true;
176
- const CHAR_MODIFIER_SEPARATOR = 58;
177
- const CHAR_POSTFIX_SEPARATOR = 47;
178
- const CHAR_OPEN_BRACKET = 91;
179
- const CHAR_CLOSE_BRACKET = 93;
180
- const CHAR_OPEN_PAREN = 40;
181
- const CHAR_CLOSE_PAREN = 41;
182
- const CHAR_IMPORTANT = 33;
183
- const createResultObject = (modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition) => ({
184
- modifiers,
185
- hasImportantModifier,
186
- baseClassName,
187
- maybePostfixModifierPosition,
188
- isExternal: void 0
189
- });
190
- /**
191
- * Parse class name into parts.
192
- *
193
- * Inspired by `splitAtTopLevelOnly` used in Tailwind CSS
194
- * @see https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
195
- */
196
- const parseClassName = (className) => {
197
- const modifiers = [];
198
- let bracketDepth = 0;
199
- let parenDepth = 0;
200
- let modifierStart = 0;
201
- let postfixModifierPosition;
202
- const len = className.length;
203
- for (let index = 0; index < len; index++) {
204
- const charCode = className.charCodeAt(index);
205
- if (bracketDepth === 0 && parenDepth === 0) {
206
- if (charCode === CHAR_MODIFIER_SEPARATOR) {
207
- modifiers.push(className.slice(modifierStart, index));
208
- modifierStart = index + 1;
209
- continue;
210
- }
211
- if (charCode === CHAR_POSTFIX_SEPARATOR) {
212
- postfixModifierPosition = index;
213
- continue;
214
- }
215
- }
216
- if (charCode === CHAR_OPEN_BRACKET) bracketDepth++;
217
- else if (charCode === CHAR_CLOSE_BRACKET) bracketDepth--;
218
- else if (charCode === CHAR_OPEN_PAREN) parenDepth++;
219
- else if (charCode === CHAR_CLOSE_PAREN) parenDepth--;
220
- }
221
- const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.slice(modifierStart);
222
- let baseClassName = baseClassNameWithImportantModifier;
223
- let hasImportantModifier = false;
224
- const lastIndex = baseClassNameWithImportantModifier.length - 1;
225
- if (baseClassNameWithImportantModifier.charCodeAt(lastIndex) === CHAR_IMPORTANT) {
226
- baseClassName = baseClassNameWithImportantModifier.slice(0, -1);
227
- hasImportantModifier = true;
228
- } else if (baseClassNameWithImportantModifier.charCodeAt(0) === CHAR_IMPORTANT) {
229
- baseClassName = baseClassNameWithImportantModifier.slice(1);
230
- hasImportantModifier = true;
231
- }
232
- const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
233
- return createResultObject(modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition);
234
- };
235
- /**
236
- * Sorts modifiers according to following schema:
237
- * - Predefined modifiers are sorted alphabetically
238
- * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it
239
- */
240
- const createSortModifiers = (config) => {
241
- const orderSensitiveModifiers = new Set(config.orderSensitiveModifiers);
242
- return (modifiers) => {
243
- const result = [];
244
- let currentSegment = [];
245
- for (let index = 0; index < modifiers.length; index++) {
246
- const modifier = modifiers[index];
247
- const isArbitrary = modifier[0] === "[";
248
- const isOrderSensitive = orderSensitiveModifiers.has(modifier);
249
- if (isArbitrary || isOrderSensitive) {
250
- if (currentSegment.length > 0) {
251
- currentSegment.sort();
252
- for (let segmentIndex = 0; segmentIndex < currentSegment.length; segmentIndex++) result.push(currentSegment[segmentIndex]);
253
- currentSegment = [];
254
- }
255
- result.push(modifier);
256
- } else currentSegment.push(modifier);
257
- }
258
- if (currentSegment.length > 0) {
259
- currentSegment.sort();
260
- for (let segmentIndex = 0; segmentIndex < currentSegment.length; segmentIndex++) result.push(currentSegment[segmentIndex]);
261
- }
262
- return result;
263
- };
264
- };
265
- const EXTERNAL_DESCRIPTOR = {
266
- isExternal: true,
267
- classId: -1,
268
- conflictIds: []
269
- };
270
- /**
271
- * Per-token descriptor cache capacity (entries). Larger than the whole-string LRU because
272
- * individual tokens are far more numerous but cheap to store; the LRU bound prevents
273
- * unbounded growth when callers pass dynamically generated arbitrary values (e.g. `w-[123px]`).
274
- */
275
- const DESCRIPTOR_CACHE_SIZE = 4096;
276
- const createConfigUtils = (config) => {
277
- const sortModifiers = createSortModifiers(config);
278
- const postfixLookupClassGroupIds = createPostfixLookupClassGroupIds(config);
279
- const { getClassGroupId, getConflictingClassGroupIds } = createClassGroupUtils(config);
280
- let descriptorCache = Object.create(null);
281
- let previousDescriptorCache = Object.create(null);
282
- let descriptorCacheSize = 0;
283
- let claimedGeneration = /* @__PURE__ */ new Int32Array(256);
284
- let currentGeneration = 0;
285
- let keepFlags = /* @__PURE__ */ new Uint8Array(64);
286
- let splitSawNonSpaceWhitespace = false;
287
- const splitClassList = (classList) => {
288
- const tokens = [];
289
- const length = classList.length;
290
- let tokenStart = -1;
291
- splitSawNonSpaceWhitespace = false;
292
- for (let index = 0; index < length; index++) {
293
- const charCode = classList.charCodeAt(index);
294
- if (charCode === 32) {
295
- if (tokenStart !== -1) {
296
- tokens.push(classList.slice(tokenStart, index));
297
- tokenStart = -1;
298
- }
299
- } else if (charCode >= 9 && charCode <= 13) {
300
- splitSawNonSpaceWhitespace = true;
301
- if (tokenStart !== -1) {
302
- tokens.push(classList.slice(tokenStart, index));
303
- tokenStart = -1;
304
- }
305
- } else if (tokenStart === -1) tokenStart = index;
306
- }
307
- if (tokenStart !== -1) tokens.push(classList.slice(tokenStart));
308
- return tokens;
309
- };
310
- const conflictKeyIds = /* @__PURE__ */ new Map();
311
- let nextConflictKeyId = 0;
312
- const internConflictKey = (conflictKey) => {
313
- let id = conflictKeyIds.get(conflictKey);
314
- if (id === void 0) {
315
- id = nextConflictKeyId++;
316
- conflictKeyIds.set(conflictKey, id);
317
- if (id >= claimedGeneration.length) {
318
- const grown = new Int32Array(claimedGeneration.length * 2);
319
- grown.set(claimedGeneration);
320
- claimedGeneration = grown;
321
- }
322
- }
323
- return id;
324
- };
325
- const computeClassDescriptor = (originalClassName) => {
326
- const { isExternal, modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition } = parseClassName(originalClassName);
327
- if (isExternal) return EXTERNAL_DESCRIPTOR;
328
- let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
329
- let classGroupId;
330
- if (hasPostfixModifier) {
331
- classGroupId = getClassGroupId(baseClassName.substring(0, maybePostfixModifierPosition));
332
- const classGroupIdWithPostfix = classGroupId && postfixLookupClassGroupIds[classGroupId] ? getClassGroupId(baseClassName) : void 0;
333
- if (classGroupIdWithPostfix && classGroupIdWithPostfix !== classGroupId) {
334
- classGroupId = classGroupIdWithPostfix;
335
- hasPostfixModifier = false;
336
- }
337
- } else classGroupId = getClassGroupId(baseClassName);
338
- if (!classGroupId) {
339
- if (!hasPostfixModifier) return EXTERNAL_DESCRIPTOR;
340
- classGroupId = getClassGroupId(baseClassName);
341
- if (!classGroupId) return EXTERNAL_DESCRIPTOR;
342
- hasPostfixModifier = false;
343
- }
344
- const variantModifier = modifiers.length === 0 ? "" : modifiers.length === 1 ? modifiers[0] : sortModifiers(modifiers).join(":");
345
- const modifierId = hasImportantModifier ? variantModifier + "!" : variantModifier;
346
- const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
347
- const conflictIds = [];
348
- for (let index = 0; index < conflictGroups.length; index++) conflictIds.push(internConflictKey(modifierId + conflictGroups[index]));
349
- return {
350
- isExternal: false,
351
- classId: internConflictKey(modifierId + classGroupId),
352
- conflictIds
353
- };
354
- };
355
- const getClassDescriptor = (originalClassName) => {
356
- let descriptor = descriptorCache[originalClassName];
357
- if (descriptor !== void 0) return descriptor;
358
- descriptor = previousDescriptorCache[originalClassName];
359
- if (descriptor === void 0) descriptor = computeClassDescriptor(originalClassName);
360
- descriptorCache[originalClassName] = descriptor;
361
- if (++descriptorCacheSize > DESCRIPTOR_CACHE_SIZE) {
362
- descriptorCacheSize = 0;
363
- previousDescriptorCache = descriptorCache;
364
- descriptorCache = Object.create(null);
365
- }
366
- return descriptor;
367
- };
368
- const mergeClassList = (classList) => {
369
- const classNames = splitClassList(classList);
370
- const classCount = classNames.length;
371
- if (classCount === 1) return classNames[0];
372
- currentGeneration = currentGeneration + 1 | 0;
373
- if (currentGeneration === 0) currentGeneration = 1;
374
- const generation = currentGeneration;
375
- if (classCount > keepFlags.length) {
376
- let capacity = keepFlags.length;
377
- while (capacity < classCount) capacity *= 2;
378
- keepFlags = new Uint8Array(capacity);
379
- }
380
- let didDrop = false;
381
- let tokenCharCount = 0;
382
- for (let index = classCount - 1; index >= 0; index -= 1) {
383
- const className = classNames[index];
384
- tokenCharCount += className.length;
385
- const descriptor = getClassDescriptor(className);
386
- if (descriptor.isExternal) {
387
- keepFlags[index] = 1;
388
- continue;
389
- }
390
- const classId = descriptor.classId;
391
- if (claimedGeneration[classId] === generation) {
392
- keepFlags[index] = 0;
393
- didDrop = true;
394
- continue;
395
- }
396
- claimedGeneration[classId] = generation;
397
- const conflictIds = descriptor.conflictIds;
398
- for (let conflictIndex = 0; conflictIndex < conflictIds.length; conflictIndex++) claimedGeneration[conflictIds[conflictIndex]] = generation;
399
- keepFlags[index] = 1;
400
- }
401
- if (!didDrop && !splitSawNonSpaceWhitespace && classList.length === tokenCharCount + classCount - 1) return classList;
402
- let result = "";
403
- for (let index = 0; index < classCount; index++) if (keepFlags[index] === 1) {
404
- if (result) result += " ";
405
- result += classNames[index];
406
- }
407
- return result;
408
- };
409
- return {
410
- parseClassName,
411
- sortModifiers,
412
- postfixLookupClassGroupIds,
413
- getClassGroupId,
414
- getConflictingClassGroupIds,
415
- getClassDescriptor,
416
- mergeClassList
417
- };
418
- };
419
- const createPostfixLookupClassGroupIds = (config) => {
420
- const lookup = Object.create(null);
421
- const classGroupIds = config.postfixLookupClassGroups;
422
- if (classGroupIds) for (let index = 0; index < classGroupIds.length; index++) lookup[classGroupIds[index]] = true;
423
- return lookup;
424
- };
425
- const twJoin = (...classLists) => {
426
- let index = 0;
427
- let argument;
428
- let resolvedValue;
429
- let string = "";
430
- while (index < classLists.length) if (argument = classLists[index++]) {
431
- if (resolvedValue = toValue(argument)) {
432
- if (string) string += " ";
433
- string += resolvedValue;
434
- }
435
- }
436
- return string;
437
- };
438
- const toValue = (value) => {
439
- if (typeof value === "string") return value;
440
- let resolvedValue;
441
- let string = "";
442
- for (let index = 0; index < value.length; index++) if (value[index]) {
443
- if (resolvedValue = toValue(value[index])) {
444
- if (string) string += " ";
445
- string += resolvedValue;
446
- }
447
- }
448
- return string;
449
- };
450
- /**
451
- * Whole-string result cache capacity. Matches tailwind-merge's default; cnfast ships a single,
452
- * non-configurable config so it is baked in rather than exposed as an option.
453
- */
454
- const MERGE_CACHE_SIZE = 500;
455
- const createTailwindMerge = (createConfig) => {
456
- let configUtils;
457
- let mergeClassList;
458
- let cache = Object.create(null);
459
- let previousCache = Object.create(null);
460
- let cacheSize = 0;
461
- const initTailwindMerge = (classList) => {
462
- configUtils = createConfigUtils(createConfig());
463
- mergeClassList = configUtils.mergeClassList;
464
- merge.mergeString = tailwindMerge;
465
- return tailwindMerge(classList);
466
- };
467
- const tailwindMerge = (classList) => {
468
- let result = cache[classList];
469
- if (result !== void 0) return result;
470
- result = previousCache[classList];
471
- if (result === void 0) result = mergeClassList(classList);
472
- cache[classList] = result;
473
- if (++cacheSize > MERGE_CACHE_SIZE) {
474
- cacheSize = 0;
475
- previousCache = cache;
476
- cache = Object.create(null);
477
- }
478
- return result;
479
- };
480
- const merge = (...args) => merge.mergeString(twJoin(...args));
481
- merge.mergeString = initTailwindMerge;
482
- return merge;
483
- };
484
- const fallbackThemeArr = [];
485
- const fromTheme = (key) => {
486
- const themeGetter = (theme) => theme[key] || fallbackThemeArr;
487
- themeGetter.isThemeGetter = true;
488
- return themeGetter;
489
- };
490
- const arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
491
- const arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
492
- const fractionRegex = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/;
493
- const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
494
- const lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
495
- const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
496
- const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
497
- const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
498
- const toNumber = Number;
499
- const numberIsNaN = Number.isNaN;
500
- const numberIsInteger = Number.isInteger;
501
- const isFraction = (value) => fractionRegex.test(value);
502
- const isNumber = (value) => Boolean(value) && !numberIsNaN(toNumber(value));
503
- const isInteger = (value) => Boolean(value) && numberIsInteger(toNumber(value));
504
- const isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
505
- const isTshirtSize = (value) => tshirtUnitRegex.test(value);
506
- const isAny = () => true;
507
- const isLengthOnly = (value) => lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);
508
- const isNever = () => false;
509
- const isShadow = (value) => shadowRegex.test(value);
510
- const isImage = (value) => imageRegex.test(value);
511
- const isAnyNonArbitrary = (value) => !isArbitraryValue(value) && !isArbitraryVariable(value);
512
- const isNamedContainerQuery = (value) => value.startsWith("@container") && (value[10] === "/" && value[11] !== void 0 || value[11] === "s" && value[16] !== void 0 && value.startsWith("-size/", 10) || value[11] === "n" && value[18] !== void 0 && value.startsWith("-normal/", 10));
513
- const isArbitrarySize = (value) => getIsArbitraryValue(value, isLabelSize, isNever);
514
- const isArbitraryValue = (value) => arbitraryValueRegex.test(value);
515
- const isArbitraryLength = (value) => getIsArbitraryValue(value, isLabelLength, isLengthOnly);
516
- const isArbitraryNumber = (value) => getIsArbitraryValue(value, isLabelNumber, isNumber);
517
- const isArbitraryWeight = (value) => getIsArbitraryValue(value, isLabelWeight, isAny);
518
- const isArbitraryFamilyName = (value) => getIsArbitraryValue(value, isLabelFamilyName, isNever);
519
- const isArbitraryPosition = (value) => getIsArbitraryValue(value, isLabelPosition, isNever);
520
- const isArbitraryImage = (value) => getIsArbitraryValue(value, isLabelImage, isImage);
521
- const isArbitraryShadow = (value) => getIsArbitraryValue(value, isLabelShadow, isShadow);
522
- const isArbitraryVariable = (value) => arbitraryVariableRegex.test(value);
523
- const isArbitraryVariableLength = (value) => getIsArbitraryVariable(value, isLabelLength);
524
- const isArbitraryVariableFamilyName = (value) => getIsArbitraryVariable(value, isLabelFamilyName);
525
- const isArbitraryVariablePosition = (value) => getIsArbitraryVariable(value, isLabelPosition);
526
- const isArbitraryVariableSize = (value) => getIsArbitraryVariable(value, isLabelSize);
527
- const isArbitraryVariableImage = (value) => getIsArbitraryVariable(value, isLabelImage);
528
- const isArbitraryVariableShadow = (value) => getIsArbitraryVariable(value, isLabelShadow, true);
529
- const isArbitraryVariableWeight = (value) => getIsArbitraryVariable(value, isLabelWeight, true);
530
- const getIsArbitraryValue = (value, testLabel, testValue) => {
531
- const result = arbitraryValueRegex.exec(value);
532
- if (result) {
533
- if (result[1]) return testLabel(result[1]);
534
- return testValue(result[2]);
535
- }
536
- return false;
537
- };
538
- const getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) => {
539
- const result = arbitraryVariableRegex.exec(value);
540
- if (result) {
541
- if (result[1]) return testLabel(result[1]);
542
- return shouldMatchNoLabel;
543
- }
544
- return false;
545
- };
546
- const isLabelPosition = (label) => label === "position" || label === "percentage";
547
- const isLabelImage = (label) => label === "image" || label === "url";
548
- const isLabelSize = (label) => label === "length" || label === "size" || label === "bg-size";
549
- const isLabelLength = (label) => label === "length";
550
- const isLabelNumber = (label) => label === "number";
551
- const isLabelFamilyName = (label) => label === "family-name";
552
- const isLabelWeight = (label) => label === "number" || label === "weight";
553
- const isLabelShadow = (label) => label === "shadow";
554
- const getDefaultConfig = () => {
555
- /**
556
- * Theme getters for theme variable namespaces
557
- * @see https://tailwindcss.com/docs/theme#theme-variable-namespaces
558
- */
559
- const themeColor = fromTheme("color");
560
- const themeFont = fromTheme("font");
561
- const themeText = fromTheme("text");
562
- const themeFontWeight = fromTheme("font-weight");
563
- const themeTracking = fromTheme("tracking");
564
- const themeLeading = fromTheme("leading");
565
- const themeBreakpoint = fromTheme("breakpoint");
566
- const themeContainer = fromTheme("container");
567
- const themeSpacing = fromTheme("spacing");
568
- const themeRadius = fromTheme("radius");
569
- const themeShadow = fromTheme("shadow");
570
- const themeInsetShadow = fromTheme("inset-shadow");
571
- const themeTextShadow = fromTheme("text-shadow");
572
- const themeDropShadow = fromTheme("drop-shadow");
573
- const themeBlur = fromTheme("blur");
574
- const themePerspective = fromTheme("perspective");
575
- const themeAspect = fromTheme("aspect");
576
- const themeEase = fromTheme("ease");
577
- const themeAnimate = fromTheme("animate");
578
- /**
579
- * Helpers to avoid repeating the same scales
580
- *
581
- * We use functions that create a new array every time they're called instead of static arrays.
582
- * This ensures that users who modify any scale by mutating the array (e.g. with `array.push(element)`) don't accidentally mutate arrays in other parts of the config.
583
- */
584
- const scaleBreak = () => [
585
- "auto",
586
- "avoid",
587
- "all",
588
- "avoid-page",
589
- "page",
590
- "left",
591
- "right",
592
- "column"
593
- ];
594
- const scalePosition = () => [
595
- "center",
596
- "top",
597
- "bottom",
598
- "left",
599
- "right",
600
- "top-left",
601
- "left-top",
602
- "top-right",
603
- "right-top",
604
- "bottom-right",
605
- "right-bottom",
606
- "bottom-left",
607
- "left-bottom"
608
- ];
609
- const scalePositionWithArbitrary = () => [
610
- ...scalePosition(),
611
- isArbitraryVariable,
612
- isArbitraryValue
613
- ];
614
- const scaleOverflow = () => [
615
- "auto",
616
- "hidden",
617
- "clip",
618
- "visible",
619
- "scroll"
620
- ];
621
- const scaleOverscroll = () => [
622
- "auto",
623
- "contain",
624
- "none"
625
- ];
626
- const scaleUnambiguousSpacing = () => [
627
- isArbitraryVariable,
628
- isArbitraryValue,
629
- themeSpacing
630
- ];
631
- const scaleInset = () => [
632
- isFraction,
633
- "full",
634
- "auto",
635
- ...scaleUnambiguousSpacing()
636
- ];
637
- const scaleGridTemplateColsRows = () => [
638
- isInteger,
639
- "none",
640
- "subgrid",
641
- isArbitraryVariable,
642
- isArbitraryValue
643
- ];
644
- const scaleGridColRowStartAndEnd = () => [
645
- "auto",
646
- { span: [
647
- "full",
648
- isInteger,
649
- isArbitraryVariable,
650
- isArbitraryValue
651
- ] },
652
- isInteger,
653
- isArbitraryVariable,
654
- isArbitraryValue
655
- ];
656
- const scaleGridColRowStartOrEnd = () => [
657
- isInteger,
658
- "auto",
659
- isArbitraryVariable,
660
- isArbitraryValue
661
- ];
662
- const scaleGridAutoColsRows = () => [
663
- "auto",
664
- "min",
665
- "max",
666
- "fr",
667
- isArbitraryVariable,
668
- isArbitraryValue
669
- ];
670
- const scaleAlignPrimaryAxis = () => [
671
- "start",
672
- "end",
673
- "center",
674
- "between",
675
- "around",
676
- "evenly",
677
- "stretch",
678
- "baseline",
679
- "center-safe",
680
- "end-safe"
681
- ];
682
- const scaleAlignSecondaryAxis = () => [
683
- "start",
684
- "end",
685
- "center",
686
- "stretch",
687
- "center-safe",
688
- "end-safe"
689
- ];
690
- const scaleMargin = () => ["auto", ...scaleUnambiguousSpacing()];
691
- const scaleSizing = () => [
692
- isFraction,
693
- "auto",
694
- "full",
695
- "dvw",
696
- "dvh",
697
- "lvw",
698
- "lvh",
699
- "svw",
700
- "svh",
701
- "min",
702
- "max",
703
- "fit",
704
- ...scaleUnambiguousSpacing()
705
- ];
706
- const scaleSizingInline = () => [
707
- isFraction,
708
- "screen",
709
- "full",
710
- "dvw",
711
- "lvw",
712
- "svw",
713
- "min",
714
- "max",
715
- "fit",
716
- ...scaleUnambiguousSpacing()
717
- ];
718
- const scaleSizingBlock = () => [
719
- isFraction,
720
- "screen",
721
- "full",
722
- "lh",
723
- "dvh",
724
- "lvh",
725
- "svh",
726
- "min",
727
- "max",
728
- "fit",
729
- ...scaleUnambiguousSpacing()
730
- ];
731
- const scaleColor = () => [
732
- themeColor,
733
- isArbitraryVariable,
734
- isArbitraryValue
735
- ];
736
- const scaleBgPosition = () => [
737
- ...scalePosition(),
738
- isArbitraryVariablePosition,
739
- isArbitraryPosition,
740
- { position: [isArbitraryVariable, isArbitraryValue] }
741
- ];
742
- const scaleBgRepeat = () => ["no-repeat", { repeat: [
743
- "",
744
- "x",
745
- "y",
746
- "space",
747
- "round"
748
- ] }];
749
- const scaleBgSize = () => [
750
- "auto",
751
- "cover",
752
- "contain",
753
- isArbitraryVariableSize,
754
- isArbitrarySize,
755
- { size: [isArbitraryVariable, isArbitraryValue] }
756
- ];
757
- const scaleGradientStopPosition = () => [
758
- isPercent,
759
- isArbitraryVariableLength,
760
- isArbitraryLength
761
- ];
762
- const scaleRadius = () => [
763
- "",
764
- "none",
765
- "full",
766
- themeRadius,
767
- isArbitraryVariable,
768
- isArbitraryValue
769
- ];
770
- const scaleBorderWidth = () => [
771
- "",
772
- isNumber,
773
- isArbitraryVariableLength,
774
- isArbitraryLength
775
- ];
776
- const scaleLineStyle = () => [
777
- "solid",
778
- "dashed",
779
- "dotted",
780
- "double"
781
- ];
782
- const scaleBlendMode = () => [
783
- "normal",
784
- "multiply",
785
- "screen",
786
- "overlay",
787
- "darken",
788
- "lighten",
789
- "color-dodge",
790
- "color-burn",
791
- "hard-light",
792
- "soft-light",
793
- "difference",
794
- "exclusion",
795
- "hue",
796
- "saturation",
797
- "color",
798
- "luminosity"
799
- ];
800
- const scaleMaskImagePosition = () => [
801
- isNumber,
802
- isPercent,
803
- isArbitraryVariablePosition,
804
- isArbitraryPosition
805
- ];
806
- const scaleBlur = () => [
807
- "",
808
- "none",
809
- themeBlur,
810
- isArbitraryVariable,
811
- isArbitraryValue
812
- ];
813
- const scaleRotate = () => [
814
- "none",
815
- isNumber,
816
- isArbitraryVariable,
817
- isArbitraryValue
818
- ];
819
- const scaleScale = () => [
820
- "none",
821
- isNumber,
822
- isArbitraryVariable,
823
- isArbitraryValue
824
- ];
825
- const scaleSkew = () => [
826
- isNumber,
827
- isArbitraryVariable,
828
- isArbitraryValue
829
- ];
830
- const scaleTranslate = () => [
831
- isFraction,
832
- "full",
833
- ...scaleUnambiguousSpacing()
834
- ];
835
- return {
836
- theme: {
837
- animate: [
838
- "spin",
839
- "ping",
840
- "pulse",
841
- "bounce"
842
- ],
843
- aspect: ["video"],
844
- blur: [isTshirtSize],
845
- breakpoint: [isTshirtSize],
846
- color: [isAny],
847
- container: [isTshirtSize],
848
- "drop-shadow": [isTshirtSize],
849
- ease: [
850
- "in",
851
- "out",
852
- "in-out"
853
- ],
854
- font: [isAnyNonArbitrary],
855
- "font-weight": [
856
- "thin",
857
- "extralight",
858
- "light",
859
- "normal",
860
- "medium",
861
- "semibold",
862
- "bold",
863
- "extrabold",
864
- "black"
865
- ],
866
- "inset-shadow": [isTshirtSize],
867
- leading: [
868
- "none",
869
- "tight",
870
- "snug",
871
- "normal",
872
- "relaxed",
873
- "loose"
874
- ],
875
- perspective: [
876
- "dramatic",
877
- "near",
878
- "normal",
879
- "midrange",
880
- "distant",
881
- "none"
882
- ],
883
- radius: [isTshirtSize],
884
- shadow: [isTshirtSize],
885
- spacing: ["px", isNumber],
886
- text: [isTshirtSize],
887
- "text-shadow": [isTshirtSize],
888
- tracking: [
889
- "tighter",
890
- "tight",
891
- "normal",
892
- "wide",
893
- "wider",
894
- "widest"
895
- ]
896
- },
897
- classGroups: {
898
- /**
899
- * Aspect Ratio
900
- * @see https://tailwindcss.com/docs/aspect-ratio
901
- */
902
- aspect: [{ aspect: [
903
- "auto",
904
- "square",
905
- isFraction,
906
- isArbitraryValue,
907
- isArbitraryVariable,
908
- themeAspect
909
- ] }],
910
- /**
911
- * Container
912
- * @see https://tailwindcss.com/docs/container
913
- * @deprecated since Tailwind CSS v4.0.0
914
- */
915
- container: ["container"],
916
- /**
917
- * Container Type
918
- * @see https://tailwindcss.com/docs/responsive-design#container-queries
919
- */
920
- "container-type": [{ "@container": [
921
- "",
922
- "normal",
923
- "size",
924
- isArbitraryVariable,
925
- isArbitraryValue
926
- ] }],
927
- /**
928
- * Container Name
929
- * @see https://tailwindcss.com/docs/responsive-design#named-containers
930
- */
931
- "container-named": [isNamedContainerQuery],
932
- /**
933
- * Columns
934
- * @see https://tailwindcss.com/docs/columns
935
- */
936
- columns: [{ columns: [
937
- isNumber,
938
- isArbitraryValue,
939
- isArbitraryVariable,
940
- themeContainer
941
- ] }],
942
- /**
943
- * Break After
944
- * @see https://tailwindcss.com/docs/break-after
945
- */
946
- "break-after": [{ "break-after": scaleBreak() }],
947
- /**
948
- * Break Before
949
- * @see https://tailwindcss.com/docs/break-before
950
- */
951
- "break-before": [{ "break-before": scaleBreak() }],
952
- /**
953
- * Break Inside
954
- * @see https://tailwindcss.com/docs/break-inside
955
- */
956
- "break-inside": [{ "break-inside": [
957
- "auto",
958
- "avoid",
959
- "avoid-page",
960
- "avoid-column"
961
- ] }],
962
- /**
963
- * Box Decoration Break
964
- * @see https://tailwindcss.com/docs/box-decoration-break
965
- */
966
- "box-decoration": [{ "box-decoration": ["slice", "clone"] }],
967
- /**
968
- * Box Sizing
969
- * @see https://tailwindcss.com/docs/box-sizing
970
- */
971
- box: [{ box: ["border", "content"] }],
972
- /**
973
- * Display
974
- * @see https://tailwindcss.com/docs/display
975
- */
976
- display: [
977
- "block",
978
- "inline-block",
979
- "inline",
980
- "flex",
981
- "inline-flex",
982
- "table",
983
- "inline-table",
984
- "table-caption",
985
- "table-cell",
986
- "table-column",
987
- "table-column-group",
988
- "table-footer-group",
989
- "table-header-group",
990
- "table-row-group",
991
- "table-row",
992
- "flow-root",
993
- "grid",
994
- "inline-grid",
995
- "contents",
996
- "list-item",
997
- "hidden"
998
- ],
999
- /**
1000
- * Screen Reader Only
1001
- * @see https://tailwindcss.com/docs/display#screen-reader-only
1002
- */
1003
- sr: ["sr-only", "not-sr-only"],
1004
- /**
1005
- * Floats
1006
- * @see https://tailwindcss.com/docs/float
1007
- */
1008
- float: [{ float: [
1009
- "right",
1010
- "left",
1011
- "none",
1012
- "start",
1013
- "end"
1014
- ] }],
1015
- /**
1016
- * Clear
1017
- * @see https://tailwindcss.com/docs/clear
1018
- */
1019
- clear: [{ clear: [
1020
- "left",
1021
- "right",
1022
- "both",
1023
- "none",
1024
- "start",
1025
- "end"
1026
- ] }],
1027
- /**
1028
- * Isolation
1029
- * @see https://tailwindcss.com/docs/isolation
1030
- */
1031
- isolation: ["isolate", "isolation-auto"],
1032
- /**
1033
- * Object Fit
1034
- * @see https://tailwindcss.com/docs/object-fit
1035
- */
1036
- "object-fit": [{ object: [
1037
- "contain",
1038
- "cover",
1039
- "fill",
1040
- "none",
1041
- "scale-down"
1042
- ] }],
1043
- /**
1044
- * Object Position
1045
- * @see https://tailwindcss.com/docs/object-position
1046
- */
1047
- "object-position": [{ object: scalePositionWithArbitrary() }],
1048
- /**
1049
- * Overflow
1050
- * @see https://tailwindcss.com/docs/overflow
1051
- */
1052
- overflow: [{ overflow: scaleOverflow() }],
1053
- /**
1054
- * Overflow X
1055
- * @see https://tailwindcss.com/docs/overflow
1056
- */
1057
- "overflow-x": [{ "overflow-x": scaleOverflow() }],
1058
- /**
1059
- * Overflow Y
1060
- * @see https://tailwindcss.com/docs/overflow
1061
- */
1062
- "overflow-y": [{ "overflow-y": scaleOverflow() }],
1063
- /**
1064
- * Overscroll Behavior
1065
- * @see https://tailwindcss.com/docs/overscroll-behavior
1066
- */
1067
- overscroll: [{ overscroll: scaleOverscroll() }],
1068
- /**
1069
- * Overscroll Behavior X
1070
- * @see https://tailwindcss.com/docs/overscroll-behavior
1071
- */
1072
- "overscroll-x": [{ "overscroll-x": scaleOverscroll() }],
1073
- /**
1074
- * Overscroll Behavior Y
1075
- * @see https://tailwindcss.com/docs/overscroll-behavior
1076
- */
1077
- "overscroll-y": [{ "overscroll-y": scaleOverscroll() }],
1078
- /**
1079
- * Position
1080
- * @see https://tailwindcss.com/docs/position
1081
- */
1082
- position: [
1083
- "static",
1084
- "fixed",
1085
- "absolute",
1086
- "relative",
1087
- "sticky"
1088
- ],
1089
- /**
1090
- * Inset
1091
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1092
- */
1093
- inset: [{ inset: scaleInset() }],
1094
- /**
1095
- * Inset Inline
1096
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1097
- */
1098
- "inset-x": [{ "inset-x": scaleInset() }],
1099
- /**
1100
- * Inset Block
1101
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1102
- */
1103
- "inset-y": [{ "inset-y": scaleInset() }],
1104
- /**
1105
- * Inset Inline Start
1106
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1107
- * @todo class group will be renamed to `inset-s` in next major release
1108
- */
1109
- start: [{
1110
- "inset-s": scaleInset(),
1111
- /**
1112
- * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
1113
- * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
1114
- */
1115
- start: scaleInset()
1116
- }],
1117
- /**
1118
- * Inset Inline End
1119
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1120
- * @todo class group will be renamed to `inset-e` in next major release
1121
- */
1122
- end: [{
1123
- "inset-e": scaleInset(),
1124
- /**
1125
- * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
1126
- * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
1127
- */
1128
- end: scaleInset()
1129
- }],
1130
- /**
1131
- * Inset Block Start
1132
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1133
- */
1134
- "inset-bs": [{ "inset-bs": scaleInset() }],
1135
- /**
1136
- * Inset Block End
1137
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1138
- */
1139
- "inset-be": [{ "inset-be": scaleInset() }],
1140
- /**
1141
- * Top
1142
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1143
- */
1144
- top: [{ top: scaleInset() }],
1145
- /**
1146
- * Right
1147
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1148
- */
1149
- right: [{ right: scaleInset() }],
1150
- /**
1151
- * Bottom
1152
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1153
- */
1154
- bottom: [{ bottom: scaleInset() }],
1155
- /**
1156
- * Left
1157
- * @see https://tailwindcss.com/docs/top-right-bottom-left
1158
- */
1159
- left: [{ left: scaleInset() }],
1160
- /**
1161
- * Visibility
1162
- * @see https://tailwindcss.com/docs/visibility
1163
- */
1164
- visibility: [
1165
- "visible",
1166
- "invisible",
1167
- "collapse"
1168
- ],
1169
- /**
1170
- * Z-Index
1171
- * @see https://tailwindcss.com/docs/z-index
1172
- */
1173
- z: [{ z: [
1174
- isInteger,
1175
- "auto",
1176
- isArbitraryVariable,
1177
- isArbitraryValue
1178
- ] }],
1179
- /**
1180
- * Flex Basis
1181
- * @see https://tailwindcss.com/docs/flex-basis
1182
- */
1183
- basis: [{ basis: [
1184
- isFraction,
1185
- "full",
1186
- "auto",
1187
- themeContainer,
1188
- ...scaleUnambiguousSpacing()
1189
- ] }],
1190
- /**
1191
- * Flex Direction
1192
- * @see https://tailwindcss.com/docs/flex-direction
1193
- */
1194
- "flex-direction": [{ flex: [
1195
- "row",
1196
- "row-reverse",
1197
- "col",
1198
- "col-reverse"
1199
- ] }],
1200
- /**
1201
- * Flex Wrap
1202
- * @see https://tailwindcss.com/docs/flex-wrap
1203
- */
1204
- "flex-wrap": [{ flex: [
1205
- "nowrap",
1206
- "wrap",
1207
- "wrap-reverse"
1208
- ] }],
1209
- /**
1210
- * Flex
1211
- * @see https://tailwindcss.com/docs/flex
1212
- */
1213
- flex: [{ flex: [
1214
- isNumber,
1215
- isFraction,
1216
- "auto",
1217
- "initial",
1218
- "none",
1219
- isArbitraryValue
1220
- ] }],
1221
- /**
1222
- * Flex Grow
1223
- * @see https://tailwindcss.com/docs/flex-grow
1224
- */
1225
- grow: [{ grow: [
1226
- "",
1227
- isNumber,
1228
- isArbitraryVariable,
1229
- isArbitraryValue
1230
- ] }],
1231
- /**
1232
- * Flex Shrink
1233
- * @see https://tailwindcss.com/docs/flex-shrink
1234
- */
1235
- shrink: [{ shrink: [
1236
- "",
1237
- isNumber,
1238
- isArbitraryVariable,
1239
- isArbitraryValue
1240
- ] }],
1241
- /**
1242
- * Order
1243
- * @see https://tailwindcss.com/docs/order
1244
- */
1245
- order: [{ order: [
1246
- isInteger,
1247
- "first",
1248
- "last",
1249
- "none",
1250
- isArbitraryVariable,
1251
- isArbitraryValue
1252
- ] }],
1253
- /**
1254
- * Grid Template Columns
1255
- * @see https://tailwindcss.com/docs/grid-template-columns
1256
- */
1257
- "grid-cols": [{ "grid-cols": scaleGridTemplateColsRows() }],
1258
- /**
1259
- * Grid Column Start / End
1260
- * @see https://tailwindcss.com/docs/grid-column
1261
- */
1262
- "col-start-end": [{ col: scaleGridColRowStartAndEnd() }],
1263
- /**
1264
- * Grid Column Start
1265
- * @see https://tailwindcss.com/docs/grid-column
1266
- */
1267
- "col-start": [{ "col-start": scaleGridColRowStartOrEnd() }],
1268
- /**
1269
- * Grid Column End
1270
- * @see https://tailwindcss.com/docs/grid-column
1271
- */
1272
- "col-end": [{ "col-end": scaleGridColRowStartOrEnd() }],
1273
- /**
1274
- * Grid Template Rows
1275
- * @see https://tailwindcss.com/docs/grid-template-rows
1276
- */
1277
- "grid-rows": [{ "grid-rows": scaleGridTemplateColsRows() }],
1278
- /**
1279
- * Grid Row Start / End
1280
- * @see https://tailwindcss.com/docs/grid-row
1281
- */
1282
- "row-start-end": [{ row: scaleGridColRowStartAndEnd() }],
1283
- /**
1284
- * Grid Row Start
1285
- * @see https://tailwindcss.com/docs/grid-row
1286
- */
1287
- "row-start": [{ "row-start": scaleGridColRowStartOrEnd() }],
1288
- /**
1289
- * Grid Row End
1290
- * @see https://tailwindcss.com/docs/grid-row
1291
- */
1292
- "row-end": [{ "row-end": scaleGridColRowStartOrEnd() }],
1293
- /**
1294
- * Grid Auto Flow
1295
- * @see https://tailwindcss.com/docs/grid-auto-flow
1296
- */
1297
- "grid-flow": [{ "grid-flow": [
1298
- "row",
1299
- "col",
1300
- "dense",
1301
- "row-dense",
1302
- "col-dense"
1303
- ] }],
1304
- /**
1305
- * Grid Auto Columns
1306
- * @see https://tailwindcss.com/docs/grid-auto-columns
1307
- */
1308
- "auto-cols": [{ "auto-cols": scaleGridAutoColsRows() }],
1309
- /**
1310
- * Grid Auto Rows
1311
- * @see https://tailwindcss.com/docs/grid-auto-rows
1312
- */
1313
- "auto-rows": [{ "auto-rows": scaleGridAutoColsRows() }],
1314
- /**
1315
- * Gap
1316
- * @see https://tailwindcss.com/docs/gap
1317
- */
1318
- gap: [{ gap: scaleUnambiguousSpacing() }],
1319
- /**
1320
- * Gap X
1321
- * @see https://tailwindcss.com/docs/gap
1322
- */
1323
- "gap-x": [{ "gap-x": scaleUnambiguousSpacing() }],
1324
- /**
1325
- * Gap Y
1326
- * @see https://tailwindcss.com/docs/gap
1327
- */
1328
- "gap-y": [{ "gap-y": scaleUnambiguousSpacing() }],
1329
- /**
1330
- * Justify Content
1331
- * @see https://tailwindcss.com/docs/justify-content
1332
- */
1333
- "justify-content": [{ justify: [...scaleAlignPrimaryAxis(), "normal"] }],
1334
- /**
1335
- * Justify Items
1336
- * @see https://tailwindcss.com/docs/justify-items
1337
- */
1338
- "justify-items": [{ "justify-items": [...scaleAlignSecondaryAxis(), "normal"] }],
1339
- /**
1340
- * Justify Self
1341
- * @see https://tailwindcss.com/docs/justify-self
1342
- */
1343
- "justify-self": [{ "justify-self": ["auto", ...scaleAlignSecondaryAxis()] }],
1344
- /**
1345
- * Align Content
1346
- * @see https://tailwindcss.com/docs/align-content
1347
- */
1348
- "align-content": [{ content: ["normal", ...scaleAlignPrimaryAxis()] }],
1349
- /**
1350
- * Align Items
1351
- * @see https://tailwindcss.com/docs/align-items
1352
- */
1353
- "align-items": [{ items: [...scaleAlignSecondaryAxis(), { baseline: ["", "last"] }] }],
1354
- /**
1355
- * Align Self
1356
- * @see https://tailwindcss.com/docs/align-self
1357
- */
1358
- "align-self": [{ self: [
1359
- "auto",
1360
- ...scaleAlignSecondaryAxis(),
1361
- { baseline: ["", "last"] }
1362
- ] }],
1363
- /**
1364
- * Place Content
1365
- * @see https://tailwindcss.com/docs/place-content
1366
- */
1367
- "place-content": [{ "place-content": scaleAlignPrimaryAxis() }],
1368
- /**
1369
- * Place Items
1370
- * @see https://tailwindcss.com/docs/place-items
1371
- */
1372
- "place-items": [{ "place-items": [...scaleAlignSecondaryAxis(), "baseline"] }],
1373
- /**
1374
- * Place Self
1375
- * @see https://tailwindcss.com/docs/place-self
1376
- */
1377
- "place-self": [{ "place-self": ["auto", ...scaleAlignSecondaryAxis()] }],
1378
- /**
1379
- * Padding
1380
- * @see https://tailwindcss.com/docs/padding
1381
- */
1382
- p: [{ p: scaleUnambiguousSpacing() }],
1383
- /**
1384
- * Padding Inline
1385
- * @see https://tailwindcss.com/docs/padding
1386
- */
1387
- px: [{ px: scaleUnambiguousSpacing() }],
1388
- /**
1389
- * Padding Block
1390
- * @see https://tailwindcss.com/docs/padding
1391
- */
1392
- py: [{ py: scaleUnambiguousSpacing() }],
1393
- /**
1394
- * Padding Inline Start
1395
- * @see https://tailwindcss.com/docs/padding
1396
- */
1397
- ps: [{ ps: scaleUnambiguousSpacing() }],
1398
- /**
1399
- * Padding Inline End
1400
- * @see https://tailwindcss.com/docs/padding
1401
- */
1402
- pe: [{ pe: scaleUnambiguousSpacing() }],
1403
- /**
1404
- * Padding Block Start
1405
- * @see https://tailwindcss.com/docs/padding
1406
- */
1407
- pbs: [{ pbs: scaleUnambiguousSpacing() }],
1408
- /**
1409
- * Padding Block End
1410
- * @see https://tailwindcss.com/docs/padding
1411
- */
1412
- pbe: [{ pbe: scaleUnambiguousSpacing() }],
1413
- /**
1414
- * Padding Top
1415
- * @see https://tailwindcss.com/docs/padding
1416
- */
1417
- pt: [{ pt: scaleUnambiguousSpacing() }],
1418
- /**
1419
- * Padding Right
1420
- * @see https://tailwindcss.com/docs/padding
1421
- */
1422
- pr: [{ pr: scaleUnambiguousSpacing() }],
1423
- /**
1424
- * Padding Bottom
1425
- * @see https://tailwindcss.com/docs/padding
1426
- */
1427
- pb: [{ pb: scaleUnambiguousSpacing() }],
1428
- /**
1429
- * Padding Left
1430
- * @see https://tailwindcss.com/docs/padding
1431
- */
1432
- pl: [{ pl: scaleUnambiguousSpacing() }],
1433
- /**
1434
- * Margin
1435
- * @see https://tailwindcss.com/docs/margin
1436
- */
1437
- m: [{ m: scaleMargin() }],
1438
- /**
1439
- * Margin Inline
1440
- * @see https://tailwindcss.com/docs/margin
1441
- */
1442
- mx: [{ mx: scaleMargin() }],
1443
- /**
1444
- * Margin Block
1445
- * @see https://tailwindcss.com/docs/margin
1446
- */
1447
- my: [{ my: scaleMargin() }],
1448
- /**
1449
- * Margin Inline Start
1450
- * @see https://tailwindcss.com/docs/margin
1451
- */
1452
- ms: [{ ms: scaleMargin() }],
1453
- /**
1454
- * Margin Inline End
1455
- * @see https://tailwindcss.com/docs/margin
1456
- */
1457
- me: [{ me: scaleMargin() }],
1458
- /**
1459
- * Margin Block Start
1460
- * @see https://tailwindcss.com/docs/margin
1461
- */
1462
- mbs: [{ mbs: scaleMargin() }],
1463
- /**
1464
- * Margin Block End
1465
- * @see https://tailwindcss.com/docs/margin
1466
- */
1467
- mbe: [{ mbe: scaleMargin() }],
1468
- /**
1469
- * Margin Top
1470
- * @see https://tailwindcss.com/docs/margin
1471
- */
1472
- mt: [{ mt: scaleMargin() }],
1473
- /**
1474
- * Margin Right
1475
- * @see https://tailwindcss.com/docs/margin
1476
- */
1477
- mr: [{ mr: scaleMargin() }],
1478
- /**
1479
- * Margin Bottom
1480
- * @see https://tailwindcss.com/docs/margin
1481
- */
1482
- mb: [{ mb: scaleMargin() }],
1483
- /**
1484
- * Margin Left
1485
- * @see https://tailwindcss.com/docs/margin
1486
- */
1487
- ml: [{ ml: scaleMargin() }],
1488
- /**
1489
- * Space Between X
1490
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1491
- */
1492
- "space-x": [{ "space-x": scaleUnambiguousSpacing() }],
1493
- /**
1494
- * Space Between X Reverse
1495
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1496
- */
1497
- "space-x-reverse": ["space-x-reverse"],
1498
- /**
1499
- * Space Between Y
1500
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1501
- */
1502
- "space-y": [{ "space-y": scaleUnambiguousSpacing() }],
1503
- /**
1504
- * Space Between Y Reverse
1505
- * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1506
- */
1507
- "space-y-reverse": ["space-y-reverse"],
1508
- /**
1509
- * Size
1510
- * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
1511
- */
1512
- size: [{ size: scaleSizing() }],
1513
- /**
1514
- * Inline Size
1515
- * @see https://tailwindcss.com/docs/width
1516
- */
1517
- "inline-size": [{ inline: ["auto", ...scaleSizingInline()] }],
1518
- /**
1519
- * Min-Inline Size
1520
- * @see https://tailwindcss.com/docs/min-width
1521
- */
1522
- "min-inline-size": [{ "min-inline": ["auto", ...scaleSizingInline()] }],
1523
- /**
1524
- * Max-Inline Size
1525
- * @see https://tailwindcss.com/docs/max-width
1526
- */
1527
- "max-inline-size": [{ "max-inline": ["none", ...scaleSizingInline()] }],
1528
- /**
1529
- * Block Size
1530
- * @see https://tailwindcss.com/docs/height
1531
- */
1532
- "block-size": [{ block: ["auto", ...scaleSizingBlock()] }],
1533
- /**
1534
- * Min-Block Size
1535
- * @see https://tailwindcss.com/docs/min-height
1536
- */
1537
- "min-block-size": [{ "min-block": ["auto", ...scaleSizingBlock()] }],
1538
- /**
1539
- * Max-Block Size
1540
- * @see https://tailwindcss.com/docs/max-height
1541
- */
1542
- "max-block-size": [{ "max-block": ["none", ...scaleSizingBlock()] }],
1543
- /**
1544
- * Width
1545
- * @see https://tailwindcss.com/docs/width
1546
- */
1547
- w: [{ w: [
1548
- themeContainer,
1549
- "screen",
1550
- ...scaleSizing()
1551
- ] }],
1552
- /**
1553
- * Min-Width
1554
- * @see https://tailwindcss.com/docs/min-width
1555
- */
1556
- "min-w": [{ "min-w": [
1557
- themeContainer,
1558
- "screen",
1559
- "none",
1560
- ...scaleSizing()
1561
- ] }],
1562
- /**
1563
- * Max-Width
1564
- * @see https://tailwindcss.com/docs/max-width
1565
- */
1566
- "max-w": [{ "max-w": [
1567
- themeContainer,
1568
- "screen",
1569
- "none",
1570
- "prose",
1571
- (
1572
- /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1573
- { screen: [themeBreakpoint] }),
1574
- ...scaleSizing()
1575
- ] }],
1576
- /**
1577
- * Height
1578
- * @see https://tailwindcss.com/docs/height
1579
- */
1580
- h: [{ h: [
1581
- "screen",
1582
- "lh",
1583
- ...scaleSizing()
1584
- ] }],
1585
- /**
1586
- * Min-Height
1587
- * @see https://tailwindcss.com/docs/min-height
1588
- */
1589
- "min-h": [{ "min-h": [
1590
- "screen",
1591
- "lh",
1592
- "none",
1593
- ...scaleSizing()
1594
- ] }],
1595
- /**
1596
- * Max-Height
1597
- * @see https://tailwindcss.com/docs/max-height
1598
- */
1599
- "max-h": [{ "max-h": [
1600
- "screen",
1601
- "lh",
1602
- ...scaleSizing()
1603
- ] }],
1604
- /**
1605
- * Font Size
1606
- * @see https://tailwindcss.com/docs/font-size
1607
- */
1608
- "font-size": [{ text: [
1609
- "base",
1610
- themeText,
1611
- isArbitraryVariableLength,
1612
- isArbitraryLength
1613
- ] }],
1614
- /**
1615
- * Font Smoothing
1616
- * @see https://tailwindcss.com/docs/font-smoothing
1617
- */
1618
- "font-smoothing": ["antialiased", "subpixel-antialiased"],
1619
- /**
1620
- * Font Style
1621
- * @see https://tailwindcss.com/docs/font-style
1622
- */
1623
- "font-style": ["italic", "not-italic"],
1624
- /**
1625
- * Font Weight
1626
- * @see https://tailwindcss.com/docs/font-weight
1627
- */
1628
- "font-weight": [{ font: [
1629
- themeFontWeight,
1630
- isArbitraryVariableWeight,
1631
- isArbitraryWeight
1632
- ] }],
1633
- /**
1634
- * Font Stretch
1635
- * @see https://tailwindcss.com/docs/font-stretch
1636
- */
1637
- "font-stretch": [{ "font-stretch": [
1638
- "ultra-condensed",
1639
- "extra-condensed",
1640
- "condensed",
1641
- "semi-condensed",
1642
- "normal",
1643
- "semi-expanded",
1644
- "expanded",
1645
- "extra-expanded",
1646
- "ultra-expanded",
1647
- isPercent,
1648
- isArbitraryValue
1649
- ] }],
1650
- /**
1651
- * Font Family
1652
- * @see https://tailwindcss.com/docs/font-family
1653
- */
1654
- "font-family": [{ font: [
1655
- isArbitraryVariableFamilyName,
1656
- isArbitraryFamilyName,
1657
- themeFont
1658
- ] }],
1659
- /**
1660
- * Font Feature Settings
1661
- * @see https://tailwindcss.com/docs/font-feature-settings
1662
- */
1663
- "font-features": [{ "font-features": [isArbitraryValue] }],
1664
- /**
1665
- * Font Variant Numeric
1666
- * @see https://tailwindcss.com/docs/font-variant-numeric
1667
- */
1668
- "fvn-normal": ["normal-nums"],
1669
- /**
1670
- * Font Variant Numeric
1671
- * @see https://tailwindcss.com/docs/font-variant-numeric
1672
- */
1673
- "fvn-ordinal": ["ordinal"],
1674
- /**
1675
- * Font Variant Numeric
1676
- * @see https://tailwindcss.com/docs/font-variant-numeric
1677
- */
1678
- "fvn-slashed-zero": ["slashed-zero"],
1679
- /**
1680
- * Font Variant Numeric
1681
- * @see https://tailwindcss.com/docs/font-variant-numeric
1682
- */
1683
- "fvn-figure": ["lining-nums", "oldstyle-nums"],
1684
- /**
1685
- * Font Variant Numeric
1686
- * @see https://tailwindcss.com/docs/font-variant-numeric
1687
- */
1688
- "fvn-spacing": ["proportional-nums", "tabular-nums"],
1689
- /**
1690
- * Font Variant Numeric
1691
- * @see https://tailwindcss.com/docs/font-variant-numeric
1692
- */
1693
- "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
1694
- /**
1695
- * Letter Spacing
1696
- * @see https://tailwindcss.com/docs/letter-spacing
1697
- */
1698
- tracking: [{ tracking: [
1699
- themeTracking,
1700
- isArbitraryVariable,
1701
- isArbitraryValue
1702
- ] }],
1703
- /**
1704
- * Line Clamp
1705
- * @see https://tailwindcss.com/docs/line-clamp
1706
- */
1707
- "line-clamp": [{ "line-clamp": [
1708
- isNumber,
1709
- "none",
1710
- isArbitraryVariable,
1711
- isArbitraryNumber
1712
- ] }],
1713
- /**
1714
- * Line Height
1715
- * @see https://tailwindcss.com/docs/line-height
1716
- */
1717
- leading: [{ leading: [themeLeading, ...scaleUnambiguousSpacing()] }],
1718
- /**
1719
- * List Style Image
1720
- * @see https://tailwindcss.com/docs/list-style-image
1721
- */
1722
- "list-image": [{ "list-image": [
1723
- "none",
1724
- isArbitraryVariable,
1725
- isArbitraryValue
1726
- ] }],
1727
- /**
1728
- * List Style Position
1729
- * @see https://tailwindcss.com/docs/list-style-position
1730
- */
1731
- "list-style-position": [{ list: ["inside", "outside"] }],
1732
- /**
1733
- * List Style Type
1734
- * @see https://tailwindcss.com/docs/list-style-type
1735
- */
1736
- "list-style-type": [{ list: [
1737
- "disc",
1738
- "decimal",
1739
- "none",
1740
- isArbitraryVariable,
1741
- isArbitraryValue
1742
- ] }],
1743
- /**
1744
- * Text Alignment
1745
- * @see https://tailwindcss.com/docs/text-align
1746
- */
1747
- "text-alignment": [{ text: [
1748
- "left",
1749
- "center",
1750
- "right",
1751
- "justify",
1752
- "start",
1753
- "end"
1754
- ] }],
1755
- /**
1756
- * Placeholder Color
1757
- * @deprecated since Tailwind CSS v3.0.0
1758
- * @see https://v3.tailwindcss.com/docs/placeholder-color
1759
- */
1760
- "placeholder-color": [{ placeholder: scaleColor() }],
1761
- /**
1762
- * Text Color
1763
- * @see https://tailwindcss.com/docs/text-color
1764
- */
1765
- "text-color": [{ text: scaleColor() }],
1766
- /**
1767
- * Text Decoration
1768
- * @see https://tailwindcss.com/docs/text-decoration
1769
- */
1770
- "text-decoration": [
1771
- "underline",
1772
- "overline",
1773
- "line-through",
1774
- "no-underline"
1775
- ],
1776
- /**
1777
- * Text Decoration Style
1778
- * @see https://tailwindcss.com/docs/text-decoration-style
1779
- */
1780
- "text-decoration-style": [{ decoration: [...scaleLineStyle(), "wavy"] }],
1781
- /**
1782
- * Text Decoration Thickness
1783
- * @see https://tailwindcss.com/docs/text-decoration-thickness
1784
- */
1785
- "text-decoration-thickness": [{ decoration: [
1786
- isNumber,
1787
- "from-font",
1788
- "auto",
1789
- isArbitraryVariable,
1790
- isArbitraryLength
1791
- ] }],
1792
- /**
1793
- * Text Decoration Color
1794
- * @see https://tailwindcss.com/docs/text-decoration-color
1795
- */
1796
- "text-decoration-color": [{ decoration: scaleColor() }],
1797
- /**
1798
- * Text Underline Offset
1799
- * @see https://tailwindcss.com/docs/text-underline-offset
1800
- */
1801
- "underline-offset": [{ "underline-offset": [
1802
- isNumber,
1803
- "auto",
1804
- isArbitraryVariable,
1805
- isArbitraryValue
1806
- ] }],
1807
- /**
1808
- * Text Transform
1809
- * @see https://tailwindcss.com/docs/text-transform
1810
- */
1811
- "text-transform": [
1812
- "uppercase",
1813
- "lowercase",
1814
- "capitalize",
1815
- "normal-case"
1816
- ],
1817
- /**
1818
- * Text Overflow
1819
- * @see https://tailwindcss.com/docs/text-overflow
1820
- */
1821
- "text-overflow": [
1822
- "truncate",
1823
- "text-ellipsis",
1824
- "text-clip"
1825
- ],
1826
- /**
1827
- * Text Wrap
1828
- * @see https://tailwindcss.com/docs/text-wrap
1829
- */
1830
- "text-wrap": [{ text: [
1831
- "wrap",
1832
- "nowrap",
1833
- "balance",
1834
- "pretty"
1835
- ] }],
1836
- /**
1837
- * Text Indent
1838
- * @see https://tailwindcss.com/docs/text-indent
1839
- */
1840
- indent: [{ indent: scaleUnambiguousSpacing() }],
1841
- /**
1842
- * Tab Size
1843
- * @see https://tailwindcss.com/docs/tab-size
1844
- */
1845
- "tab-size": [{ tab: [
1846
- isInteger,
1847
- isArbitraryVariable,
1848
- isArbitraryValue
1849
- ] }],
1850
- /**
1851
- * Vertical Alignment
1852
- * @see https://tailwindcss.com/docs/vertical-align
1853
- */
1854
- "vertical-align": [{ align: [
1855
- "baseline",
1856
- "top",
1857
- "middle",
1858
- "bottom",
1859
- "text-top",
1860
- "text-bottom",
1861
- "sub",
1862
- "super",
1863
- isArbitraryVariable,
1864
- isArbitraryValue
1865
- ] }],
1866
- /**
1867
- * Whitespace
1868
- * @see https://tailwindcss.com/docs/whitespace
1869
- */
1870
- whitespace: [{ whitespace: [
1871
- "normal",
1872
- "nowrap",
1873
- "pre",
1874
- "pre-line",
1875
- "pre-wrap",
1876
- "break-spaces"
1877
- ] }],
1878
- /**
1879
- * Word Break
1880
- * @see https://tailwindcss.com/docs/word-break
1881
- */
1882
- break: [{ break: [
1883
- "normal",
1884
- "words",
1885
- "all",
1886
- "keep"
1887
- ] }],
1888
- /**
1889
- * Overflow Wrap
1890
- * @see https://tailwindcss.com/docs/overflow-wrap
1891
- */
1892
- wrap: [{ wrap: [
1893
- "break-word",
1894
- "anywhere",
1895
- "normal"
1896
- ] }],
1897
- /**
1898
- * Hyphens
1899
- * @see https://tailwindcss.com/docs/hyphens
1900
- */
1901
- hyphens: [{ hyphens: [
1902
- "none",
1903
- "manual",
1904
- "auto"
1905
- ] }],
1906
- /**
1907
- * Content
1908
- * @see https://tailwindcss.com/docs/content
1909
- */
1910
- content: [{ content: [
1911
- "none",
1912
- isArbitraryVariable,
1913
- isArbitraryValue
1914
- ] }],
1915
- /**
1916
- * Background Attachment
1917
- * @see https://tailwindcss.com/docs/background-attachment
1918
- */
1919
- "bg-attachment": [{ bg: [
1920
- "fixed",
1921
- "local",
1922
- "scroll"
1923
- ] }],
1924
- /**
1925
- * Background Clip
1926
- * @see https://tailwindcss.com/docs/background-clip
1927
- */
1928
- "bg-clip": [{ "bg-clip": [
1929
- "border",
1930
- "padding",
1931
- "content",
1932
- "text"
1933
- ] }],
1934
- /**
1935
- * Background Origin
1936
- * @see https://tailwindcss.com/docs/background-origin
1937
- */
1938
- "bg-origin": [{ "bg-origin": [
1939
- "border",
1940
- "padding",
1941
- "content"
1942
- ] }],
1943
- /**
1944
- * Background Position
1945
- * @see https://tailwindcss.com/docs/background-position
1946
- */
1947
- "bg-position": [{ bg: scaleBgPosition() }],
1948
- /**
1949
- * Background Repeat
1950
- * @see https://tailwindcss.com/docs/background-repeat
1951
- */
1952
- "bg-repeat": [{ bg: scaleBgRepeat() }],
1953
- /**
1954
- * Background Size
1955
- * @see https://tailwindcss.com/docs/background-size
1956
- */
1957
- "bg-size": [{ bg: scaleBgSize() }],
1958
- /**
1959
- * Background Image
1960
- * @see https://tailwindcss.com/docs/background-image
1961
- */
1962
- "bg-image": [{ bg: [
1963
- "none",
1964
- {
1965
- linear: [
1966
- { to: [
1967
- "t",
1968
- "tr",
1969
- "r",
1970
- "br",
1971
- "b",
1972
- "bl",
1973
- "l",
1974
- "tl"
1975
- ] },
1976
- isInteger,
1977
- isArbitraryVariable,
1978
- isArbitraryValue
1979
- ],
1980
- radial: [
1981
- "",
1982
- isArbitraryVariable,
1983
- isArbitraryValue
1984
- ],
1985
- conic: [
1986
- isInteger,
1987
- isArbitraryVariable,
1988
- isArbitraryValue
1989
- ]
1990
- },
1991
- isArbitraryVariableImage,
1992
- isArbitraryImage
1993
- ] }],
1994
- /**
1995
- * Background Color
1996
- * @see https://tailwindcss.com/docs/background-color
1997
- */
1998
- "bg-color": [{ bg: scaleColor() }],
1999
- /**
2000
- * Gradient Color Stops From Position
2001
- * @see https://tailwindcss.com/docs/gradient-color-stops
2002
- */
2003
- "gradient-from-pos": [{ from: scaleGradientStopPosition() }],
2004
- /**
2005
- * Gradient Color Stops Via Position
2006
- * @see https://tailwindcss.com/docs/gradient-color-stops
2007
- */
2008
- "gradient-via-pos": [{ via: scaleGradientStopPosition() }],
2009
- /**
2010
- * Gradient Color Stops To Position
2011
- * @see https://tailwindcss.com/docs/gradient-color-stops
2012
- */
2013
- "gradient-to-pos": [{ to: scaleGradientStopPosition() }],
2014
- /**
2015
- * Gradient Color Stops From
2016
- * @see https://tailwindcss.com/docs/gradient-color-stops
2017
- */
2018
- "gradient-from": [{ from: scaleColor() }],
2019
- /**
2020
- * Gradient Color Stops Via
2021
- * @see https://tailwindcss.com/docs/gradient-color-stops
2022
- */
2023
- "gradient-via": [{ via: scaleColor() }],
2024
- /**
2025
- * Gradient Color Stops To
2026
- * @see https://tailwindcss.com/docs/gradient-color-stops
2027
- */
2028
- "gradient-to": [{ to: scaleColor() }],
2029
- /**
2030
- * Border Radius
2031
- * @see https://tailwindcss.com/docs/border-radius
2032
- */
2033
- rounded: [{ rounded: scaleRadius() }],
2034
- /**
2035
- * Border Radius Start
2036
- * @see https://tailwindcss.com/docs/border-radius
2037
- */
2038
- "rounded-s": [{ "rounded-s": scaleRadius() }],
2039
- /**
2040
- * Border Radius End
2041
- * @see https://tailwindcss.com/docs/border-radius
2042
- */
2043
- "rounded-e": [{ "rounded-e": scaleRadius() }],
2044
- /**
2045
- * Border Radius Top
2046
- * @see https://tailwindcss.com/docs/border-radius
2047
- */
2048
- "rounded-t": [{ "rounded-t": scaleRadius() }],
2049
- /**
2050
- * Border Radius Right
2051
- * @see https://tailwindcss.com/docs/border-radius
2052
- */
2053
- "rounded-r": [{ "rounded-r": scaleRadius() }],
2054
- /**
2055
- * Border Radius Bottom
2056
- * @see https://tailwindcss.com/docs/border-radius
2057
- */
2058
- "rounded-b": [{ "rounded-b": scaleRadius() }],
2059
- /**
2060
- * Border Radius Left
2061
- * @see https://tailwindcss.com/docs/border-radius
2062
- */
2063
- "rounded-l": [{ "rounded-l": scaleRadius() }],
2064
- /**
2065
- * Border Radius Start Start
2066
- * @see https://tailwindcss.com/docs/border-radius
2067
- */
2068
- "rounded-ss": [{ "rounded-ss": scaleRadius() }],
2069
- /**
2070
- * Border Radius Start End
2071
- * @see https://tailwindcss.com/docs/border-radius
2072
- */
2073
- "rounded-se": [{ "rounded-se": scaleRadius() }],
2074
- /**
2075
- * Border Radius End End
2076
- * @see https://tailwindcss.com/docs/border-radius
2077
- */
2078
- "rounded-ee": [{ "rounded-ee": scaleRadius() }],
2079
- /**
2080
- * Border Radius End Start
2081
- * @see https://tailwindcss.com/docs/border-radius
2082
- */
2083
- "rounded-es": [{ "rounded-es": scaleRadius() }],
2084
- /**
2085
- * Border Radius Top Left
2086
- * @see https://tailwindcss.com/docs/border-radius
2087
- */
2088
- "rounded-tl": [{ "rounded-tl": scaleRadius() }],
2089
- /**
2090
- * Border Radius Top Right
2091
- * @see https://tailwindcss.com/docs/border-radius
2092
- */
2093
- "rounded-tr": [{ "rounded-tr": scaleRadius() }],
2094
- /**
2095
- * Border Radius Bottom Right
2096
- * @see https://tailwindcss.com/docs/border-radius
2097
- */
2098
- "rounded-br": [{ "rounded-br": scaleRadius() }],
2099
- /**
2100
- * Border Radius Bottom Left
2101
- * @see https://tailwindcss.com/docs/border-radius
2102
- */
2103
- "rounded-bl": [{ "rounded-bl": scaleRadius() }],
2104
- /**
2105
- * Border Width
2106
- * @see https://tailwindcss.com/docs/border-width
2107
- */
2108
- "border-w": [{ border: scaleBorderWidth() }],
2109
- /**
2110
- * Border Width Inline
2111
- * @see https://tailwindcss.com/docs/border-width
2112
- */
2113
- "border-w-x": [{ "border-x": scaleBorderWidth() }],
2114
- /**
2115
- * Border Width Block
2116
- * @see https://tailwindcss.com/docs/border-width
2117
- */
2118
- "border-w-y": [{ "border-y": scaleBorderWidth() }],
2119
- /**
2120
- * Border Width Inline Start
2121
- * @see https://tailwindcss.com/docs/border-width
2122
- */
2123
- "border-w-s": [{ "border-s": scaleBorderWidth() }],
2124
- /**
2125
- * Border Width Inline End
2126
- * @see https://tailwindcss.com/docs/border-width
2127
- */
2128
- "border-w-e": [{ "border-e": scaleBorderWidth() }],
2129
- /**
2130
- * Border Width Block Start
2131
- * @see https://tailwindcss.com/docs/border-width
2132
- */
2133
- "border-w-bs": [{ "border-bs": scaleBorderWidth() }],
2134
- /**
2135
- * Border Width Block End
2136
- * @see https://tailwindcss.com/docs/border-width
2137
- */
2138
- "border-w-be": [{ "border-be": scaleBorderWidth() }],
2139
- /**
2140
- * Border Width Top
2141
- * @see https://tailwindcss.com/docs/border-width
2142
- */
2143
- "border-w-t": [{ "border-t": scaleBorderWidth() }],
2144
- /**
2145
- * Border Width Right
2146
- * @see https://tailwindcss.com/docs/border-width
2147
- */
2148
- "border-w-r": [{ "border-r": scaleBorderWidth() }],
2149
- /**
2150
- * Border Width Bottom
2151
- * @see https://tailwindcss.com/docs/border-width
2152
- */
2153
- "border-w-b": [{ "border-b": scaleBorderWidth() }],
2154
- /**
2155
- * Border Width Left
2156
- * @see https://tailwindcss.com/docs/border-width
2157
- */
2158
- "border-w-l": [{ "border-l": scaleBorderWidth() }],
2159
- /**
2160
- * Divide Width X
2161
- * @see https://tailwindcss.com/docs/border-width#between-children
2162
- */
2163
- "divide-x": [{ "divide-x": scaleBorderWidth() }],
2164
- /**
2165
- * Divide Width X Reverse
2166
- * @see https://tailwindcss.com/docs/border-width#between-children
2167
- */
2168
- "divide-x-reverse": ["divide-x-reverse"],
2169
- /**
2170
- * Divide Width Y
2171
- * @see https://tailwindcss.com/docs/border-width#between-children
2172
- */
2173
- "divide-y": [{ "divide-y": scaleBorderWidth() }],
2174
- /**
2175
- * Divide Width Y Reverse
2176
- * @see https://tailwindcss.com/docs/border-width#between-children
2177
- */
2178
- "divide-y-reverse": ["divide-y-reverse"],
2179
- /**
2180
- * Border Style
2181
- * @see https://tailwindcss.com/docs/border-style
2182
- */
2183
- "border-style": [{ border: [
2184
- ...scaleLineStyle(),
2185
- "hidden",
2186
- "none"
2187
- ] }],
2188
- /**
2189
- * Divide Style
2190
- * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
2191
- */
2192
- "divide-style": [{ divide: [
2193
- ...scaleLineStyle(),
2194
- "hidden",
2195
- "none"
2196
- ] }],
2197
- /**
2198
- * Border Color
2199
- * @see https://tailwindcss.com/docs/border-color
2200
- */
2201
- "border-color": [{ border: scaleColor() }],
2202
- /**
2203
- * Border Color Inline
2204
- * @see https://tailwindcss.com/docs/border-color
2205
- */
2206
- "border-color-x": [{ "border-x": scaleColor() }],
2207
- /**
2208
- * Border Color Block
2209
- * @see https://tailwindcss.com/docs/border-color
2210
- */
2211
- "border-color-y": [{ "border-y": scaleColor() }],
2212
- /**
2213
- * Border Color Inline Start
2214
- * @see https://tailwindcss.com/docs/border-color
2215
- */
2216
- "border-color-s": [{ "border-s": scaleColor() }],
2217
- /**
2218
- * Border Color Inline End
2219
- * @see https://tailwindcss.com/docs/border-color
2220
- */
2221
- "border-color-e": [{ "border-e": scaleColor() }],
2222
- /**
2223
- * Border Color Block Start
2224
- * @see https://tailwindcss.com/docs/border-color
2225
- */
2226
- "border-color-bs": [{ "border-bs": scaleColor() }],
2227
- /**
2228
- * Border Color Block End
2229
- * @see https://tailwindcss.com/docs/border-color
2230
- */
2231
- "border-color-be": [{ "border-be": scaleColor() }],
2232
- /**
2233
- * Border Color Top
2234
- * @see https://tailwindcss.com/docs/border-color
2235
- */
2236
- "border-color-t": [{ "border-t": scaleColor() }],
2237
- /**
2238
- * Border Color Right
2239
- * @see https://tailwindcss.com/docs/border-color
2240
- */
2241
- "border-color-r": [{ "border-r": scaleColor() }],
2242
- /**
2243
- * Border Color Bottom
2244
- * @see https://tailwindcss.com/docs/border-color
2245
- */
2246
- "border-color-b": [{ "border-b": scaleColor() }],
2247
- /**
2248
- * Border Color Left
2249
- * @see https://tailwindcss.com/docs/border-color
2250
- */
2251
- "border-color-l": [{ "border-l": scaleColor() }],
2252
- /**
2253
- * Divide Color
2254
- * @see https://tailwindcss.com/docs/divide-color
2255
- */
2256
- "divide-color": [{ divide: scaleColor() }],
2257
- /**
2258
- * Outline Style
2259
- * @see https://tailwindcss.com/docs/outline-style
2260
- */
2261
- "outline-style": [{ outline: [
2262
- ...scaleLineStyle(),
2263
- "none",
2264
- "hidden"
2265
- ] }],
2266
- /**
2267
- * Outline Offset
2268
- * @see https://tailwindcss.com/docs/outline-offset
2269
- */
2270
- "outline-offset": [{ "outline-offset": [
2271
- isNumber,
2272
- isArbitraryVariable,
2273
- isArbitraryValue
2274
- ] }],
2275
- /**
2276
- * Outline Width
2277
- * @see https://tailwindcss.com/docs/outline-width
2278
- */
2279
- "outline-w": [{ outline: [
2280
- "",
2281
- isNumber,
2282
- isArbitraryVariableLength,
2283
- isArbitraryLength
2284
- ] }],
2285
- /**
2286
- * Outline Color
2287
- * @see https://tailwindcss.com/docs/outline-color
2288
- */
2289
- "outline-color": [{ outline: scaleColor() }],
2290
- /**
2291
- * Box Shadow
2292
- * @see https://tailwindcss.com/docs/box-shadow
2293
- */
2294
- shadow: [{ shadow: [
2295
- "",
2296
- "none",
2297
- themeShadow,
2298
- isArbitraryVariableShadow,
2299
- isArbitraryShadow
2300
- ] }],
2301
- /**
2302
- * Box Shadow Color
2303
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
2304
- */
2305
- "shadow-color": [{ shadow: scaleColor() }],
2306
- /**
2307
- * Inset Box Shadow
2308
- * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
2309
- */
2310
- "inset-shadow": [{ "inset-shadow": [
2311
- "none",
2312
- themeInsetShadow,
2313
- isArbitraryVariableShadow,
2314
- isArbitraryShadow
2315
- ] }],
2316
- /**
2317
- * Inset Box Shadow Color
2318
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
2319
- */
2320
- "inset-shadow-color": [{ "inset-shadow": scaleColor() }],
2321
- /**
2322
- * Ring Width
2323
- * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2324
- */
2325
- "ring-w": [{ ring: scaleBorderWidth() }],
2326
- /**
2327
- * Ring Width Inset
2328
- * @see https://v3.tailwindcss.com/docs/ring-width#inset-rings
2329
- * @deprecated since Tailwind CSS v4.0.0
2330
- * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2331
- */
2332
- "ring-w-inset": ["ring-inset"],
2333
- /**
2334
- * Ring Color
2335
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
2336
- */
2337
- "ring-color": [{ ring: scaleColor() }],
2338
- /**
2339
- * Ring Offset Width
2340
- * @see https://v3.tailwindcss.com/docs/ring-offset-width
2341
- * @deprecated since Tailwind CSS v4.0.0
2342
- * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2343
- */
2344
- "ring-offset-w": [{ "ring-offset": [isNumber, isArbitraryLength] }],
2345
- /**
2346
- * Ring Offset Color
2347
- * @see https://v3.tailwindcss.com/docs/ring-offset-color
2348
- * @deprecated since Tailwind CSS v4.0.0
2349
- * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2350
- */
2351
- "ring-offset-color": [{ "ring-offset": scaleColor() }],
2352
- /**
2353
- * Inset Ring Width
2354
- * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
2355
- */
2356
- "inset-ring-w": [{ "inset-ring": scaleBorderWidth() }],
2357
- /**
2358
- * Inset Ring Color
2359
- * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
2360
- */
2361
- "inset-ring-color": [{ "inset-ring": scaleColor() }],
2362
- /**
2363
- * Text Shadow
2364
- * @see https://tailwindcss.com/docs/text-shadow
2365
- */
2366
- "text-shadow": [{ "text-shadow": [
2367
- "none",
2368
- themeTextShadow,
2369
- isArbitraryVariableShadow,
2370
- isArbitraryShadow
2371
- ] }],
2372
- /**
2373
- * Text Shadow Color
2374
- * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
2375
- */
2376
- "text-shadow-color": [{ "text-shadow": scaleColor() }],
2377
- /**
2378
- * Opacity
2379
- * @see https://tailwindcss.com/docs/opacity
2380
- */
2381
- opacity: [{ opacity: [
2382
- isNumber,
2383
- isArbitraryVariable,
2384
- isArbitraryValue
2385
- ] }],
2386
- /**
2387
- * Mix Blend Mode
2388
- * @see https://tailwindcss.com/docs/mix-blend-mode
2389
- */
2390
- "mix-blend": [{ "mix-blend": [
2391
- ...scaleBlendMode(),
2392
- "plus-darker",
2393
- "plus-lighter"
2394
- ] }],
2395
- /**
2396
- * Background Blend Mode
2397
- * @see https://tailwindcss.com/docs/background-blend-mode
2398
- */
2399
- "bg-blend": [{ "bg-blend": scaleBlendMode() }],
2400
- /**
2401
- * Mask Clip
2402
- * @see https://tailwindcss.com/docs/mask-clip
2403
- */
2404
- "mask-clip": [{ "mask-clip": [
2405
- "border",
2406
- "padding",
2407
- "content",
2408
- "fill",
2409
- "stroke",
2410
- "view"
2411
- ] }, "mask-no-clip"],
2412
- /**
2413
- * Mask Composite
2414
- * @see https://tailwindcss.com/docs/mask-composite
2415
- */
2416
- "mask-composite": [{ mask: [
2417
- "add",
2418
- "subtract",
2419
- "intersect",
2420
- "exclude"
2421
- ] }],
2422
- /**
2423
- * Mask Image
2424
- * @see https://tailwindcss.com/docs/mask-image
2425
- */
2426
- "mask-image-linear-pos": [{ "mask-linear": [isNumber] }],
2427
- "mask-image-linear-from-pos": [{ "mask-linear-from": scaleMaskImagePosition() }],
2428
- "mask-image-linear-to-pos": [{ "mask-linear-to": scaleMaskImagePosition() }],
2429
- "mask-image-linear-from-color": [{ "mask-linear-from": scaleColor() }],
2430
- "mask-image-linear-to-color": [{ "mask-linear-to": scaleColor() }],
2431
- "mask-image-t-from-pos": [{ "mask-t-from": scaleMaskImagePosition() }],
2432
- "mask-image-t-to-pos": [{ "mask-t-to": scaleMaskImagePosition() }],
2433
- "mask-image-t-from-color": [{ "mask-t-from": scaleColor() }],
2434
- "mask-image-t-to-color": [{ "mask-t-to": scaleColor() }],
2435
- "mask-image-r-from-pos": [{ "mask-r-from": scaleMaskImagePosition() }],
2436
- "mask-image-r-to-pos": [{ "mask-r-to": scaleMaskImagePosition() }],
2437
- "mask-image-r-from-color": [{ "mask-r-from": scaleColor() }],
2438
- "mask-image-r-to-color": [{ "mask-r-to": scaleColor() }],
2439
- "mask-image-b-from-pos": [{ "mask-b-from": scaleMaskImagePosition() }],
2440
- "mask-image-b-to-pos": [{ "mask-b-to": scaleMaskImagePosition() }],
2441
- "mask-image-b-from-color": [{ "mask-b-from": scaleColor() }],
2442
- "mask-image-b-to-color": [{ "mask-b-to": scaleColor() }],
2443
- "mask-image-l-from-pos": [{ "mask-l-from": scaleMaskImagePosition() }],
2444
- "mask-image-l-to-pos": [{ "mask-l-to": scaleMaskImagePosition() }],
2445
- "mask-image-l-from-color": [{ "mask-l-from": scaleColor() }],
2446
- "mask-image-l-to-color": [{ "mask-l-to": scaleColor() }],
2447
- "mask-image-x-from-pos": [{ "mask-x-from": scaleMaskImagePosition() }],
2448
- "mask-image-x-to-pos": [{ "mask-x-to": scaleMaskImagePosition() }],
2449
- "mask-image-x-from-color": [{ "mask-x-from": scaleColor() }],
2450
- "mask-image-x-to-color": [{ "mask-x-to": scaleColor() }],
2451
- "mask-image-y-from-pos": [{ "mask-y-from": scaleMaskImagePosition() }],
2452
- "mask-image-y-to-pos": [{ "mask-y-to": scaleMaskImagePosition() }],
2453
- "mask-image-y-from-color": [{ "mask-y-from": scaleColor() }],
2454
- "mask-image-y-to-color": [{ "mask-y-to": scaleColor() }],
2455
- "mask-image-radial": [{ "mask-radial": [isArbitraryVariable, isArbitraryValue] }],
2456
- "mask-image-radial-from-pos": [{ "mask-radial-from": scaleMaskImagePosition() }],
2457
- "mask-image-radial-to-pos": [{ "mask-radial-to": scaleMaskImagePosition() }],
2458
- "mask-image-radial-from-color": [{ "mask-radial-from": scaleColor() }],
2459
- "mask-image-radial-to-color": [{ "mask-radial-to": scaleColor() }],
2460
- "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
2461
- "mask-image-radial-size": [{ "mask-radial": [{
2462
- closest: ["side", "corner"],
2463
- farthest: ["side", "corner"]
2464
- }] }],
2465
- "mask-image-radial-pos": [{ "mask-radial-at": scalePosition() }],
2466
- "mask-image-conic-pos": [{ "mask-conic": [isNumber] }],
2467
- "mask-image-conic-from-pos": [{ "mask-conic-from": scaleMaskImagePosition() }],
2468
- "mask-image-conic-to-pos": [{ "mask-conic-to": scaleMaskImagePosition() }],
2469
- "mask-image-conic-from-color": [{ "mask-conic-from": scaleColor() }],
2470
- "mask-image-conic-to-color": [{ "mask-conic-to": scaleColor() }],
2471
- /**
2472
- * Mask Mode
2473
- * @see https://tailwindcss.com/docs/mask-mode
2474
- */
2475
- "mask-mode": [{ mask: [
2476
- "alpha",
2477
- "luminance",
2478
- "match"
2479
- ] }],
2480
- /**
2481
- * Mask Origin
2482
- * @see https://tailwindcss.com/docs/mask-origin
2483
- */
2484
- "mask-origin": [{ "mask-origin": [
2485
- "border",
2486
- "padding",
2487
- "content",
2488
- "fill",
2489
- "stroke",
2490
- "view"
2491
- ] }],
2492
- /**
2493
- * Mask Position
2494
- * @see https://tailwindcss.com/docs/mask-position
2495
- */
2496
- "mask-position": [{ mask: scaleBgPosition() }],
2497
- /**
2498
- * Mask Repeat
2499
- * @see https://tailwindcss.com/docs/mask-repeat
2500
- */
2501
- "mask-repeat": [{ mask: scaleBgRepeat() }],
2502
- /**
2503
- * Mask Size
2504
- * @see https://tailwindcss.com/docs/mask-size
2505
- */
2506
- "mask-size": [{ mask: scaleBgSize() }],
2507
- /**
2508
- * Mask Type
2509
- * @see https://tailwindcss.com/docs/mask-type
2510
- */
2511
- "mask-type": [{ "mask-type": ["alpha", "luminance"] }],
2512
- /**
2513
- * Mask Image
2514
- * @see https://tailwindcss.com/docs/mask-image
2515
- */
2516
- "mask-image": [{ mask: [
2517
- "none",
2518
- isArbitraryVariable,
2519
- isArbitraryValue
2520
- ] }],
2521
- /**
2522
- * Filter
2523
- * @see https://tailwindcss.com/docs/filter
2524
- */
2525
- filter: [{ filter: [
2526
- "",
2527
- "none",
2528
- isArbitraryVariable,
2529
- isArbitraryValue
2530
- ] }],
2531
- /**
2532
- * Blur
2533
- * @see https://tailwindcss.com/docs/blur
2534
- */
2535
- blur: [{ blur: scaleBlur() }],
2536
- /**
2537
- * Brightness
2538
- * @see https://tailwindcss.com/docs/brightness
2539
- */
2540
- brightness: [{ brightness: [
2541
- isNumber,
2542
- isArbitraryVariable,
2543
- isArbitraryValue
2544
- ] }],
2545
- /**
2546
- * Contrast
2547
- * @see https://tailwindcss.com/docs/contrast
2548
- */
2549
- contrast: [{ contrast: [
2550
- isNumber,
2551
- isArbitraryVariable,
2552
- isArbitraryValue
2553
- ] }],
2554
- /**
2555
- * Drop Shadow
2556
- * @see https://tailwindcss.com/docs/drop-shadow
2557
- */
2558
- "drop-shadow": [{ "drop-shadow": [
2559
- "",
2560
- "none",
2561
- themeDropShadow,
2562
- isArbitraryVariableShadow,
2563
- isArbitraryShadow
2564
- ] }],
2565
- /**
2566
- * Drop Shadow Color
2567
- * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
2568
- */
2569
- "drop-shadow-color": [{ "drop-shadow": scaleColor() }],
2570
- /**
2571
- * Grayscale
2572
- * @see https://tailwindcss.com/docs/grayscale
2573
- */
2574
- grayscale: [{ grayscale: [
2575
- "",
2576
- isNumber,
2577
- isArbitraryVariable,
2578
- isArbitraryValue
2579
- ] }],
2580
- /**
2581
- * Hue Rotate
2582
- * @see https://tailwindcss.com/docs/hue-rotate
2583
- */
2584
- "hue-rotate": [{ "hue-rotate": [
2585
- isNumber,
2586
- isArbitraryVariable,
2587
- isArbitraryValue
2588
- ] }],
2589
- /**
2590
- * Invert
2591
- * @see https://tailwindcss.com/docs/invert
2592
- */
2593
- invert: [{ invert: [
2594
- "",
2595
- isNumber,
2596
- isArbitraryVariable,
2597
- isArbitraryValue
2598
- ] }],
2599
- /**
2600
- * Saturate
2601
- * @see https://tailwindcss.com/docs/saturate
2602
- */
2603
- saturate: [{ saturate: [
2604
- isNumber,
2605
- isArbitraryVariable,
2606
- isArbitraryValue
2607
- ] }],
2608
- /**
2609
- * Sepia
2610
- * @see https://tailwindcss.com/docs/sepia
2611
- */
2612
- sepia: [{ sepia: [
2613
- "",
2614
- isNumber,
2615
- isArbitraryVariable,
2616
- isArbitraryValue
2617
- ] }],
2618
- /**
2619
- * Backdrop Filter
2620
- * @see https://tailwindcss.com/docs/backdrop-filter
2621
- */
2622
- "backdrop-filter": [{ "backdrop-filter": [
2623
- "",
2624
- "none",
2625
- isArbitraryVariable,
2626
- isArbitraryValue
2627
- ] }],
2628
- /**
2629
- * Backdrop Blur
2630
- * @see https://tailwindcss.com/docs/backdrop-blur
2631
- */
2632
- "backdrop-blur": [{ "backdrop-blur": scaleBlur() }],
2633
- /**
2634
- * Backdrop Brightness
2635
- * @see https://tailwindcss.com/docs/backdrop-brightness
2636
- */
2637
- "backdrop-brightness": [{ "backdrop-brightness": [
2638
- isNumber,
2639
- isArbitraryVariable,
2640
- isArbitraryValue
2641
- ] }],
2642
- /**
2643
- * Backdrop Contrast
2644
- * @see https://tailwindcss.com/docs/backdrop-contrast
2645
- */
2646
- "backdrop-contrast": [{ "backdrop-contrast": [
2647
- isNumber,
2648
- isArbitraryVariable,
2649
- isArbitraryValue
2650
- ] }],
2651
- /**
2652
- * Backdrop Grayscale
2653
- * @see https://tailwindcss.com/docs/backdrop-grayscale
2654
- */
2655
- "backdrop-grayscale": [{ "backdrop-grayscale": [
2656
- "",
2657
- isNumber,
2658
- isArbitraryVariable,
2659
- isArbitraryValue
2660
- ] }],
2661
- /**
2662
- * Backdrop Hue Rotate
2663
- * @see https://tailwindcss.com/docs/backdrop-hue-rotate
2664
- */
2665
- "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
2666
- isNumber,
2667
- isArbitraryVariable,
2668
- isArbitraryValue
2669
- ] }],
2670
- /**
2671
- * Backdrop Invert
2672
- * @see https://tailwindcss.com/docs/backdrop-invert
2673
- */
2674
- "backdrop-invert": [{ "backdrop-invert": [
2675
- "",
2676
- isNumber,
2677
- isArbitraryVariable,
2678
- isArbitraryValue
2679
- ] }],
2680
- /**
2681
- * Backdrop Opacity
2682
- * @see https://tailwindcss.com/docs/backdrop-opacity
2683
- */
2684
- "backdrop-opacity": [{ "backdrop-opacity": [
2685
- isNumber,
2686
- isArbitraryVariable,
2687
- isArbitraryValue
2688
- ] }],
2689
- /**
2690
- * Backdrop Saturate
2691
- * @see https://tailwindcss.com/docs/backdrop-saturate
2692
- */
2693
- "backdrop-saturate": [{ "backdrop-saturate": [
2694
- isNumber,
2695
- isArbitraryVariable,
2696
- isArbitraryValue
2697
- ] }],
2698
- /**
2699
- * Backdrop Sepia
2700
- * @see https://tailwindcss.com/docs/backdrop-sepia
2701
- */
2702
- "backdrop-sepia": [{ "backdrop-sepia": [
2703
- "",
2704
- isNumber,
2705
- isArbitraryVariable,
2706
- isArbitraryValue
2707
- ] }],
2708
- /**
2709
- * Border Collapse
2710
- * @see https://tailwindcss.com/docs/border-collapse
2711
- */
2712
- "border-collapse": [{ border: ["collapse", "separate"] }],
2713
- /**
2714
- * Border Spacing
2715
- * @see https://tailwindcss.com/docs/border-spacing
2716
- */
2717
- "border-spacing": [{ "border-spacing": scaleUnambiguousSpacing() }],
2718
- /**
2719
- * Border Spacing X
2720
- * @see https://tailwindcss.com/docs/border-spacing
2721
- */
2722
- "border-spacing-x": [{ "border-spacing-x": scaleUnambiguousSpacing() }],
2723
- /**
2724
- * Border Spacing Y
2725
- * @see https://tailwindcss.com/docs/border-spacing
2726
- */
2727
- "border-spacing-y": [{ "border-spacing-y": scaleUnambiguousSpacing() }],
2728
- /**
2729
- * Table Layout
2730
- * @see https://tailwindcss.com/docs/table-layout
2731
- */
2732
- "table-layout": [{ table: ["auto", "fixed"] }],
2733
- /**
2734
- * Caption Side
2735
- * @see https://tailwindcss.com/docs/caption-side
2736
- */
2737
- caption: [{ caption: ["top", "bottom"] }],
2738
- /**
2739
- * Transition Property
2740
- * @see https://tailwindcss.com/docs/transition-property
2741
- */
2742
- transition: [{ transition: [
2743
- "",
2744
- "all",
2745
- "colors",
2746
- "opacity",
2747
- "shadow",
2748
- "transform",
2749
- "none",
2750
- isArbitraryVariable,
2751
- isArbitraryValue
2752
- ] }],
2753
- /**
2754
- * Transition Behavior
2755
- * @see https://tailwindcss.com/docs/transition-behavior
2756
- */
2757
- "transition-behavior": [{ transition: ["normal", "discrete"] }],
2758
- /**
2759
- * Transition Duration
2760
- * @see https://tailwindcss.com/docs/transition-duration
2761
- */
2762
- duration: [{ duration: [
2763
- isNumber,
2764
- "initial",
2765
- isArbitraryVariable,
2766
- isArbitraryValue
2767
- ] }],
2768
- /**
2769
- * Transition Timing Function
2770
- * @see https://tailwindcss.com/docs/transition-timing-function
2771
- */
2772
- ease: [{ ease: [
2773
- "linear",
2774
- "initial",
2775
- themeEase,
2776
- isArbitraryVariable,
2777
- isArbitraryValue
2778
- ] }],
2779
- /**
2780
- * Transition Delay
2781
- * @see https://tailwindcss.com/docs/transition-delay
2782
- */
2783
- delay: [{ delay: [
2784
- isNumber,
2785
- isArbitraryVariable,
2786
- isArbitraryValue
2787
- ] }],
2788
- /**
2789
- * Animation
2790
- * @see https://tailwindcss.com/docs/animation
2791
- */
2792
- animate: [{ animate: [
2793
- "none",
2794
- themeAnimate,
2795
- isArbitraryVariable,
2796
- isArbitraryValue
2797
- ] }],
2798
- /**
2799
- * Backface Visibility
2800
- * @see https://tailwindcss.com/docs/backface-visibility
2801
- */
2802
- backface: [{ backface: ["hidden", "visible"] }],
2803
- /**
2804
- * Perspective
2805
- * @see https://tailwindcss.com/docs/perspective
2806
- */
2807
- perspective: [{ perspective: [
2808
- themePerspective,
2809
- isArbitraryVariable,
2810
- isArbitraryValue
2811
- ] }],
2812
- /**
2813
- * Perspective Origin
2814
- * @see https://tailwindcss.com/docs/perspective-origin
2815
- */
2816
- "perspective-origin": [{ "perspective-origin": scalePositionWithArbitrary() }],
2817
- /**
2818
- * Rotate
2819
- * @see https://tailwindcss.com/docs/rotate
2820
- */
2821
- rotate: [{ rotate: scaleRotate() }],
2822
- /**
2823
- * Rotate X
2824
- * @see https://tailwindcss.com/docs/rotate
2825
- */
2826
- "rotate-x": [{ "rotate-x": scaleRotate() }],
2827
- /**
2828
- * Rotate Y
2829
- * @see https://tailwindcss.com/docs/rotate
2830
- */
2831
- "rotate-y": [{ "rotate-y": scaleRotate() }],
2832
- /**
2833
- * Rotate Z
2834
- * @see https://tailwindcss.com/docs/rotate
2835
- */
2836
- "rotate-z": [{ "rotate-z": scaleRotate() }],
2837
- /**
2838
- * Scale
2839
- * @see https://tailwindcss.com/docs/scale
2840
- */
2841
- scale: [{ scale: scaleScale() }],
2842
- /**
2843
- * Scale X
2844
- * @see https://tailwindcss.com/docs/scale
2845
- */
2846
- "scale-x": [{ "scale-x": scaleScale() }],
2847
- /**
2848
- * Scale Y
2849
- * @see https://tailwindcss.com/docs/scale
2850
- */
2851
- "scale-y": [{ "scale-y": scaleScale() }],
2852
- /**
2853
- * Scale Z
2854
- * @see https://tailwindcss.com/docs/scale
2855
- */
2856
- "scale-z": [{ "scale-z": scaleScale() }],
2857
- /**
2858
- * Scale 3D
2859
- * @see https://tailwindcss.com/docs/scale
2860
- */
2861
- "scale-3d": ["scale-3d"],
2862
- /**
2863
- * Skew
2864
- * @see https://tailwindcss.com/docs/skew
2865
- */
2866
- skew: [{ skew: scaleSkew() }],
2867
- /**
2868
- * Skew X
2869
- * @see https://tailwindcss.com/docs/skew
2870
- */
2871
- "skew-x": [{ "skew-x": scaleSkew() }],
2872
- /**
2873
- * Skew Y
2874
- * @see https://tailwindcss.com/docs/skew
2875
- */
2876
- "skew-y": [{ "skew-y": scaleSkew() }],
2877
- /**
2878
- * Transform
2879
- * @see https://tailwindcss.com/docs/transform
2880
- */
2881
- transform: [{ transform: [
2882
- isArbitraryVariable,
2883
- isArbitraryValue,
2884
- "",
2885
- "none",
2886
- "gpu",
2887
- "cpu"
2888
- ] }],
2889
- /**
2890
- * Transform Origin
2891
- * @see https://tailwindcss.com/docs/transform-origin
2892
- */
2893
- "transform-origin": [{ origin: scalePositionWithArbitrary() }],
2894
- /**
2895
- * Transform Style
2896
- * @see https://tailwindcss.com/docs/transform-style
2897
- */
2898
- "transform-style": [{ transform: ["3d", "flat"] }],
2899
- /**
2900
- * Translate
2901
- * @see https://tailwindcss.com/docs/translate
2902
- */
2903
- translate: [{ translate: scaleTranslate() }],
2904
- /**
2905
- * Translate X
2906
- * @see https://tailwindcss.com/docs/translate
2907
- */
2908
- "translate-x": [{ "translate-x": scaleTranslate() }],
2909
- /**
2910
- * Translate Y
2911
- * @see https://tailwindcss.com/docs/translate
2912
- */
2913
- "translate-y": [{ "translate-y": scaleTranslate() }],
2914
- /**
2915
- * Translate Z
2916
- * @see https://tailwindcss.com/docs/translate
2917
- */
2918
- "translate-z": [{ "translate-z": scaleTranslate() }],
2919
- /**
2920
- * Translate None
2921
- * @see https://tailwindcss.com/docs/translate
2922
- */
2923
- "translate-none": ["translate-none"],
2924
- /**
2925
- * Zoom
2926
- * @see https://tailwindcss.com/docs/zoom
2927
- */
2928
- zoom: [{ zoom: [
2929
- isInteger,
2930
- isArbitraryVariable,
2931
- isArbitraryValue
2932
- ] }],
2933
- /**
2934
- * Accent Color
2935
- * @see https://tailwindcss.com/docs/accent-color
2936
- */
2937
- accent: [{ accent: scaleColor() }],
2938
- /**
2939
- * Appearance
2940
- * @see https://tailwindcss.com/docs/appearance
2941
- */
2942
- appearance: [{ appearance: ["none", "auto"] }],
2943
- /**
2944
- * Caret Color
2945
- * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
2946
- */
2947
- "caret-color": [{ caret: scaleColor() }],
2948
- /**
2949
- * Color Scheme
2950
- * @see https://tailwindcss.com/docs/color-scheme
2951
- */
2952
- "color-scheme": [{ scheme: [
2953
- "normal",
2954
- "dark",
2955
- "light",
2956
- "light-dark",
2957
- "only-dark",
2958
- "only-light"
2959
- ] }],
2960
- /**
2961
- * Cursor
2962
- * @see https://tailwindcss.com/docs/cursor
2963
- */
2964
- cursor: [{ cursor: [
2965
- "auto",
2966
- "default",
2967
- "pointer",
2968
- "wait",
2969
- "text",
2970
- "move",
2971
- "help",
2972
- "not-allowed",
2973
- "none",
2974
- "context-menu",
2975
- "progress",
2976
- "cell",
2977
- "crosshair",
2978
- "vertical-text",
2979
- "alias",
2980
- "copy",
2981
- "no-drop",
2982
- "grab",
2983
- "grabbing",
2984
- "all-scroll",
2985
- "col-resize",
2986
- "row-resize",
2987
- "n-resize",
2988
- "e-resize",
2989
- "s-resize",
2990
- "w-resize",
2991
- "ne-resize",
2992
- "nw-resize",
2993
- "se-resize",
2994
- "sw-resize",
2995
- "ew-resize",
2996
- "ns-resize",
2997
- "nesw-resize",
2998
- "nwse-resize",
2999
- "zoom-in",
3000
- "zoom-out",
3001
- isArbitraryVariable,
3002
- isArbitraryValue
3003
- ] }],
3004
- /**
3005
- * Field Sizing
3006
- * @see https://tailwindcss.com/docs/field-sizing
3007
- */
3008
- "field-sizing": [{ "field-sizing": ["fixed", "content"] }],
3009
- /**
3010
- * Pointer Events
3011
- * @see https://tailwindcss.com/docs/pointer-events
3012
- */
3013
- "pointer-events": [{ "pointer-events": ["auto", "none"] }],
3014
- /**
3015
- * Resize
3016
- * @see https://tailwindcss.com/docs/resize
3017
- */
3018
- resize: [{ resize: [
3019
- "none",
3020
- "",
3021
- "y",
3022
- "x"
3023
- ] }],
3024
- /**
3025
- * Scroll Behavior
3026
- * @see https://tailwindcss.com/docs/scroll-behavior
3027
- */
3028
- "scroll-behavior": [{ scroll: ["auto", "smooth"] }],
3029
- /**
3030
- * Scrollbar Thumb Color
3031
- * @see https://tailwindcss.com/docs/scrollbar-color
3032
- */
3033
- "scrollbar-thumb-color": [{ "scrollbar-thumb": scaleColor() }],
3034
- /**
3035
- * Scrollbar Track Color
3036
- * @see https://tailwindcss.com/docs/scrollbar-color
3037
- */
3038
- "scrollbar-track-color": [{ "scrollbar-track": scaleColor() }],
3039
- /**
3040
- * Scrollbar Gutter
3041
- * @see https://tailwindcss.com/docs/scrollbar-gutter
3042
- */
3043
- "scrollbar-gutter": [{ "scrollbar-gutter": [
3044
- "auto",
3045
- "stable",
3046
- "both"
3047
- ] }],
3048
- /**
3049
- * Scrollbar Width
3050
- * @see https://tailwindcss.com/docs/scrollbar-width
3051
- */
3052
- "scrollbar-w": [{ scrollbar: [
3053
- "auto",
3054
- "thin",
3055
- "none"
3056
- ] }],
3057
- /**
3058
- * Scroll Margin
3059
- * @see https://tailwindcss.com/docs/scroll-margin
3060
- */
3061
- "scroll-m": [{ "scroll-m": scaleUnambiguousSpacing() }],
3062
- /**
3063
- * Scroll Margin Inline
3064
- * @see https://tailwindcss.com/docs/scroll-margin
3065
- */
3066
- "scroll-mx": [{ "scroll-mx": scaleUnambiguousSpacing() }],
3067
- /**
3068
- * Scroll Margin Block
3069
- * @see https://tailwindcss.com/docs/scroll-margin
3070
- */
3071
- "scroll-my": [{ "scroll-my": scaleUnambiguousSpacing() }],
3072
- /**
3073
- * Scroll Margin Inline Start
3074
- * @see https://tailwindcss.com/docs/scroll-margin
3075
- */
3076
- "scroll-ms": [{ "scroll-ms": scaleUnambiguousSpacing() }],
3077
- /**
3078
- * Scroll Margin Inline End
3079
- * @see https://tailwindcss.com/docs/scroll-margin
3080
- */
3081
- "scroll-me": [{ "scroll-me": scaleUnambiguousSpacing() }],
3082
- /**
3083
- * Scroll Margin Block Start
3084
- * @see https://tailwindcss.com/docs/scroll-margin
3085
- */
3086
- "scroll-mbs": [{ "scroll-mbs": scaleUnambiguousSpacing() }],
3087
- /**
3088
- * Scroll Margin Block End
3089
- * @see https://tailwindcss.com/docs/scroll-margin
3090
- */
3091
- "scroll-mbe": [{ "scroll-mbe": scaleUnambiguousSpacing() }],
3092
- /**
3093
- * Scroll Margin Top
3094
- * @see https://tailwindcss.com/docs/scroll-margin
3095
- */
3096
- "scroll-mt": [{ "scroll-mt": scaleUnambiguousSpacing() }],
3097
- /**
3098
- * Scroll Margin Right
3099
- * @see https://tailwindcss.com/docs/scroll-margin
3100
- */
3101
- "scroll-mr": [{ "scroll-mr": scaleUnambiguousSpacing() }],
3102
- /**
3103
- * Scroll Margin Bottom
3104
- * @see https://tailwindcss.com/docs/scroll-margin
3105
- */
3106
- "scroll-mb": [{ "scroll-mb": scaleUnambiguousSpacing() }],
3107
- /**
3108
- * Scroll Margin Left
3109
- * @see https://tailwindcss.com/docs/scroll-margin
3110
- */
3111
- "scroll-ml": [{ "scroll-ml": scaleUnambiguousSpacing() }],
3112
- /**
3113
- * Scroll Padding
3114
- * @see https://tailwindcss.com/docs/scroll-padding
3115
- */
3116
- "scroll-p": [{ "scroll-p": scaleUnambiguousSpacing() }],
3117
- /**
3118
- * Scroll Padding Inline
3119
- * @see https://tailwindcss.com/docs/scroll-padding
3120
- */
3121
- "scroll-px": [{ "scroll-px": scaleUnambiguousSpacing() }],
3122
- /**
3123
- * Scroll Padding Block
3124
- * @see https://tailwindcss.com/docs/scroll-padding
3125
- */
3126
- "scroll-py": [{ "scroll-py": scaleUnambiguousSpacing() }],
3127
- /**
3128
- * Scroll Padding Inline Start
3129
- * @see https://tailwindcss.com/docs/scroll-padding
3130
- */
3131
- "scroll-ps": [{ "scroll-ps": scaleUnambiguousSpacing() }],
3132
- /**
3133
- * Scroll Padding Inline End
3134
- * @see https://tailwindcss.com/docs/scroll-padding
3135
- */
3136
- "scroll-pe": [{ "scroll-pe": scaleUnambiguousSpacing() }],
3137
- /**
3138
- * Scroll Padding Block Start
3139
- * @see https://tailwindcss.com/docs/scroll-padding
3140
- */
3141
- "scroll-pbs": [{ "scroll-pbs": scaleUnambiguousSpacing() }],
3142
- /**
3143
- * Scroll Padding Block End
3144
- * @see https://tailwindcss.com/docs/scroll-padding
3145
- */
3146
- "scroll-pbe": [{ "scroll-pbe": scaleUnambiguousSpacing() }],
3147
- /**
3148
- * Scroll Padding Top
3149
- * @see https://tailwindcss.com/docs/scroll-padding
3150
- */
3151
- "scroll-pt": [{ "scroll-pt": scaleUnambiguousSpacing() }],
3152
- /**
3153
- * Scroll Padding Right
3154
- * @see https://tailwindcss.com/docs/scroll-padding
3155
- */
3156
- "scroll-pr": [{ "scroll-pr": scaleUnambiguousSpacing() }],
3157
- /**
3158
- * Scroll Padding Bottom
3159
- * @see https://tailwindcss.com/docs/scroll-padding
3160
- */
3161
- "scroll-pb": [{ "scroll-pb": scaleUnambiguousSpacing() }],
3162
- /**
3163
- * Scroll Padding Left
3164
- * @see https://tailwindcss.com/docs/scroll-padding
3165
- */
3166
- "scroll-pl": [{ "scroll-pl": scaleUnambiguousSpacing() }],
3167
- /**
3168
- * Scroll Snap Align
3169
- * @see https://tailwindcss.com/docs/scroll-snap-align
3170
- */
3171
- "snap-align": [{ snap: [
3172
- "start",
3173
- "end",
3174
- "center",
3175
- "align-none"
3176
- ] }],
3177
- /**
3178
- * Scroll Snap Stop
3179
- * @see https://tailwindcss.com/docs/scroll-snap-stop
3180
- */
3181
- "snap-stop": [{ snap: ["normal", "always"] }],
3182
- /**
3183
- * Scroll Snap Type
3184
- * @see https://tailwindcss.com/docs/scroll-snap-type
3185
- */
3186
- "snap-type": [{ snap: [
3187
- "none",
3188
- "x",
3189
- "y",
3190
- "both"
3191
- ] }],
3192
- /**
3193
- * Scroll Snap Type Strictness
3194
- * @see https://tailwindcss.com/docs/scroll-snap-type
3195
- */
3196
- "snap-strictness": [{ snap: ["mandatory", "proximity"] }],
3197
- /**
3198
- * Touch Action
3199
- * @see https://tailwindcss.com/docs/touch-action
3200
- */
3201
- touch: [{ touch: [
3202
- "auto",
3203
- "none",
3204
- "manipulation"
3205
- ] }],
3206
- /**
3207
- * Touch Action X
3208
- * @see https://tailwindcss.com/docs/touch-action
3209
- */
3210
- "touch-x": [{ "touch-pan": [
3211
- "x",
3212
- "left",
3213
- "right"
3214
- ] }],
3215
- /**
3216
- * Touch Action Y
3217
- * @see https://tailwindcss.com/docs/touch-action
3218
- */
3219
- "touch-y": [{ "touch-pan": [
3220
- "y",
3221
- "up",
3222
- "down"
3223
- ] }],
3224
- /**
3225
- * Touch Action Pinch Zoom
3226
- * @see https://tailwindcss.com/docs/touch-action
3227
- */
3228
- "touch-pz": ["touch-pinch-zoom"],
3229
- /**
3230
- * User Select
3231
- * @see https://tailwindcss.com/docs/user-select
3232
- */
3233
- select: [{ select: [
3234
- "none",
3235
- "text",
3236
- "all",
3237
- "auto"
3238
- ] }],
3239
- /**
3240
- * Will Change
3241
- * @see https://tailwindcss.com/docs/will-change
3242
- */
3243
- "will-change": [{ "will-change": [
3244
- "auto",
3245
- "scroll",
3246
- "contents",
3247
- "transform",
3248
- isArbitraryVariable,
3249
- isArbitraryValue
3250
- ] }],
3251
- /**
3252
- * Fill
3253
- * @see https://tailwindcss.com/docs/fill
3254
- */
3255
- fill: [{ fill: ["none", ...scaleColor()] }],
3256
- /**
3257
- * Stroke Width
3258
- * @see https://tailwindcss.com/docs/stroke-width
3259
- */
3260
- "stroke-w": [{ stroke: [
3261
- isNumber,
3262
- isArbitraryVariableLength,
3263
- isArbitraryLength,
3264
- isArbitraryNumber
3265
- ] }],
3266
- /**
3267
- * Stroke
3268
- * @see https://tailwindcss.com/docs/stroke
3269
- */
3270
- stroke: [{ stroke: ["none", ...scaleColor()] }],
3271
- /**
3272
- * Forced Color Adjust
3273
- * @see https://tailwindcss.com/docs/forced-color-adjust
3274
- */
3275
- "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
3276
- },
3277
- conflictingClassGroups: {
3278
- "container-named": ["container-type"],
3279
- overflow: ["overflow-x", "overflow-y"],
3280
- overscroll: ["overscroll-x", "overscroll-y"],
3281
- inset: [
3282
- "inset-x",
3283
- "inset-y",
3284
- "inset-bs",
3285
- "inset-be",
3286
- "start",
3287
- "end",
3288
- "top",
3289
- "right",
3290
- "bottom",
3291
- "left"
3292
- ],
3293
- "inset-x": ["right", "left"],
3294
- "inset-y": ["top", "bottom"],
3295
- flex: [
3296
- "basis",
3297
- "grow",
3298
- "shrink"
3299
- ],
3300
- gap: ["gap-x", "gap-y"],
3301
- p: [
3302
- "px",
3303
- "py",
3304
- "ps",
3305
- "pe",
3306
- "pbs",
3307
- "pbe",
3308
- "pt",
3309
- "pr",
3310
- "pb",
3311
- "pl"
3312
- ],
3313
- px: ["pr", "pl"],
3314
- py: ["pt", "pb"],
3315
- m: [
3316
- "mx",
3317
- "my",
3318
- "ms",
3319
- "me",
3320
- "mbs",
3321
- "mbe",
3322
- "mt",
3323
- "mr",
3324
- "mb",
3325
- "ml"
3326
- ],
3327
- mx: ["mr", "ml"],
3328
- my: ["mt", "mb"],
3329
- size: ["w", "h"],
3330
- "font-size": ["leading"],
3331
- "fvn-normal": [
3332
- "fvn-ordinal",
3333
- "fvn-slashed-zero",
3334
- "fvn-figure",
3335
- "fvn-spacing",
3336
- "fvn-fraction"
3337
- ],
3338
- "fvn-ordinal": ["fvn-normal"],
3339
- "fvn-slashed-zero": ["fvn-normal"],
3340
- "fvn-figure": ["fvn-normal"],
3341
- "fvn-spacing": ["fvn-normal"],
3342
- "fvn-fraction": ["fvn-normal"],
3343
- "line-clamp": ["display", "overflow"],
3344
- rounded: [
3345
- "rounded-s",
3346
- "rounded-e",
3347
- "rounded-t",
3348
- "rounded-r",
3349
- "rounded-b",
3350
- "rounded-l",
3351
- "rounded-ss",
3352
- "rounded-se",
3353
- "rounded-ee",
3354
- "rounded-es",
3355
- "rounded-tl",
3356
- "rounded-tr",
3357
- "rounded-br",
3358
- "rounded-bl"
3359
- ],
3360
- "rounded-s": ["rounded-ss", "rounded-es"],
3361
- "rounded-e": ["rounded-se", "rounded-ee"],
3362
- "rounded-t": ["rounded-tl", "rounded-tr"],
3363
- "rounded-r": ["rounded-tr", "rounded-br"],
3364
- "rounded-b": ["rounded-br", "rounded-bl"],
3365
- "rounded-l": ["rounded-tl", "rounded-bl"],
3366
- "border-spacing": ["border-spacing-x", "border-spacing-y"],
3367
- "border-w": [
3368
- "border-w-x",
3369
- "border-w-y",
3370
- "border-w-s",
3371
- "border-w-e",
3372
- "border-w-bs",
3373
- "border-w-be",
3374
- "border-w-t",
3375
- "border-w-r",
3376
- "border-w-b",
3377
- "border-w-l"
3378
- ],
3379
- "border-w-x": ["border-w-r", "border-w-l"],
3380
- "border-w-y": ["border-w-t", "border-w-b"],
3381
- "border-color": [
3382
- "border-color-x",
3383
- "border-color-y",
3384
- "border-color-s",
3385
- "border-color-e",
3386
- "border-color-bs",
3387
- "border-color-be",
3388
- "border-color-t",
3389
- "border-color-r",
3390
- "border-color-b",
3391
- "border-color-l"
3392
- ],
3393
- "border-color-x": ["border-color-r", "border-color-l"],
3394
- "border-color-y": ["border-color-t", "border-color-b"],
3395
- translate: [
3396
- "translate-x",
3397
- "translate-y",
3398
- "translate-none"
3399
- ],
3400
- "translate-none": [
3401
- "translate",
3402
- "translate-x",
3403
- "translate-y",
3404
- "translate-z"
3405
- ],
3406
- "scroll-m": [
3407
- "scroll-mx",
3408
- "scroll-my",
3409
- "scroll-ms",
3410
- "scroll-me",
3411
- "scroll-mbs",
3412
- "scroll-mbe",
3413
- "scroll-mt",
3414
- "scroll-mr",
3415
- "scroll-mb",
3416
- "scroll-ml"
3417
- ],
3418
- "scroll-mx": ["scroll-mr", "scroll-ml"],
3419
- "scroll-my": ["scroll-mt", "scroll-mb"],
3420
- "scroll-p": [
3421
- "scroll-px",
3422
- "scroll-py",
3423
- "scroll-ps",
3424
- "scroll-pe",
3425
- "scroll-pbs",
3426
- "scroll-pbe",
3427
- "scroll-pt",
3428
- "scroll-pr",
3429
- "scroll-pb",
3430
- "scroll-pl"
3431
- ],
3432
- "scroll-px": ["scroll-pr", "scroll-pl"],
3433
- "scroll-py": ["scroll-pt", "scroll-pb"],
3434
- touch: [
3435
- "touch-x",
3436
- "touch-y",
3437
- "touch-pz"
3438
- ],
3439
- "touch-x": ["touch"],
3440
- "touch-y": ["touch"],
3441
- "touch-pz": ["touch"]
3442
- },
3443
- conflictingClassGroupModifiers: { "font-size": ["leading"] },
3444
- postfixLookupClassGroups: ["container-type"],
3445
- orderSensitiveModifiers: [
3446
- "*",
3447
- "**",
3448
- "after",
3449
- "backdrop",
3450
- "before",
3451
- "details-content",
3452
- "file",
3453
- "first-letter",
3454
- "first-line",
3455
- "marker",
3456
- "placeholder",
3457
- "selection"
3458
- ]
3459
- };
3460
- };
3461
- const twMerge = createTailwindMerge(getDefaultConfig);
3462
- /**
3463
- * Max distinct interpolation tuples remembered per call site. Real tagged-template sites cycle
3464
- * through a tiny set of dynamic values (a boolean toggling one class, a small variant union), so
3465
- * this stays small; the bound only guards a site that interpolates high-cardinality values (e.g. a
3466
- * live color) from growing its per-site list without limit.
3467
- */
3468
- const TEMPLATE_SITE_CACHE = 8;
3469
- const templateCache = /* @__PURE__ */ new WeakMap();
3470
- const mergeTemplate = (strings, values) => {
3471
- const valueCount = values.length;
3472
- let isCacheable = true;
3473
- for (let index = 0; index < valueCount; index++) {
3474
- const value = values[index];
3475
- if (value && typeof value !== "string") {
3476
- isCacheable = false;
3477
- break;
3478
- }
3479
- }
3480
- if (isCacheable) {
3481
- const entries = templateCache.get(strings);
3482
- if (entries !== void 0) for (let entryIndex = 0; entryIndex < entries.length; entryIndex++) {
3483
- const entry = entries[entryIndex];
3484
- const entryValues = entry.values;
3485
- let isMatch = true;
3486
- for (let index = 0; index < valueCount; index++) if (entryValues[index] !== values[index]) {
3487
- isMatch = false;
3488
- break;
3489
- }
3490
- if (isMatch) return entry.result;
3491
- }
3492
- }
3493
- let joined = strings[0];
3494
- for (let index = 0; index < valueCount; index++) {
3495
- const value = values[index];
3496
- if (value) joined += typeof value === "string" ? value : resolveClassValue(value);
3497
- joined += strings[index + 1];
3498
- }
3499
- const result = twMerge.mergeString(joined);
3500
- if (isCacheable) {
3501
- let entries = templateCache.get(strings);
3502
- if (entries === void 0) {
3503
- entries = [];
3504
- templateCache.set(strings, entries);
3505
- }
3506
- if (entries.length >= TEMPLATE_SITE_CACHE) entries.shift();
3507
- entries.push({
3508
- values,
3509
- result
3510
- });
3511
- }
3512
- return result;
3513
- };
3514
- const IS_V8 = (() => {
3515
- const error = /* @__PURE__ */ new Error();
3516
- return !("line" in error) && !("lineNumber" in error);
3517
- })();
3518
- const ARG_CACHE_BUCKET_SIZE = 64;
3519
- /** First-arg buckets kept before a generation rotates into `previousArgCache`. */
3520
- const ARG_CACHE_SIZE = 500;
3521
- let argCache = /* @__PURE__ */ new Map();
3522
- let previousArgCache = /* @__PURE__ */ new Map();
3523
- let argCacheCount = 0;
3524
- const mergeVariadicCached = (inputs) => {
3525
- const length = inputs.length;
3526
- let firstKey = "";
3527
- let firstKeyIndex = -1;
3528
- let truthyStringCount = 0;
3529
- let everyTruthyIsString = true;
3530
- for (let index = 0; index < length; index++) {
3531
- const item = inputs[index];
3532
- if (!item) continue;
3533
- if (typeof item !== "string") {
3534
- everyTruthyIsString = false;
3535
- break;
3536
- }
3537
- if (firstKeyIndex === -1) {
3538
- firstKey = item;
3539
- firstKeyIndex = index;
3540
- }
3541
- truthyStringCount++;
3542
- }
3543
- if (everyTruthyIsString) {
3544
- if (truthyStringCount === 0) return "";
3545
- if (truthyStringCount === 1) return twMerge.mergeString(firstKey);
3546
- let bucket = argCache.get(firstKey);
3547
- if (bucket === void 0) bucket = previousArgCache.get(firstKey);
3548
- if (bucket !== void 0) for (let entryIndex = 0; entryIndex < bucket.length; entryIndex++) {
3549
- const entry = bucket[entryIndex];
3550
- const rest = entry.rest;
3551
- if (rest.length !== truthyStringCount - 1) continue;
3552
- let restIndex = 0;
3553
- let isMatch = true;
3554
- for (let index = firstKeyIndex + 1; index < length; index++) {
3555
- const item = inputs[index];
3556
- if (!item) continue;
3557
- if (item !== rest[restIndex++]) {
3558
- isMatch = false;
3559
- break;
3560
- }
3561
- }
3562
- if (isMatch) return entry.result;
3563
- }
3564
- let joined = firstKey;
3565
- const rest = [];
3566
- for (let index = firstKeyIndex + 1; index < length; index++) {
3567
- const item = inputs[index];
3568
- if (!item) continue;
3569
- joined += " " + item;
3570
- rest.push(item);
3571
- }
3572
- const result = twMerge.mergeString(joined);
3573
- let target = argCache.get(firstKey);
3574
- if (target === void 0) {
3575
- target = [];
3576
- argCache.set(firstKey, target);
3577
- }
3578
- if (target.length >= ARG_CACHE_BUCKET_SIZE) target.shift();
3579
- target.push({
3580
- rest,
3581
- result
3582
- });
3583
- if (++argCacheCount > ARG_CACHE_SIZE) {
3584
- argCacheCount = 0;
3585
- previousArgCache = argCache;
3586
- argCache = /* @__PURE__ */ new Map();
3587
- }
3588
- return result;
3589
- }
3590
- let result = "";
3591
- for (let index = 0; index < length; index++) {
3592
- const item = inputs[index];
3593
- if (!item) continue;
3594
- const resolved = typeof item === "string" ? item : resolveClassValue(item);
3595
- if (resolved) {
3596
- if (result) result += " ";
3597
- result += resolved;
3598
- }
3599
- }
3600
- return twMerge.mergeString(result);
3601
- };
3602
- const cn = function() {
3603
- const first = arguments[0];
3604
- if (Array.isArray(first) && "raw" in first) {
3605
- const strings = first;
3606
- const length = arguments.length;
3607
- const values = [];
3608
- for (let index = 1; index < length; index++) values.push(arguments[index]);
3609
- return mergeTemplate(strings, values);
3610
- }
3611
- const length = arguments.length;
3612
- if (length === 1) return typeof first === "string" ? twMerge.mergeString(first) : twMerge.mergeString(resolveClassValue(first));
3613
- if (IS_V8) {
3614
- const inputs = [];
3615
- for (let index = 0; index < length; index++) inputs.push(arguments[index]);
3616
- return mergeVariadicCached(inputs);
3617
- }
3618
- let result = "";
3619
- for (let index = 0; index < length; index++) {
3620
- const item = arguments[index];
3621
- if (!item) continue;
3622
- const resolved = typeof item === "string" ? item : resolveClassValue(item);
3623
- if (resolved) {
3624
- if (result) result += " ";
3625
- result += resolved;
3626
- }
3627
- }
3628
- return twMerge.mergeString(result);
3629
- };
3630
- //#endregion
3631
- export { cn as t };