adp-web-components 0.0.89 → 0.0.91

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 (527) hide show
  1. package/dist/cjs/activation-icon-DEYW0itX.js +16 -0
  2. package/dist/cjs/cn-BHnqYtun.js +2597 -0
  3. package/dist/cjs/contact-us-form.cjs.entry.js +11 -22
  4. package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +287 -347
  5. package/dist/cjs/empty-table-icon-PdTX6gpI.js +16 -0
  6. package/dist/cjs/flexible-container.cjs.entry.js +131 -0
  7. package/dist/cjs/form-dialog_8.cjs.entry.js +44 -100
  8. package/dist/cjs/{get-local-language-e539cfdc.js → get-local-language-AedNCS4v.js} +375 -332
  9. package/dist/cjs/{index-a8de3655.js → index-BjyafrBw.js} +525 -288
  10. package/dist/cjs/information-table.cjs.entry.js +43 -0
  11. package/dist/cjs/loader.cjs.js +3 -6
  12. package/dist/cjs/loading-spinner.cjs.entry.js +6 -10
  13. package/dist/cjs/material-card-Cd0L1Get.js +43 -0
  14. package/dist/cjs/part-lookup.cjs.entry.js +39 -25
  15. package/dist/cjs/service-booking-form.cjs.entry.js +10 -21
  16. package/dist/cjs/shift-accordion.cjs.entry.js +29 -0
  17. package/dist/cjs/shift-components.cjs.js +7 -8
  18. package/dist/cjs/shift-slider.cjs.entry.js +70 -0
  19. package/dist/cjs/shift-tab-content.cjs.entry.js +42 -0
  20. package/dist/cjs/shift-tabs_2.cjs.entry.js +332 -0
  21. package/dist/cjs/{type-3d22f1fc.js → type-A-Wi_ktA.js} +50 -1
  22. package/dist/cjs/{type-3183db65.js → type-Dm3JBAef.js} +32 -123
  23. package/dist/cjs/{type-c576b922.js → type-ooYU2cCM.js} +4 -4
  24. package/dist/cjs/vehicle-accessories_6.cjs.entry.js +1206 -0
  25. package/dist/cjs/vehicle-info-layout-Dp2Po_uc.js +16 -0
  26. package/dist/cjs/vehicle-lookup.cjs.entry.js +62 -49
  27. package/dist/cjs/vin-extractor.cjs.entry.js +24 -34
  28. package/dist/collection/collection-manifest.json +19 -13
  29. package/dist/collection/components/components/card-content.js +7 -0
  30. package/dist/collection/components/components/flexible-container.css +1 -0
  31. package/dist/collection/components/components/flexible-container.js +315 -0
  32. package/dist/collection/components/components/information-table.css +1 -0
  33. package/dist/collection/components/components/information-table.js +180 -0
  34. package/dist/collection/components/components/loading-spinner.css +1 -1
  35. package/dist/collection/components/components/loading-spinner.js +4 -5
  36. package/dist/collection/components/components/material-card.js +34 -0
  37. package/dist/collection/components/{vehicle-lookup/service-history.css → components/shift-accordion.css} +1 -1
  38. package/dist/collection/components/components/shift-accordion.js +102 -0
  39. package/dist/collection/components/components/shift-slider.css +1 -0
  40. package/dist/collection/components/components/shift-slider.js +95 -0
  41. package/dist/collection/components/components/shift-tab-content.css +1 -0
  42. package/dist/collection/components/components/shift-tab-content.js +98 -0
  43. package/dist/collection/components/components/shift-tabs.css +1 -0
  44. package/dist/collection/components/components/shift-tabs.js +140 -0
  45. package/dist/collection/components/form-elements/form-dialog.css +1 -1
  46. package/dist/collection/components/form-elements/form-dialog.js +16 -12
  47. package/dist/collection/components/form-elements/form-input.css +1 -1
  48. package/dist/collection/components/form-elements/form-input.js +45 -29
  49. package/dist/collection/components/form-elements/form-select.css +1 -1
  50. package/dist/collection/components/form-elements/form-select.js +57 -41
  51. package/dist/collection/components/form-elements/form-shadow-input.css +1 -1
  52. package/dist/collection/components/form-elements/form-shadow-input.js +11 -9
  53. package/dist/collection/components/form-elements/form-structure-error.css +1 -1
  54. package/dist/collection/components/form-elements/form-structure-error.js +7 -5
  55. package/dist/collection/components/form-elements/form-structure.css +1 -1
  56. package/dist/collection/components/form-elements/form-structure.js +32 -16
  57. package/dist/collection/components/form-elements/form-submit.css +1 -1
  58. package/dist/collection/components/form-elements/form-submit.js +18 -10
  59. package/dist/collection/components/form-elements/form-text-area.css +1 -1
  60. package/dist/collection/components/form-elements/form-text-area.js +36 -23
  61. package/dist/collection/components/forms/contact-us/element-mapper.js +1 -1
  62. package/dist/collection/components/forms/contact-us/form.css +1 -1
  63. package/dist/collection/components/forms/contact-us-form.js +39 -24
  64. package/dist/collection/components/forms/service-booking/element-mapper.js +1 -1
  65. package/dist/collection/components/forms/service-booking-form.js +39 -24
  66. package/dist/collection/components/part-lookup/components/dead-stock-item.js +15 -0
  67. package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
  68. package/dist/collection/components/part-lookup/dead-stock-lookup.js +179 -188
  69. package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
  70. package/dist/collection/components/part-lookup/distributor-lookup.js +221 -236
  71. package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
  72. package/dist/collection/components/part-lookup/manufacturer-lookup.js +194 -234
  73. package/dist/collection/components/part-lookup/part-lookup.css +1 -1
  74. package/dist/collection/components/part-lookup/part-lookup.js +152 -66
  75. package/dist/collection/components/vehicle-lookup/components/CardsContainer.js +5 -5
  76. package/dist/collection/components/vehicle-lookup/components/StatusCard.js +4 -4
  77. package/dist/collection/components/vehicle-lookup/components/claimable-item-popover.js +73 -0
  78. package/dist/collection/components/vehicle-lookup/components/claimable-item.js +27 -0
  79. package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
  80. package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +170 -197
  81. package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -0
  82. package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +826 -0
  83. package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -0
  84. package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +542 -0
  85. package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
  86. package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +171 -98
  87. package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -0
  88. package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.js +384 -0
  89. package/dist/collection/components/vehicle-lookup/vehicle-service-history.css +1 -0
  90. package/dist/collection/components/vehicle-lookup/vehicle-service-history.js +390 -0
  91. package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -1
  92. package/dist/collection/components/vehicle-lookup/vehicle-specification.js +145 -181
  93. package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +1 -0
  94. package/dist/collection/components/vehicle-lookup/{warranty-details.js → vehicle-warranty-details.js} +315 -277
  95. package/dist/collection/components/vin-extractor/vin-extractor.js +72 -42
  96. package/dist/collection/{global/lib/image-expansion.js → features/image-viewer/image-viewer-logic.js} +15 -11
  97. package/dist/collection/features/image-viewer/image-viewer.js +9 -0
  98. package/dist/collection/features/image-viewer/index.js +7 -0
  99. package/dist/collection/{global/lib → features/multi-lingual}/get-local-language.js +16 -10
  100. package/dist/collection/features/multi-lingual/index.js +7 -0
  101. package/dist/collection/features/multi-lingual/interface.js +1 -0
  102. package/dist/collection/{global/types/locale.js → features/multi-lingual/types.js} +6 -0
  103. package/dist/collection/features/part-lookup-components/index.js +7 -0
  104. package/dist/collection/features/part-lookup-components/interface.js +1 -0
  105. package/dist/collection/features/part-lookup-components/part-lookup-api-integration.js +84 -0
  106. package/dist/collection/features/part-lookup-components/types.js +1 -0
  107. package/dist/collection/features/vehicle-info-layout/index.js +6 -0
  108. package/dist/collection/features/vehicle-info-layout/interface.js +1 -0
  109. package/dist/collection/features/vehicle-info-layout/vehicle-info-layout.js +7 -0
  110. package/dist/collection/features/vehicle-lookup-component/index.js +7 -0
  111. package/dist/collection/features/vehicle-lookup-component/interface.js +1 -0
  112. package/dist/collection/features/vehicle-lookup-component/types.js +17 -0
  113. package/dist/collection/features/vehicle-lookup-component/vehicle-lookup-api-integration.js +87 -0
  114. package/dist/collection/global/assets/activation-icon.js +6 -0
  115. package/dist/collection/global/assets/add-icon.js +6 -0
  116. package/dist/collection/global/assets/alert-icon.js +6 -0
  117. package/dist/collection/global/assets/arrow-up-icon.js +6 -0
  118. package/dist/collection/global/assets/attach-icon.js +6 -0
  119. package/dist/collection/global/assets/check-icon.js +6 -0
  120. package/dist/collection/global/assets/empty-table-icon.js +6 -0
  121. package/dist/collection/global/assets/form-submit-svg.js +6 -0
  122. package/dist/collection/global/assets/print-icon.js +6 -0
  123. package/dist/collection/global/assets/triangle-icon.js +6 -0
  124. package/dist/collection/global/lib/children-with-tag.js +24 -0
  125. package/dist/collection/global/lib/container-has-tag.js +28 -0
  126. package/dist/collection/global/lib/parents-with-tag.js +22 -0
  127. package/dist/collection/global/lib/scroll-into-container-view.js +16 -0
  128. package/dist/collection/global/types/generated/part/branch-dead-stock-dto.js +1 -0
  129. package/dist/collection/global/types/generated/part/dead-stock-dto.js +1 -0
  130. package/dist/collection/global/types/generated/part/hs-code-dto.js +1 -0
  131. package/dist/collection/global/types/generated/part/part-lookup-dto.js +1 -0
  132. package/dist/collection/global/types/generated/part/part-price-dto.js +1 -0
  133. package/dist/collection/global/types/generated/part/price-dto.js +1 -0
  134. package/dist/collection/global/types/generated/part/stock-part-dto.js +1 -0
  135. package/dist/collection/global/types/generated/vehicle-lookup/accessory-dto.js +1 -0
  136. package/dist/collection/global/types/generated/vehicle-lookup/paint-thickness-dto.js +1 -0
  137. package/dist/collection/global/types/generated/vehicle-lookup/paint-thickness-image-dto.js +1 -0
  138. package/dist/collection/global/types/generated/vehicle-lookup/paint-thickness-part-dto.js +1 -0
  139. package/dist/collection/global/types/generated/vehicle-lookup/ssc-dto.js +1 -0
  140. package/dist/collection/global/types/generated/vehicle-lookup/ssc-labor-dto.js +1 -0
  141. package/dist/collection/global/types/generated/vehicle-lookup/ssc-part-dto.js +1 -0
  142. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-broker-sale-information.js +1 -0
  143. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-identifiers-dto.js +1 -0
  144. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-labor-dto.js +1 -0
  145. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-lookup-dto.js +1 -0
  146. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-part-dto.js +1 -0
  147. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-sale-information.js +1 -0
  148. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-service-history-dto.js +1 -0
  149. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-service-item-dto.js +1 -0
  150. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-service-item-group.js +1 -0
  151. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-specification-dto.js +1 -0
  152. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-variant-info-dto.js +1 -0
  153. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-warranty-dto.js +1 -0
  154. package/dist/collection/locale-mapper.js +3 -3
  155. package/dist/collection/locales/partLookup/manufacturer/type.js +3 -3
  156. package/dist/collection/locales/vehicleLookup/{dynamicClaim → claimableItems}/type.js +10 -6
  157. package/dist/collection/locales/vehicleLookup/warranty/type.js +1 -0
  158. package/dist/collection/locales/vehicleLookup/wrapper-type.js +2 -2
  159. package/dist/collection/templates/part-lookup/mock-data.js +99 -16
  160. package/dist/collection/templates/vehicle-lookup/mock-data.js +228 -191
  161. package/dist/collection/templates/vehicle-lookup/warranty-mock-data.js +45 -27
  162. package/dist/components/contact-us-form.js +1 -1
  163. package/dist/components/dead-stock-lookup.js +1 -1
  164. package/dist/components/distributor-lookup.js +1 -1
  165. package/dist/components/flexible-container.d.ts +11 -0
  166. package/dist/components/flexible-container.js +5 -0
  167. package/dist/components/form-dialog.js +1 -1
  168. package/dist/components/form-input.js +1 -1
  169. package/dist/components/form-select.js +1 -1
  170. package/dist/components/form-shadow-input.js +1 -1
  171. package/dist/components/form-structure-error.js +1 -1
  172. package/dist/components/form-structure.js +1 -1
  173. package/dist/components/form-submit.js +1 -1
  174. package/dist/components/form-text-area.js +1 -1
  175. package/dist/components/index.js +1 -1
  176. package/dist/components/{paint-thickness.d.ts → information-table.d.ts} +4 -4
  177. package/dist/components/information-table.js +5 -0
  178. package/dist/components/loading-spinner.js +1 -1
  179. package/dist/components/manufacturer-lookup.js +1 -1
  180. package/dist/components/p-B1fdQNyr.js +5 -0
  181. package/dist/components/p-BK16Cn81.js +5 -0
  182. package/dist/components/p-BkfCVIF9.js +5 -0
  183. package/dist/components/p-BsHunqQT.js +5 -0
  184. package/dist/components/p-BwUMwWdE.js +5 -0
  185. package/dist/components/p-C4zpDhOi.js +5 -0
  186. package/dist/components/p-CHE0gMDU.js +5 -0
  187. package/dist/components/p-CRB_syll.js +5 -0
  188. package/dist/components/p-CV6-hCEd.js +5 -0
  189. package/dist/components/p-CYfVWbdE.js +5 -0
  190. package/dist/components/{p-c981ee34.js → p-CYs-Cfbz.js} +1 -1
  191. package/dist/components/p-Ce4X3l8Z.js +5 -0
  192. package/dist/components/p-CffGxxO4.js +5 -0
  193. package/dist/components/p-CgP_rdz5.js +5 -0
  194. package/dist/components/p-CmuF1zVa.js +5 -0
  195. package/dist/components/p-DPxUsrGL.js +5 -0
  196. package/dist/components/p-DSIG_p-W.js +5 -0
  197. package/dist/components/p-DXHFdZX_.js +5 -0
  198. package/dist/components/p-Dkva9a7P.js +5 -0
  199. package/dist/components/p-DrFf_ORZ.js +5 -0
  200. package/dist/components/p-DsfktPnM.js +5 -0
  201. package/dist/components/p-DyWp9Iox.js +5 -0
  202. package/dist/components/p-Fudjizxb.js +5 -0
  203. package/dist/components/p-P3fAKtye.js +5 -0
  204. package/dist/components/p-QtVWfPMe.js +5 -0
  205. package/dist/components/p-THNpWs_W.js +5 -0
  206. package/dist/components/p-gwgMa4kM.js +5 -0
  207. package/dist/components/p-iCYlD4i9.js +5 -0
  208. package/dist/components/p-kp6CyIhI.js +5 -0
  209. package/dist/components/p-nBbuIowK.js +5 -0
  210. package/dist/components/p-piZ41_ho.js +5 -0
  211. package/dist/components/p-qw7FLuM-.js +5 -0
  212. package/dist/components/p-vhsj8wEw.js +5 -0
  213. package/dist/components/p-zDS3r6-j.js +5 -0
  214. package/dist/components/part-lookup.js +1 -1
  215. package/dist/components/service-booking-form.js +1 -1
  216. package/dist/components/{service-history.d.ts → shift-accordion.d.ts} +4 -4
  217. package/dist/components/shift-accordion.js +5 -0
  218. package/dist/components/{dynamic-claim.d.ts → shift-slider.d.ts} +4 -4
  219. package/dist/components/shift-slider.js +5 -0
  220. package/dist/components/{warranty-details.d.ts → shift-tab-content.d.ts} +4 -4
  221. package/dist/components/shift-tab-content.js +5 -0
  222. package/dist/components/{dynamic-redeem.d.ts → shift-tabs.d.ts} +4 -4
  223. package/dist/components/shift-tabs.js +5 -0
  224. package/dist/components/vehicle-accessories.js +1 -1
  225. package/dist/components/vehicle-claimable-items.d.ts +11 -0
  226. package/dist/components/vehicle-claimable-items.js +5 -0
  227. package/dist/components/vehicle-item-claim-form.d.ts +11 -0
  228. package/dist/components/vehicle-item-claim-form.js +5 -0
  229. package/dist/components/vehicle-lookup.js +1 -1
  230. package/dist/components/vehicle-paint-thickness.d.ts +11 -0
  231. package/dist/components/vehicle-paint-thickness.js +5 -0
  232. package/dist/components/vehicle-service-history.d.ts +11 -0
  233. package/dist/components/vehicle-service-history.js +5 -0
  234. package/dist/components/vehicle-specification.js +1 -1
  235. package/dist/components/vehicle-warranty-details.d.ts +11 -0
  236. package/dist/components/vehicle-warranty-details.js +5 -0
  237. package/dist/components/vin-extractor.js +1 -1
  238. package/dist/esm/activation-icon-7GJaxZ20.js +14 -0
  239. package/dist/esm/cn-BK16Cn81.js +2595 -0
  240. package/dist/esm/contact-us-form.entry.js +11 -20
  241. package/dist/esm/dead-stock-lookup_3.entry.js +287 -345
  242. package/dist/esm/empty-table-icon-DvQk12N9.js +14 -0
  243. package/dist/esm/flexible-container.entry.js +129 -0
  244. package/dist/esm/form-dialog_8.entry.js +44 -98
  245. package/dist/esm/{get-local-language-e286080a.js → get-local-language-DuHpVAu5.js} +376 -333
  246. package/dist/esm/{index-3a623f7c.js → index-CikEOqe0.js} +524 -268
  247. package/dist/esm/information-table.entry.js +41 -0
  248. package/dist/esm/loader.js +3 -4
  249. package/dist/esm/loading-spinner.entry.js +6 -8
  250. package/dist/esm/material-card-DiAl-884.js +40 -0
  251. package/dist/esm/part-lookup.entry.js +39 -23
  252. package/dist/esm/service-booking-form.entry.js +10 -19
  253. package/dist/esm/shift-accordion.entry.js +27 -0
  254. package/dist/esm/shift-components.js +5 -5
  255. package/dist/esm/shift-slider.entry.js +68 -0
  256. package/dist/esm/shift-tab-content.entry.js +40 -0
  257. package/dist/esm/shift-tabs_2.entry.js +329 -0
  258. package/dist/esm/{type-68307857.js → type-B6613elJ.js} +32 -123
  259. package/dist/esm/{type-1d1a2052.js → type-CFBDfJID.js} +5 -5
  260. package/dist/esm/type-CnAEgqjH.js +82 -0
  261. package/dist/esm/vehicle-accessories_6.entry.js +1199 -0
  262. package/dist/esm/vehicle-info-layout-CNGGKAia.js +14 -0
  263. package/dist/esm/vehicle-lookup.entry.js +62 -47
  264. package/dist/esm/vin-extractor.entry.js +24 -32
  265. package/dist/locales/errors/ru.json +10 -10
  266. package/dist/locales/partLookup/deadStock/ru.json +3 -3
  267. package/dist/locales/partLookup/distributor/ru.json +14 -14
  268. package/dist/locales/partLookup/manufacturer/ar.json +3 -3
  269. package/dist/locales/partLookup/manufacturer/en.json +3 -3
  270. package/dist/locales/partLookup/manufacturer/ku.json +3 -3
  271. package/dist/locales/partLookup/manufacturer/ru.json +15 -15
  272. package/dist/locales/partLookup/manufacturer/type.ts +3 -3
  273. package/dist/locales/vehicleLookup/accessories/ru.json +6 -6
  274. package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/ar.json +7 -3
  275. package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/en.json +5 -1
  276. package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/ku.json +7 -3
  277. package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/ru.json +11 -7
  278. package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/type.ts +11 -7
  279. package/dist/locales/vehicleLookup/paintThickness/ru.json +7 -7
  280. package/dist/locales/vehicleLookup/serviceHistory/ru.json +8 -8
  281. package/dist/locales/vehicleLookup/specification/ru.json +8 -8
  282. package/dist/locales/vehicleLookup/warranty/ar.json +1 -0
  283. package/dist/locales/vehicleLookup/warranty/en.json +1 -0
  284. package/dist/locales/vehicleLookup/warranty/ku.json +1 -0
  285. package/dist/locales/vehicleLookup/warranty/ru.json +17 -16
  286. package/dist/locales/vehicleLookup/warranty/type.ts +1 -0
  287. package/dist/locales/vehicleLookup/wrapper-type.ts +2 -2
  288. package/dist/shift-components/p-010b5793.entry.js +5 -0
  289. package/dist/shift-components/p-03483842.entry.js +5 -0
  290. package/dist/shift-components/p-0a55771f.entry.js +5 -0
  291. package/dist/shift-components/p-0c8bbdd0.entry.js +5 -0
  292. package/dist/shift-components/p-20bdbcb5.entry.js +5 -0
  293. package/dist/shift-components/p-238f5df0.entry.js +5 -0
  294. package/dist/shift-components/p-42218765.entry.js +5 -0
  295. package/dist/shift-components/p-526a4ff7.entry.js +5 -0
  296. package/dist/shift-components/p-701e3fb0.entry.js +5 -0
  297. package/dist/shift-components/p-7225e52b.entry.js +5 -0
  298. package/dist/shift-components/p-BK16Cn81.js +5 -0
  299. package/dist/shift-components/p-BSpTbUWi.js +5 -0
  300. package/dist/shift-components/p-CC-dsMaG.js +5 -0
  301. package/dist/shift-components/p-CikEOqe0.js +6 -0
  302. package/dist/shift-components/p-CsAICJSF.js +5 -0
  303. package/dist/shift-components/p-CxstRFDI.js +5 -0
  304. package/dist/shift-components/p-DF2jCW4D.js +5 -0
  305. package/dist/shift-components/p-DdH9nNoC.js +5 -0
  306. package/dist/shift-components/p-Wtw8qj6x.js +5 -0
  307. package/dist/shift-components/p-a76db330.entry.js +5 -0
  308. package/dist/shift-components/p-d46b0857.entry.js +5 -0
  309. package/dist/shift-components/p-d843769d.entry.js +5 -0
  310. package/dist/shift-components/p-ebc23eef.entry.js +5 -0
  311. package/dist/shift-components/p-ef9ad340.entry.js +5 -0
  312. package/dist/shift-components/p-fyqwD4fB.js +5 -0
  313. package/dist/shift-components/shift-components.esm.js +1 -1
  314. package/dist/types/components/components/card-content.d.ts +10 -0
  315. package/dist/types/components/components/flexible-container.d.ts +27 -0
  316. package/dist/types/components/components/information-table.d.ts +22 -0
  317. package/dist/types/components/components/material-card.d.ts +16 -0
  318. package/dist/types/components/components/shift-accordion.d.ts +13 -0
  319. package/dist/types/components/components/shift-slider.d.ts +11 -0
  320. package/dist/types/components/components/shift-tab-content.d.ts +12 -0
  321. package/dist/types/components/components/shift-tabs.d.ts +12 -0
  322. package/dist/types/components/form-elements/form-dialog.d.ts +1 -2
  323. package/dist/types/components/form-elements/form-input.d.ts +1 -2
  324. package/dist/types/components/form-elements/form-select.d.ts +1 -2
  325. package/dist/types/components/form-elements/form-structure-error.d.ts +1 -2
  326. package/dist/types/components/form-elements/form-structure.d.ts +2 -3
  327. package/dist/types/components/form-elements/form-submit.d.ts +1 -1
  328. package/dist/types/components/form-elements/form-text-area.d.ts +1 -1
  329. package/dist/types/components/forms/contact-us-form.d.ts +1 -1
  330. package/dist/types/components/forms/service-booking-form.d.ts +1 -1
  331. package/dist/types/components/part-lookup/components/dead-stock-item.d.ts +14 -0
  332. package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +26 -24
  333. package/dist/types/components/part-lookup/distributor-lookup.d.ts +25 -26
  334. package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +25 -27
  335. package/dist/types/components/part-lookup/part-lookup.d.ts +17 -12
  336. package/dist/types/components/vehicle-lookup/components/CardsContainer.d.ts +5 -4
  337. package/dist/types/components/vehicle-lookup/components/StatusCard.d.ts +4 -2
  338. package/dist/types/components/vehicle-lookup/components/claimable-item-popover.d.ts +17 -0
  339. package/dist/types/components/vehicle-lookup/components/claimable-item.d.ts +12 -0
  340. package/dist/types/components/vehicle-lookup/vehicle-accessories.d.ts +25 -29
  341. package/dist/types/components/vehicle-lookup/vehicle-claimable-items.d.ts +72 -0
  342. package/dist/types/components/vehicle-lookup/vehicle-item-claim-form.d.ts +54 -0
  343. package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +27 -24
  344. package/dist/types/components/vehicle-lookup/vehicle-paint-thickness.d.ts +35 -0
  345. package/dist/types/components/vehicle-lookup/vehicle-service-history.d.ts +32 -0
  346. package/dist/types/components/vehicle-lookup/vehicle-specification.d.ts +22 -23
  347. package/dist/types/components/vehicle-lookup/{warranty-details.d.ts → vehicle-warranty-details.d.ts} +28 -31
  348. package/dist/types/components/vin-extractor/vin-extractor.d.ts +2 -2
  349. package/dist/types/components.d.ts +1068 -219
  350. package/dist/types/features/image-viewer/image-viewer-logic.d.ts +3 -0
  351. package/dist/types/features/image-viewer/image-viewer.d.ts +7 -0
  352. package/dist/types/features/image-viewer/index.d.ts +3 -0
  353. package/dist/types/features/image-viewer/interface.d.ts +5 -0
  354. package/dist/types/features/multi-lingual/get-local-language.d.ts +4 -0
  355. package/dist/types/features/multi-lingual/index.d.ts +3 -0
  356. package/dist/types/features/multi-lingual/interface.d.ts +8 -0
  357. package/dist/types/{global/lib/get-local-language.d.ts → features/multi-lingual/types.d.ts} +17 -6
  358. package/dist/types/features/part-lookup-components/index.d.ts +3 -0
  359. package/dist/types/features/part-lookup-components/interface.d.ts +25 -0
  360. package/dist/types/features/part-lookup-components/part-lookup-api-integration.d.ts +14 -0
  361. package/dist/types/features/part-lookup-components/types.d.ts +3 -0
  362. package/dist/types/features/vehicle-info-layout/index.d.ts +2 -0
  363. package/dist/types/features/vehicle-info-layout/interface.d.ts +3 -0
  364. package/dist/types/features/vehicle-info-layout/vehicle-info-layout.d.ts +11 -0
  365. package/dist/types/features/vehicle-lookup-component/index.d.ts +3 -0
  366. package/dist/types/features/vehicle-lookup-component/interface.d.ts +24 -0
  367. package/dist/types/features/vehicle-lookup-component/types.d.ts +17 -0
  368. package/dist/types/features/vehicle-lookup-component/vehicle-lookup-api-integration.d.ts +15 -0
  369. package/dist/types/global/assets/activation-icon.d.ts +6 -0
  370. package/dist/types/global/assets/add-icon.d.ts +6 -0
  371. package/dist/types/global/assets/alert-icon.d.ts +6 -0
  372. package/dist/types/global/assets/arrow-up-icon.d.ts +6 -0
  373. package/dist/types/global/assets/attach-icon.d.ts +6 -0
  374. package/dist/types/global/assets/check-icon.d.ts +6 -0
  375. package/dist/types/global/assets/empty-table-icon.d.ts +6 -0
  376. package/dist/types/global/assets/form-submit-svg.d.ts +6 -0
  377. package/dist/types/global/assets/print-icon.d.ts +6 -0
  378. package/dist/types/global/assets/triangle-icon.d.ts +6 -0
  379. package/dist/types/global/lib/children-with-tag.d.ts +1 -0
  380. package/dist/types/global/lib/container-has-tag.d.ts +1 -0
  381. package/dist/types/global/lib/parents-with-tag.d.ts +1 -0
  382. package/dist/types/global/lib/recaptcha.d.ts +1 -1
  383. package/dist/types/global/lib/scroll-into-container-view.d.ts +1 -0
  384. package/dist/types/global/types/components.d.ts +0 -1
  385. package/dist/types/global/types/forms.d.ts +1 -1
  386. package/dist/types/global/types/generated/part/branch-dead-stock-dto.d.ts +5 -0
  387. package/dist/types/global/types/generated/part/dead-stock-dto.d.ts +6 -0
  388. package/dist/types/global/types/generated/part/hs-code-dto.d.ts +5 -0
  389. package/dist/types/global/types/generated/part/part-lookup-dto.d.ts +27 -0
  390. package/dist/types/global/types/generated/part/part-price-dto.d.ts +10 -0
  391. package/dist/types/global/types/generated/part/price-dto.d.ts +6 -0
  392. package/dist/types/global/types/generated/part/stock-part-dto.d.ts +5 -0
  393. package/dist/types/global/types/generated/vehicle-lookup/accessory-dto.d.ts +5 -0
  394. package/dist/types/global/types/generated/vehicle-lookup/paint-thickness-dto.d.ts +6 -0
  395. package/dist/types/global/types/generated/vehicle-lookup/paint-thickness-image-dto.d.ts +4 -0
  396. package/dist/types/global/types/generated/vehicle-lookup/paint-thickness-part-dto.d.ts +5 -0
  397. package/dist/types/global/types/generated/vehicle-lookup/ssc-dto.d.ts +10 -0
  398. package/dist/types/global/types/generated/vehicle-lookup/ssc-labor-dto.d.ts +5 -0
  399. package/dist/types/global/types/generated/vehicle-lookup/ssc-part-dto.d.ts +5 -0
  400. package/dist/types/global/types/generated/vehicle-lookup/vehicle-broker-sale-information.d.ts +7 -0
  401. package/dist/types/global/types/generated/vehicle-lookup/vehicle-identifiers-dto.d.ts +9 -0
  402. package/dist/types/global/types/generated/vehicle-lookup/vehicle-labor-dto.d.ts +6 -0
  403. package/dist/types/global/types/generated/vehicle-lookup/vehicle-lookup-dto.d.ts +27 -0
  404. package/dist/types/global/types/generated/vehicle-lookup/vehicle-part-dto.d.ts +6 -0
  405. package/dist/types/global/types/generated/vehicle-lookup/vehicle-sale-information.d.ts +16 -0
  406. package/dist/types/global/types/generated/vehicle-lookup/vehicle-service-history-dto.d.ts +16 -0
  407. package/dist/types/global/types/generated/vehicle-lookup/vehicle-service-item-dto.d.ts +34 -0
  408. package/dist/types/global/types/generated/vehicle-lookup/vehicle-service-item-group.d.ts +6 -0
  409. package/dist/types/global/types/generated/vehicle-lookup/vehicle-specification-dto.d.ts +22 -0
  410. package/dist/types/global/types/generated/vehicle-lookup/vehicle-variant-info-dto.d.ts +5 -0
  411. package/dist/types/global/types/generated/vehicle-lookup/vehicle-warranty-dto.d.ts +8 -0
  412. package/dist/types/locale-mapper.d.ts +2 -2
  413. package/dist/types/locales/partLookup/distributor/type.d.ts +2 -2
  414. package/dist/types/locales/partLookup/manufacturer/type.d.ts +6 -6
  415. package/dist/types/locales/partLookup/wrapper-type.d.ts +8 -8
  416. package/dist/types/locales/vehicleLookup/accessories/type.d.ts +4 -4
  417. package/dist/types/locales/vehicleLookup/{dynamicClaim → claimableItems}/type.d.ts +32 -16
  418. package/dist/types/locales/vehicleLookup/paintThickness/type.d.ts +4 -4
  419. package/dist/types/locales/vehicleLookup/serviceHistory/type.d.ts +4 -4
  420. package/dist/types/locales/vehicleLookup/warranty/type.d.ts +2 -0
  421. package/dist/types/locales/vehicleLookup/wrapper-type.d.ts +56 -46
  422. package/dist/types/stencil-public-runtime.d.ts +23 -1
  423. package/package.json +9 -8
  424. package/LICENSE +0 -21
  425. package/dist/cjs/app-globals-4aa8f46f.js +0 -46
  426. package/dist/cjs/cn-f559f9e5.js +0 -2588
  427. package/dist/cjs/dynamic-claim_6.cjs.entry.js +0 -1224
  428. package/dist/cjs/dynamic-redeem.cjs.entry.js +0 -210
  429. package/dist/cjs/type-87edb16d.js +0 -53
  430. package/dist/collection/components/vehicle-lookup/components/SSCTable.js +0 -18
  431. package/dist/collection/components/vehicle-lookup/dynamic-claim.css +0 -1
  432. package/dist/collection/components/vehicle-lookup/dynamic-claim.js +0 -756
  433. package/dist/collection/components/vehicle-lookup/dynamic-redeem.css +0 -1
  434. package/dist/collection/components/vehicle-lookup/dynamic-redeem.js +0 -444
  435. package/dist/collection/components/vehicle-lookup/paint-thickness.css +0 -1
  436. package/dist/collection/components/vehicle-lookup/paint-thickness.js +0 -414
  437. package/dist/collection/components/vehicle-lookup/service-history.js +0 -397
  438. package/dist/collection/components/vehicle-lookup/warranty-details.css +0 -1
  439. package/dist/collection/global/api/partInformation.js +0 -32
  440. package/dist/collection/global/api/vehicleInformation.js +0 -48
  441. package/dist/collection/global/types/vehicle-information.js +0 -5
  442. package/dist/collection/templates/vehicle-lookup/vehicle-lookup.js +0 -285
  443. package/dist/components/dynamic-claim.js +0 -5
  444. package/dist/components/dynamic-redeem.js +0 -5
  445. package/dist/components/p-00a27a58.js +0 -5
  446. package/dist/components/p-0aea36b4.js +0 -5
  447. package/dist/components/p-0fa9085a.js +0 -5
  448. package/dist/components/p-1c45c079.js +0 -5
  449. package/dist/components/p-28cf4dbe.js +0 -5
  450. package/dist/components/p-29a57e34.js +0 -5
  451. package/dist/components/p-2c893802.js +0 -5
  452. package/dist/components/p-3a216a1c.js +0 -5
  453. package/dist/components/p-48a28736.js +0 -5
  454. package/dist/components/p-48a9b8e5.js +0 -5
  455. package/dist/components/p-4ddb3435.js +0 -5
  456. package/dist/components/p-5709db05.js +0 -5
  457. package/dist/components/p-5afcb14f.js +0 -5
  458. package/dist/components/p-7a1dd4fc.js +0 -5
  459. package/dist/components/p-7d3dd7c2.js +0 -5
  460. package/dist/components/p-8b1d90d7.js +0 -5
  461. package/dist/components/p-8cd53e18.js +0 -5
  462. package/dist/components/p-98d9e7ab.js +0 -5
  463. package/dist/components/p-aacd560d.js +0 -5
  464. package/dist/components/p-c4f620e9.js +0 -5
  465. package/dist/components/p-ca0bda87.js +0 -5
  466. package/dist/components/p-d3f029ed.js +0 -5
  467. package/dist/components/p-dfb3925b.js +0 -5
  468. package/dist/components/p-ec493f9b.js +0 -5
  469. package/dist/components/p-f437e795.js +0 -5
  470. package/dist/components/p-fab97ac7.js +0 -5
  471. package/dist/components/p-ffad35ad.js +0 -5
  472. package/dist/components/paint-thickness.js +0 -5
  473. package/dist/components/service-history.js +0 -5
  474. package/dist/components/warranty-details.js +0 -5
  475. package/dist/esm/app-globals-68faa233.js +0 -44
  476. package/dist/esm/cn-cc419b94.js +0 -2586
  477. package/dist/esm/dynamic-claim_6.entry.js +0 -1215
  478. package/dist/esm/dynamic-redeem.entry.js +0 -206
  479. package/dist/esm/type-885c56ae.js +0 -34
  480. package/dist/esm/type-dc3e60a4.js +0 -50
  481. package/dist/shift-components/p-025b3a45.entry.js +0 -5
  482. package/dist/shift-components/p-07ee30c6.js +0 -5
  483. package/dist/shift-components/p-232a8be0.entry.js +0 -5
  484. package/dist/shift-components/p-40e52936.entry.js +0 -5
  485. package/dist/shift-components/p-446d908d.js +0 -5
  486. package/dist/shift-components/p-50d68cc4.entry.js +0 -5
  487. package/dist/shift-components/p-67d3532e.js +0 -5
  488. package/dist/shift-components/p-69f1a7ff.entry.js +0 -5
  489. package/dist/shift-components/p-6b3651bd.js +0 -5
  490. package/dist/shift-components/p-6ec0650f.js +0 -5
  491. package/dist/shift-components/p-83b755da.entry.js +0 -5
  492. package/dist/shift-components/p-90bf4148.entry.js +0 -5
  493. package/dist/shift-components/p-9474a4da.js +0 -6
  494. package/dist/shift-components/p-98d9e7ab.js +0 -5
  495. package/dist/shift-components/p-997b9bfb.entry.js +0 -5
  496. package/dist/shift-components/p-9e11eb3e.entry.js +0 -5
  497. package/dist/shift-components/p-ab79b6e8.entry.js +0 -5
  498. package/dist/shift-components/p-c802d527.js +0 -5
  499. package/dist/types/components/vehicle-lookup/components/SSCTable.d.ts +0 -9
  500. package/dist/types/components/vehicle-lookup/dynamic-claim.d.ts +0 -65
  501. package/dist/types/components/vehicle-lookup/dynamic-redeem.d.ts +0 -48
  502. package/dist/types/components/vehicle-lookup/paint-thickness.d.ts +0 -39
  503. package/dist/types/components/vehicle-lookup/service-history.d.ts +0 -34
  504. package/dist/types/global/api/partInformation.d.ts +0 -19
  505. package/dist/types/global/api/vehicleInformation.d.ts +0 -33
  506. package/dist/types/global/lib/image-expansion.d.ts +0 -9
  507. package/dist/types/global/types/locale.d.ts +0 -11
  508. package/dist/types/global/types/part-information.d.ts +0 -53
  509. package/dist/types/global/types/vehicle-information.d.ts +0 -182
  510. package/loader/package.json +0 -11
  511. package/readme.md +0 -15
  512. /package/dist/cjs/{loader-baf2418b.js → loader-jtAYWeFG.js} +0 -0
  513. /package/dist/cjs/{validate-vin-32e95695.js → validate-vin-CJDIXpJO.js} +0 -0
  514. /package/dist/collection/{global/types/part-information.js → features/image-viewer/interface.js} +0 -0
  515. /package/dist/collection/{components/vehicle-lookup → global}/assets/activationRequired.svg +0 -0
  516. /package/dist/collection/{components/vehicle-lookup → global}/assets/cancelled.svg +0 -0
  517. /package/dist/collection/{components/vehicle-lookup → global}/assets/check.svg +0 -0
  518. /package/dist/collection/{components/vehicle-lookup → global}/assets/expired.svg +0 -0
  519. /package/dist/collection/{components/vehicle-lookup → global}/assets/pending.svg +0 -0
  520. /package/dist/collection/{components/vehicle-lookup → global}/assets/processed.svg +0 -0
  521. /package/dist/collection/{components/vehicle-lookup → global}/assets/x-mark.svg +0 -0
  522. /package/dist/components/{p-a21e2e2e.js → p-C-EQDloC.js} +0 -0
  523. /package/dist/components/{p-383b4ddf.js → p-CUREVASG.js} +0 -0
  524. /package/dist/esm/{loader-027b88af.js → loader-C-EQDloC.js} +0 -0
  525. /package/dist/esm/{validate-vin-f4d23a44.js → validate-vin-CUREVASG.js} +0 -0
  526. /package/dist/shift-components/{p-a21e2e2e.js → p-C-EQDloC.js} +0 -0
  527. /package/dist/shift-components/{p-383b4ddf.js → p-CUREVASG.js} +0 -0
@@ -0,0 +1,2595 @@
1
+ /*!
2
+ * Built by ShiftSoftware
3
+ * Copyright (c)
4
+ */
5
+ function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
6
+
7
+ var bundleCjs = {};
8
+
9
+ var hasRequiredBundleCjs;
10
+
11
+ function requireBundleCjs () {
12
+ if (hasRequiredBundleCjs) return bundleCjs;
13
+ hasRequiredBundleCjs = 1;
14
+ (function (exports) {
15
+
16
+ Object.defineProperty(exports, Symbol.toStringTag, {
17
+ value: 'Module'
18
+ });
19
+ const CLASS_PART_SEPARATOR = '-';
20
+ const createClassGroupUtils = config => {
21
+ const classMap = createClassMap(config);
22
+ const {
23
+ conflictingClassGroups,
24
+ conflictingClassGroupModifiers
25
+ } = config;
26
+ const getClassGroupId = className => {
27
+ const classParts = className.split(CLASS_PART_SEPARATOR);
28
+ // Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and remove it from classParts.
29
+ if (classParts[0] === '' && classParts.length !== 1) {
30
+ classParts.shift();
31
+ }
32
+ return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
33
+ };
34
+ const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
35
+ const conflicts = conflictingClassGroups[classGroupId] || [];
36
+ if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
37
+ return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
38
+ }
39
+ return conflicts;
40
+ };
41
+ return {
42
+ getClassGroupId,
43
+ getConflictingClassGroupIds
44
+ };
45
+ };
46
+ const getGroupRecursive = (classParts, classPartObject) => {
47
+ if (classParts.length === 0) {
48
+ return classPartObject.classGroupId;
49
+ }
50
+ const currentClassPart = classParts[0];
51
+ const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
52
+ const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;
53
+ if (classGroupFromNextClassPart) {
54
+ return classGroupFromNextClassPart;
55
+ }
56
+ if (classPartObject.validators.length === 0) {
57
+ return undefined;
58
+ }
59
+ const classRest = classParts.join(CLASS_PART_SEPARATOR);
60
+ return classPartObject.validators.find(({
61
+ validator
62
+ }) => validator(classRest))?.classGroupId;
63
+ };
64
+ const arbitraryPropertyRegex = /^\[(.+)\]$/;
65
+ const getGroupIdForArbitraryProperty = className => {
66
+ if (arbitraryPropertyRegex.test(className)) {
67
+ const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
68
+ const property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));
69
+ if (property) {
70
+ // I use two dots here because one dot is used as prefix for class groups in plugins
71
+ return 'arbitrary..' + property;
72
+ }
73
+ }
74
+ };
75
+ /**
76
+ * Exported for testing only
77
+ */
78
+ const createClassMap = config => {
79
+ const {
80
+ theme,
81
+ prefix
82
+ } = config;
83
+ const classMap = {
84
+ nextPart: new Map(),
85
+ validators: []
86
+ };
87
+ const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
88
+ prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
89
+ processClassesRecursively(classGroup, classMap, classGroupId, theme);
90
+ });
91
+ return classMap;
92
+ };
93
+ const processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
94
+ classGroup.forEach(classDefinition => {
95
+ if (typeof classDefinition === 'string') {
96
+ const classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);
97
+ classPartObjectToEdit.classGroupId = classGroupId;
98
+ return;
99
+ }
100
+ if (typeof classDefinition === 'function') {
101
+ if (isThemeGetter(classDefinition)) {
102
+ processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
103
+ return;
104
+ }
105
+ classPartObject.validators.push({
106
+ validator: classDefinition,
107
+ classGroupId
108
+ });
109
+ return;
110
+ }
111
+ Object.entries(classDefinition).forEach(([key, classGroup]) => {
112
+ processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);
113
+ });
114
+ });
115
+ };
116
+ const getPart = (classPartObject, path) => {
117
+ let currentClassPartObject = classPartObject;
118
+ path.split(CLASS_PART_SEPARATOR).forEach(pathPart => {
119
+ if (!currentClassPartObject.nextPart.has(pathPart)) {
120
+ currentClassPartObject.nextPart.set(pathPart, {
121
+ nextPart: new Map(),
122
+ validators: []
123
+ });
124
+ }
125
+ currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
126
+ });
127
+ return currentClassPartObject;
128
+ };
129
+ const isThemeGetter = func => func.isThemeGetter;
130
+ const getPrefixedClassGroupEntries = (classGroupEntries, prefix) => {
131
+ if (!prefix) {
132
+ return classGroupEntries;
133
+ }
134
+ return classGroupEntries.map(([classGroupId, classGroup]) => {
135
+ const prefixedClassGroup = classGroup.map(classDefinition => {
136
+ if (typeof classDefinition === 'string') {
137
+ return prefix + classDefinition;
138
+ }
139
+ if (typeof classDefinition === 'object') {
140
+ return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));
141
+ }
142
+ return classDefinition;
143
+ });
144
+ return [classGroupId, prefixedClassGroup];
145
+ });
146
+ };
147
+
148
+ // LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance
149
+ const createLruCache = maxCacheSize => {
150
+ if (maxCacheSize < 1) {
151
+ return {
152
+ get: () => undefined,
153
+ set: () => {}
154
+ };
155
+ }
156
+ let cacheSize = 0;
157
+ let cache = new Map();
158
+ let previousCache = new Map();
159
+ const update = (key, value) => {
160
+ cache.set(key, value);
161
+ cacheSize++;
162
+ if (cacheSize > maxCacheSize) {
163
+ cacheSize = 0;
164
+ previousCache = cache;
165
+ cache = new Map();
166
+ }
167
+ };
168
+ return {
169
+ get(key) {
170
+ let value = cache.get(key);
171
+ if (value !== undefined) {
172
+ return value;
173
+ }
174
+ if ((value = previousCache.get(key)) !== undefined) {
175
+ update(key, value);
176
+ return value;
177
+ }
178
+ },
179
+ set(key, value) {
180
+ if (cache.has(key)) {
181
+ cache.set(key, value);
182
+ } else {
183
+ update(key, value);
184
+ }
185
+ }
186
+ };
187
+ };
188
+ const IMPORTANT_MODIFIER = '!';
189
+ const createParseClassName = config => {
190
+ const {
191
+ separator,
192
+ experimentalParseClassName
193
+ } = config;
194
+ const isSeparatorSingleCharacter = separator.length === 1;
195
+ const firstSeparatorCharacter = separator[0];
196
+ const separatorLength = separator.length;
197
+ // parseClassName inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
198
+ const parseClassName = className => {
199
+ const modifiers = [];
200
+ let bracketDepth = 0;
201
+ let modifierStart = 0;
202
+ let postfixModifierPosition;
203
+ for (let index = 0; index < className.length; index++) {
204
+ let currentCharacter = className[index];
205
+ if (bracketDepth === 0) {
206
+ if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
207
+ modifiers.push(className.slice(modifierStart, index));
208
+ modifierStart = index + separatorLength;
209
+ continue;
210
+ }
211
+ if (currentCharacter === '/') {
212
+ postfixModifierPosition = index;
213
+ continue;
214
+ }
215
+ }
216
+ if (currentCharacter === '[') {
217
+ bracketDepth++;
218
+ } else if (currentCharacter === ']') {
219
+ bracketDepth--;
220
+ }
221
+ }
222
+ const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
223
+ const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
224
+ const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
225
+ const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;
226
+ return {
227
+ modifiers,
228
+ hasImportantModifier,
229
+ baseClassName,
230
+ maybePostfixModifierPosition
231
+ };
232
+ };
233
+ if (experimentalParseClassName) {
234
+ return className => experimentalParseClassName({
235
+ className,
236
+ parseClassName
237
+ });
238
+ }
239
+ return parseClassName;
240
+ };
241
+ /**
242
+ * Sorts modifiers according to following schema:
243
+ * - Predefined modifiers are sorted alphabetically
244
+ * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it
245
+ */
246
+ const sortModifiers = modifiers => {
247
+ if (modifiers.length <= 1) {
248
+ return modifiers;
249
+ }
250
+ const sortedModifiers = [];
251
+ let unsortedModifiers = [];
252
+ modifiers.forEach(modifier => {
253
+ const isArbitraryVariant = modifier[0] === '[';
254
+ if (isArbitraryVariant) {
255
+ sortedModifiers.push(...unsortedModifiers.sort(), modifier);
256
+ unsortedModifiers = [];
257
+ } else {
258
+ unsortedModifiers.push(modifier);
259
+ }
260
+ });
261
+ sortedModifiers.push(...unsortedModifiers.sort());
262
+ return sortedModifiers;
263
+ };
264
+ const createConfigUtils = config => ({
265
+ cache: createLruCache(config.cacheSize),
266
+ parseClassName: createParseClassName(config),
267
+ ...createClassGroupUtils(config)
268
+ });
269
+ const SPLIT_CLASSES_REGEX = /\s+/;
270
+ const mergeClassList = (classList, configUtils) => {
271
+ const {
272
+ parseClassName,
273
+ getClassGroupId,
274
+ getConflictingClassGroupIds
275
+ } = configUtils;
276
+ /**
277
+ * Set of classGroupIds in following format:
278
+ * `{importantModifier}{variantModifiers}{classGroupId}`
279
+ * @example 'float'
280
+ * @example 'hover:focus:bg-color'
281
+ * @example 'md:!pr'
282
+ */
283
+ const classGroupsInConflict = [];
284
+ const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
285
+ let result = '';
286
+ for (let index = classNames.length - 1; index >= 0; index -= 1) {
287
+ const originalClassName = classNames[index];
288
+ const {
289
+ modifiers,
290
+ hasImportantModifier,
291
+ baseClassName,
292
+ maybePostfixModifierPosition
293
+ } = parseClassName(originalClassName);
294
+ let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
295
+ let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
296
+ if (!classGroupId) {
297
+ if (!hasPostfixModifier) {
298
+ // Not a Tailwind class
299
+ result = originalClassName + (result.length > 0 ? ' ' + result : result);
300
+ continue;
301
+ }
302
+ classGroupId = getClassGroupId(baseClassName);
303
+ if (!classGroupId) {
304
+ // Not a Tailwind class
305
+ result = originalClassName + (result.length > 0 ? ' ' + result : result);
306
+ continue;
307
+ }
308
+ hasPostfixModifier = false;
309
+ }
310
+ const variantModifier = sortModifiers(modifiers).join(':');
311
+ const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
312
+ const classId = modifierId + classGroupId;
313
+ if (classGroupsInConflict.includes(classId)) {
314
+ // Tailwind class omitted due to conflict
315
+ continue;
316
+ }
317
+ classGroupsInConflict.push(classId);
318
+ const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
319
+ for (let i = 0; i < conflictGroups.length; ++i) {
320
+ const group = conflictGroups[i];
321
+ classGroupsInConflict.push(modifierId + group);
322
+ }
323
+ // Tailwind class not in conflict
324
+ result = originalClassName + (result.length > 0 ? ' ' + result : result);
325
+ }
326
+ return result;
327
+ };
328
+
329
+ /**
330
+ * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
331
+ *
332
+ * Specifically:
333
+ * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
334
+ * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
335
+ *
336
+ * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
337
+ */
338
+ function twJoin() {
339
+ let index = 0;
340
+ let argument;
341
+ let resolvedValue;
342
+ let string = '';
343
+ while (index < arguments.length) {
344
+ if (argument = arguments[index++]) {
345
+ if (resolvedValue = toValue(argument)) {
346
+ string && (string += ' ');
347
+ string += resolvedValue;
348
+ }
349
+ }
350
+ }
351
+ return string;
352
+ }
353
+ const toValue = mix => {
354
+ if (typeof mix === 'string') {
355
+ return mix;
356
+ }
357
+ let resolvedValue;
358
+ let string = '';
359
+ for (let k = 0; k < mix.length; k++) {
360
+ if (mix[k]) {
361
+ if (resolvedValue = toValue(mix[k])) {
362
+ string && (string += ' ');
363
+ string += resolvedValue;
364
+ }
365
+ }
366
+ }
367
+ return string;
368
+ };
369
+ function createTailwindMerge(createConfigFirst, ...createConfigRest) {
370
+ let configUtils;
371
+ let cacheGet;
372
+ let cacheSet;
373
+ let functionToCall = initTailwindMerge;
374
+ function initTailwindMerge(classList) {
375
+ const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
376
+ configUtils = createConfigUtils(config);
377
+ cacheGet = configUtils.cache.get;
378
+ cacheSet = configUtils.cache.set;
379
+ functionToCall = tailwindMerge;
380
+ return tailwindMerge(classList);
381
+ }
382
+ function tailwindMerge(classList) {
383
+ const cachedResult = cacheGet(classList);
384
+ if (cachedResult) {
385
+ return cachedResult;
386
+ }
387
+ const result = mergeClassList(classList, configUtils);
388
+ cacheSet(classList, result);
389
+ return result;
390
+ }
391
+ return function callTailwindMerge() {
392
+ return functionToCall(twJoin.apply(null, arguments));
393
+ };
394
+ }
395
+ const fromTheme = key => {
396
+ const themeGetter = theme => theme[key] || [];
397
+ themeGetter.isThemeGetter = true;
398
+ return themeGetter;
399
+ };
400
+ const arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
401
+ const fractionRegex = /^\d+\/\d+$/;
402
+ const stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);
403
+ const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
404
+ 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$/;
405
+ const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
406
+ // Shadow always begins with x and y offset separated by underscore optionally prepended by inset
407
+ const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
408
+ const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
409
+ const isLength = value => isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
410
+ const isArbitraryLength = value => getIsArbitraryValue(value, 'length', isLengthOnly);
411
+ const isNumber = value => Boolean(value) && !Number.isNaN(Number(value));
412
+ const isArbitraryNumber = value => getIsArbitraryValue(value, 'number', isNumber);
413
+ const isInteger = value => Boolean(value) && Number.isInteger(Number(value));
414
+ const isPercent = value => value.endsWith('%') && isNumber(value.slice(0, -1));
415
+ const isArbitraryValue = value => arbitraryValueRegex.test(value);
416
+ const isTshirtSize = value => tshirtUnitRegex.test(value);
417
+ const sizeLabels = /*#__PURE__*/new Set(['length', 'size', 'percentage']);
418
+ const isArbitrarySize = value => getIsArbitraryValue(value, sizeLabels, isNever);
419
+ const isArbitraryPosition = value => getIsArbitraryValue(value, 'position', isNever);
420
+ const imageLabels = /*#__PURE__*/new Set(['image', 'url']);
421
+ const isArbitraryImage = value => getIsArbitraryValue(value, imageLabels, isImage);
422
+ const isArbitraryShadow = value => getIsArbitraryValue(value, '', isShadow);
423
+ const isAny = () => true;
424
+ const getIsArbitraryValue = (value, label, testValue) => {
425
+ const result = arbitraryValueRegex.exec(value);
426
+ if (result) {
427
+ if (result[1]) {
428
+ return typeof label === 'string' ? result[1] === label : label.has(result[1]);
429
+ }
430
+ return testValue(result[2]);
431
+ }
432
+ return false;
433
+ };
434
+ const isLengthOnly = value =>
435
+ // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
436
+ // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
437
+ // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
438
+ lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);
439
+ const isNever = () => false;
440
+ const isShadow = value => shadowRegex.test(value);
441
+ const isImage = value => imageRegex.test(value);
442
+ const validators = /*#__PURE__*/Object.defineProperty({
443
+ __proto__: null,
444
+ isAny,
445
+ isArbitraryImage,
446
+ isArbitraryLength,
447
+ isArbitraryNumber,
448
+ isArbitraryPosition,
449
+ isArbitraryShadow,
450
+ isArbitrarySize,
451
+ isArbitraryValue,
452
+ isInteger,
453
+ isLength,
454
+ isNumber,
455
+ isPercent,
456
+ isTshirtSize
457
+ }, Symbol.toStringTag, {
458
+ value: 'Module'
459
+ });
460
+ const getDefaultConfig = () => {
461
+ const colors = fromTheme('colors');
462
+ const spacing = fromTheme('spacing');
463
+ const blur = fromTheme('blur');
464
+ const brightness = fromTheme('brightness');
465
+ const borderColor = fromTheme('borderColor');
466
+ const borderRadius = fromTheme('borderRadius');
467
+ const borderSpacing = fromTheme('borderSpacing');
468
+ const borderWidth = fromTheme('borderWidth');
469
+ const contrast = fromTheme('contrast');
470
+ const grayscale = fromTheme('grayscale');
471
+ const hueRotate = fromTheme('hueRotate');
472
+ const invert = fromTheme('invert');
473
+ const gap = fromTheme('gap');
474
+ const gradientColorStops = fromTheme('gradientColorStops');
475
+ const gradientColorStopPositions = fromTheme('gradientColorStopPositions');
476
+ const inset = fromTheme('inset');
477
+ const margin = fromTheme('margin');
478
+ const opacity = fromTheme('opacity');
479
+ const padding = fromTheme('padding');
480
+ const saturate = fromTheme('saturate');
481
+ const scale = fromTheme('scale');
482
+ const sepia = fromTheme('sepia');
483
+ const skew = fromTheme('skew');
484
+ const space = fromTheme('space');
485
+ const translate = fromTheme('translate');
486
+ const getOverscroll = () => ['auto', 'contain', 'none'];
487
+ const getOverflow = () => ['auto', 'hidden', 'clip', 'visible', 'scroll'];
488
+ const getSpacingWithAutoAndArbitrary = () => ['auto', isArbitraryValue, spacing];
489
+ const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];
490
+ const getLengthWithEmptyAndArbitrary = () => ['', isLength, isArbitraryLength];
491
+ const getNumberWithAutoAndArbitrary = () => ['auto', isNumber, isArbitraryValue];
492
+ const getPositions = () => ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];
493
+ const getLineStyles = () => ['solid', 'dashed', 'dotted', 'double', 'none'];
494
+ const getBlendModes = () => ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'];
495
+ const getAlign = () => ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];
496
+ const getZeroAndEmpty = () => ['', '0', isArbitraryValue];
497
+ const getBreaks = () => ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];
498
+ const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];
499
+ return {
500
+ cacheSize: 500,
501
+ separator: ':',
502
+ theme: {
503
+ colors: [isAny],
504
+ spacing: [isLength, isArbitraryLength],
505
+ blur: ['none', '', isTshirtSize, isArbitraryValue],
506
+ brightness: getNumberAndArbitrary(),
507
+ borderColor: [colors],
508
+ borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],
509
+ borderSpacing: getSpacingWithArbitrary(),
510
+ borderWidth: getLengthWithEmptyAndArbitrary(),
511
+ contrast: getNumberAndArbitrary(),
512
+ grayscale: getZeroAndEmpty(),
513
+ hueRotate: getNumberAndArbitrary(),
514
+ invert: getZeroAndEmpty(),
515
+ gap: getSpacingWithArbitrary(),
516
+ gradientColorStops: [colors],
517
+ gradientColorStopPositions: [isPercent, isArbitraryLength],
518
+ inset: getSpacingWithAutoAndArbitrary(),
519
+ margin: getSpacingWithAutoAndArbitrary(),
520
+ opacity: getNumberAndArbitrary(),
521
+ padding: getSpacingWithArbitrary(),
522
+ saturate: getNumberAndArbitrary(),
523
+ scale: getNumberAndArbitrary(),
524
+ sepia: getZeroAndEmpty(),
525
+ skew: getNumberAndArbitrary(),
526
+ space: getSpacingWithArbitrary(),
527
+ translate: getSpacingWithArbitrary()
528
+ },
529
+ classGroups: {
530
+ // Layout
531
+ /**
532
+ * Aspect Ratio
533
+ * @see https://tailwindcss.com/docs/aspect-ratio
534
+ */
535
+ aspect: [{
536
+ aspect: ['auto', 'square', 'video', isArbitraryValue]
537
+ }],
538
+ /**
539
+ * Container
540
+ * @see https://tailwindcss.com/docs/container
541
+ */
542
+ container: ['container'],
543
+ /**
544
+ * Columns
545
+ * @see https://tailwindcss.com/docs/columns
546
+ */
547
+ columns: [{
548
+ columns: [isTshirtSize]
549
+ }],
550
+ /**
551
+ * Break After
552
+ * @see https://tailwindcss.com/docs/break-after
553
+ */
554
+ 'break-after': [{
555
+ 'break-after': getBreaks()
556
+ }],
557
+ /**
558
+ * Break Before
559
+ * @see https://tailwindcss.com/docs/break-before
560
+ */
561
+ 'break-before': [{
562
+ 'break-before': getBreaks()
563
+ }],
564
+ /**
565
+ * Break Inside
566
+ * @see https://tailwindcss.com/docs/break-inside
567
+ */
568
+ 'break-inside': [{
569
+ 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']
570
+ }],
571
+ /**
572
+ * Box Decoration Break
573
+ * @see https://tailwindcss.com/docs/box-decoration-break
574
+ */
575
+ 'box-decoration': [{
576
+ 'box-decoration': ['slice', 'clone']
577
+ }],
578
+ /**
579
+ * Box Sizing
580
+ * @see https://tailwindcss.com/docs/box-sizing
581
+ */
582
+ box: [{
583
+ box: ['border', 'content']
584
+ }],
585
+ /**
586
+ * Display
587
+ * @see https://tailwindcss.com/docs/display
588
+ */
589
+ display: ['block', 'inline-block', 'inline', 'flex', 'inline-flex', 'table', 'inline-table', 'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row-group', 'table-row', 'flow-root', 'grid', 'inline-grid', 'contents', 'list-item', 'hidden'],
590
+ /**
591
+ * Floats
592
+ * @see https://tailwindcss.com/docs/float
593
+ */
594
+ float: [{
595
+ float: ['right', 'left', 'none', 'start', 'end']
596
+ }],
597
+ /**
598
+ * Clear
599
+ * @see https://tailwindcss.com/docs/clear
600
+ */
601
+ clear: [{
602
+ clear: ['left', 'right', 'both', 'none', 'start', 'end']
603
+ }],
604
+ /**
605
+ * Isolation
606
+ * @see https://tailwindcss.com/docs/isolation
607
+ */
608
+ isolation: ['isolate', 'isolation-auto'],
609
+ /**
610
+ * Object Fit
611
+ * @see https://tailwindcss.com/docs/object-fit
612
+ */
613
+ 'object-fit': [{
614
+ object: ['contain', 'cover', 'fill', 'none', 'scale-down']
615
+ }],
616
+ /**
617
+ * Object Position
618
+ * @see https://tailwindcss.com/docs/object-position
619
+ */
620
+ 'object-position': [{
621
+ object: [...getPositions(), isArbitraryValue]
622
+ }],
623
+ /**
624
+ * Overflow
625
+ * @see https://tailwindcss.com/docs/overflow
626
+ */
627
+ overflow: [{
628
+ overflow: getOverflow()
629
+ }],
630
+ /**
631
+ * Overflow X
632
+ * @see https://tailwindcss.com/docs/overflow
633
+ */
634
+ 'overflow-x': [{
635
+ 'overflow-x': getOverflow()
636
+ }],
637
+ /**
638
+ * Overflow Y
639
+ * @see https://tailwindcss.com/docs/overflow
640
+ */
641
+ 'overflow-y': [{
642
+ 'overflow-y': getOverflow()
643
+ }],
644
+ /**
645
+ * Overscroll Behavior
646
+ * @see https://tailwindcss.com/docs/overscroll-behavior
647
+ */
648
+ overscroll: [{
649
+ overscroll: getOverscroll()
650
+ }],
651
+ /**
652
+ * Overscroll Behavior X
653
+ * @see https://tailwindcss.com/docs/overscroll-behavior
654
+ */
655
+ 'overscroll-x': [{
656
+ 'overscroll-x': getOverscroll()
657
+ }],
658
+ /**
659
+ * Overscroll Behavior Y
660
+ * @see https://tailwindcss.com/docs/overscroll-behavior
661
+ */
662
+ 'overscroll-y': [{
663
+ 'overscroll-y': getOverscroll()
664
+ }],
665
+ /**
666
+ * Position
667
+ * @see https://tailwindcss.com/docs/position
668
+ */
669
+ position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],
670
+ /**
671
+ * Top / Right / Bottom / Left
672
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
673
+ */
674
+ inset: [{
675
+ inset: [inset]
676
+ }],
677
+ /**
678
+ * Right / Left
679
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
680
+ */
681
+ 'inset-x': [{
682
+ 'inset-x': [inset]
683
+ }],
684
+ /**
685
+ * Top / Bottom
686
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
687
+ */
688
+ 'inset-y': [{
689
+ 'inset-y': [inset]
690
+ }],
691
+ /**
692
+ * Start
693
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
694
+ */
695
+ start: [{
696
+ start: [inset]
697
+ }],
698
+ /**
699
+ * End
700
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
701
+ */
702
+ end: [{
703
+ end: [inset]
704
+ }],
705
+ /**
706
+ * Top
707
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
708
+ */
709
+ top: [{
710
+ top: [inset]
711
+ }],
712
+ /**
713
+ * Right
714
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
715
+ */
716
+ right: [{
717
+ right: [inset]
718
+ }],
719
+ /**
720
+ * Bottom
721
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
722
+ */
723
+ bottom: [{
724
+ bottom: [inset]
725
+ }],
726
+ /**
727
+ * Left
728
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
729
+ */
730
+ left: [{
731
+ left: [inset]
732
+ }],
733
+ /**
734
+ * Visibility
735
+ * @see https://tailwindcss.com/docs/visibility
736
+ */
737
+ visibility: ['visible', 'invisible', 'collapse'],
738
+ /**
739
+ * Z-Index
740
+ * @see https://tailwindcss.com/docs/z-index
741
+ */
742
+ z: [{
743
+ z: ['auto', isInteger, isArbitraryValue]
744
+ }],
745
+ // Flexbox and Grid
746
+ /**
747
+ * Flex Basis
748
+ * @see https://tailwindcss.com/docs/flex-basis
749
+ */
750
+ basis: [{
751
+ basis: getSpacingWithAutoAndArbitrary()
752
+ }],
753
+ /**
754
+ * Flex Direction
755
+ * @see https://tailwindcss.com/docs/flex-direction
756
+ */
757
+ 'flex-direction': [{
758
+ flex: ['row', 'row-reverse', 'col', 'col-reverse']
759
+ }],
760
+ /**
761
+ * Flex Wrap
762
+ * @see https://tailwindcss.com/docs/flex-wrap
763
+ */
764
+ 'flex-wrap': [{
765
+ flex: ['wrap', 'wrap-reverse', 'nowrap']
766
+ }],
767
+ /**
768
+ * Flex
769
+ * @see https://tailwindcss.com/docs/flex
770
+ */
771
+ flex: [{
772
+ flex: ['1', 'auto', 'initial', 'none', isArbitraryValue]
773
+ }],
774
+ /**
775
+ * Flex Grow
776
+ * @see https://tailwindcss.com/docs/flex-grow
777
+ */
778
+ grow: [{
779
+ grow: getZeroAndEmpty()
780
+ }],
781
+ /**
782
+ * Flex Shrink
783
+ * @see https://tailwindcss.com/docs/flex-shrink
784
+ */
785
+ shrink: [{
786
+ shrink: getZeroAndEmpty()
787
+ }],
788
+ /**
789
+ * Order
790
+ * @see https://tailwindcss.com/docs/order
791
+ */
792
+ order: [{
793
+ order: ['first', 'last', 'none', isInteger, isArbitraryValue]
794
+ }],
795
+ /**
796
+ * Grid Template Columns
797
+ * @see https://tailwindcss.com/docs/grid-template-columns
798
+ */
799
+ 'grid-cols': [{
800
+ 'grid-cols': [isAny]
801
+ }],
802
+ /**
803
+ * Grid Column Start / End
804
+ * @see https://tailwindcss.com/docs/grid-column
805
+ */
806
+ 'col-start-end': [{
807
+ col: ['auto', {
808
+ span: ['full', isInteger, isArbitraryValue]
809
+ }, isArbitraryValue]
810
+ }],
811
+ /**
812
+ * Grid Column Start
813
+ * @see https://tailwindcss.com/docs/grid-column
814
+ */
815
+ 'col-start': [{
816
+ 'col-start': getNumberWithAutoAndArbitrary()
817
+ }],
818
+ /**
819
+ * Grid Column End
820
+ * @see https://tailwindcss.com/docs/grid-column
821
+ */
822
+ 'col-end': [{
823
+ 'col-end': getNumberWithAutoAndArbitrary()
824
+ }],
825
+ /**
826
+ * Grid Template Rows
827
+ * @see https://tailwindcss.com/docs/grid-template-rows
828
+ */
829
+ 'grid-rows': [{
830
+ 'grid-rows': [isAny]
831
+ }],
832
+ /**
833
+ * Grid Row Start / End
834
+ * @see https://tailwindcss.com/docs/grid-row
835
+ */
836
+ 'row-start-end': [{
837
+ row: ['auto', {
838
+ span: [isInteger, isArbitraryValue]
839
+ }, isArbitraryValue]
840
+ }],
841
+ /**
842
+ * Grid Row Start
843
+ * @see https://tailwindcss.com/docs/grid-row
844
+ */
845
+ 'row-start': [{
846
+ 'row-start': getNumberWithAutoAndArbitrary()
847
+ }],
848
+ /**
849
+ * Grid Row End
850
+ * @see https://tailwindcss.com/docs/grid-row
851
+ */
852
+ 'row-end': [{
853
+ 'row-end': getNumberWithAutoAndArbitrary()
854
+ }],
855
+ /**
856
+ * Grid Auto Flow
857
+ * @see https://tailwindcss.com/docs/grid-auto-flow
858
+ */
859
+ 'grid-flow': [{
860
+ 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']
861
+ }],
862
+ /**
863
+ * Grid Auto Columns
864
+ * @see https://tailwindcss.com/docs/grid-auto-columns
865
+ */
866
+ 'auto-cols': [{
867
+ 'auto-cols': ['auto', 'min', 'max', 'fr', isArbitraryValue]
868
+ }],
869
+ /**
870
+ * Grid Auto Rows
871
+ * @see https://tailwindcss.com/docs/grid-auto-rows
872
+ */
873
+ 'auto-rows': [{
874
+ 'auto-rows': ['auto', 'min', 'max', 'fr', isArbitraryValue]
875
+ }],
876
+ /**
877
+ * Gap
878
+ * @see https://tailwindcss.com/docs/gap
879
+ */
880
+ gap: [{
881
+ gap: [gap]
882
+ }],
883
+ /**
884
+ * Gap X
885
+ * @see https://tailwindcss.com/docs/gap
886
+ */
887
+ 'gap-x': [{
888
+ 'gap-x': [gap]
889
+ }],
890
+ /**
891
+ * Gap Y
892
+ * @see https://tailwindcss.com/docs/gap
893
+ */
894
+ 'gap-y': [{
895
+ 'gap-y': [gap]
896
+ }],
897
+ /**
898
+ * Justify Content
899
+ * @see https://tailwindcss.com/docs/justify-content
900
+ */
901
+ 'justify-content': [{
902
+ justify: ['normal', ...getAlign()]
903
+ }],
904
+ /**
905
+ * Justify Items
906
+ * @see https://tailwindcss.com/docs/justify-items
907
+ */
908
+ 'justify-items': [{
909
+ 'justify-items': ['start', 'end', 'center', 'stretch']
910
+ }],
911
+ /**
912
+ * Justify Self
913
+ * @see https://tailwindcss.com/docs/justify-self
914
+ */
915
+ 'justify-self': [{
916
+ 'justify-self': ['auto', 'start', 'end', 'center', 'stretch']
917
+ }],
918
+ /**
919
+ * Align Content
920
+ * @see https://tailwindcss.com/docs/align-content
921
+ */
922
+ 'align-content': [{
923
+ content: ['normal', ...getAlign(), 'baseline']
924
+ }],
925
+ /**
926
+ * Align Items
927
+ * @see https://tailwindcss.com/docs/align-items
928
+ */
929
+ 'align-items': [{
930
+ items: ['start', 'end', 'center', 'baseline', 'stretch']
931
+ }],
932
+ /**
933
+ * Align Self
934
+ * @see https://tailwindcss.com/docs/align-self
935
+ */
936
+ 'align-self': [{
937
+ self: ['auto', 'start', 'end', 'center', 'stretch', 'baseline']
938
+ }],
939
+ /**
940
+ * Place Content
941
+ * @see https://tailwindcss.com/docs/place-content
942
+ */
943
+ 'place-content': [{
944
+ 'place-content': [...getAlign(), 'baseline']
945
+ }],
946
+ /**
947
+ * Place Items
948
+ * @see https://tailwindcss.com/docs/place-items
949
+ */
950
+ 'place-items': [{
951
+ 'place-items': ['start', 'end', 'center', 'baseline', 'stretch']
952
+ }],
953
+ /**
954
+ * Place Self
955
+ * @see https://tailwindcss.com/docs/place-self
956
+ */
957
+ 'place-self': [{
958
+ 'place-self': ['auto', 'start', 'end', 'center', 'stretch']
959
+ }],
960
+ // Spacing
961
+ /**
962
+ * Padding
963
+ * @see https://tailwindcss.com/docs/padding
964
+ */
965
+ p: [{
966
+ p: [padding]
967
+ }],
968
+ /**
969
+ * Padding X
970
+ * @see https://tailwindcss.com/docs/padding
971
+ */
972
+ px: [{
973
+ px: [padding]
974
+ }],
975
+ /**
976
+ * Padding Y
977
+ * @see https://tailwindcss.com/docs/padding
978
+ */
979
+ py: [{
980
+ py: [padding]
981
+ }],
982
+ /**
983
+ * Padding Start
984
+ * @see https://tailwindcss.com/docs/padding
985
+ */
986
+ ps: [{
987
+ ps: [padding]
988
+ }],
989
+ /**
990
+ * Padding End
991
+ * @see https://tailwindcss.com/docs/padding
992
+ */
993
+ pe: [{
994
+ pe: [padding]
995
+ }],
996
+ /**
997
+ * Padding Top
998
+ * @see https://tailwindcss.com/docs/padding
999
+ */
1000
+ pt: [{
1001
+ pt: [padding]
1002
+ }],
1003
+ /**
1004
+ * Padding Right
1005
+ * @see https://tailwindcss.com/docs/padding
1006
+ */
1007
+ pr: [{
1008
+ pr: [padding]
1009
+ }],
1010
+ /**
1011
+ * Padding Bottom
1012
+ * @see https://tailwindcss.com/docs/padding
1013
+ */
1014
+ pb: [{
1015
+ pb: [padding]
1016
+ }],
1017
+ /**
1018
+ * Padding Left
1019
+ * @see https://tailwindcss.com/docs/padding
1020
+ */
1021
+ pl: [{
1022
+ pl: [padding]
1023
+ }],
1024
+ /**
1025
+ * Margin
1026
+ * @see https://tailwindcss.com/docs/margin
1027
+ */
1028
+ m: [{
1029
+ m: [margin]
1030
+ }],
1031
+ /**
1032
+ * Margin X
1033
+ * @see https://tailwindcss.com/docs/margin
1034
+ */
1035
+ mx: [{
1036
+ mx: [margin]
1037
+ }],
1038
+ /**
1039
+ * Margin Y
1040
+ * @see https://tailwindcss.com/docs/margin
1041
+ */
1042
+ my: [{
1043
+ my: [margin]
1044
+ }],
1045
+ /**
1046
+ * Margin Start
1047
+ * @see https://tailwindcss.com/docs/margin
1048
+ */
1049
+ ms: [{
1050
+ ms: [margin]
1051
+ }],
1052
+ /**
1053
+ * Margin End
1054
+ * @see https://tailwindcss.com/docs/margin
1055
+ */
1056
+ me: [{
1057
+ me: [margin]
1058
+ }],
1059
+ /**
1060
+ * Margin Top
1061
+ * @see https://tailwindcss.com/docs/margin
1062
+ */
1063
+ mt: [{
1064
+ mt: [margin]
1065
+ }],
1066
+ /**
1067
+ * Margin Right
1068
+ * @see https://tailwindcss.com/docs/margin
1069
+ */
1070
+ mr: [{
1071
+ mr: [margin]
1072
+ }],
1073
+ /**
1074
+ * Margin Bottom
1075
+ * @see https://tailwindcss.com/docs/margin
1076
+ */
1077
+ mb: [{
1078
+ mb: [margin]
1079
+ }],
1080
+ /**
1081
+ * Margin Left
1082
+ * @see https://tailwindcss.com/docs/margin
1083
+ */
1084
+ ml: [{
1085
+ ml: [margin]
1086
+ }],
1087
+ /**
1088
+ * Space Between X
1089
+ * @see https://tailwindcss.com/docs/space
1090
+ */
1091
+ 'space-x': [{
1092
+ 'space-x': [space]
1093
+ }],
1094
+ /**
1095
+ * Space Between X Reverse
1096
+ * @see https://tailwindcss.com/docs/space
1097
+ */
1098
+ 'space-x-reverse': ['space-x-reverse'],
1099
+ /**
1100
+ * Space Between Y
1101
+ * @see https://tailwindcss.com/docs/space
1102
+ */
1103
+ 'space-y': [{
1104
+ 'space-y': [space]
1105
+ }],
1106
+ /**
1107
+ * Space Between Y Reverse
1108
+ * @see https://tailwindcss.com/docs/space
1109
+ */
1110
+ 'space-y-reverse': ['space-y-reverse'],
1111
+ // Sizing
1112
+ /**
1113
+ * Width
1114
+ * @see https://tailwindcss.com/docs/width
1115
+ */
1116
+ w: [{
1117
+ w: ['auto', 'min', 'max', 'fit', 'svw', 'lvw', 'dvw', isArbitraryValue, spacing]
1118
+ }],
1119
+ /**
1120
+ * Min-Width
1121
+ * @see https://tailwindcss.com/docs/min-width
1122
+ */
1123
+ 'min-w': [{
1124
+ 'min-w': [isArbitraryValue, spacing, 'min', 'max', 'fit']
1125
+ }],
1126
+ /**
1127
+ * Max-Width
1128
+ * @see https://tailwindcss.com/docs/max-width
1129
+ */
1130
+ 'max-w': [{
1131
+ 'max-w': [isArbitraryValue, spacing, 'none', 'full', 'min', 'max', 'fit', 'prose', {
1132
+ screen: [isTshirtSize]
1133
+ }, isTshirtSize]
1134
+ }],
1135
+ /**
1136
+ * Height
1137
+ * @see https://tailwindcss.com/docs/height
1138
+ */
1139
+ h: [{
1140
+ h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']
1141
+ }],
1142
+ /**
1143
+ * Min-Height
1144
+ * @see https://tailwindcss.com/docs/min-height
1145
+ */
1146
+ 'min-h': [{
1147
+ 'min-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']
1148
+ }],
1149
+ /**
1150
+ * Max-Height
1151
+ * @see https://tailwindcss.com/docs/max-height
1152
+ */
1153
+ 'max-h': [{
1154
+ 'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']
1155
+ }],
1156
+ /**
1157
+ * Size
1158
+ * @see https://tailwindcss.com/docs/size
1159
+ */
1160
+ size: [{
1161
+ size: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']
1162
+ }],
1163
+ // Typography
1164
+ /**
1165
+ * Font Size
1166
+ * @see https://tailwindcss.com/docs/font-size
1167
+ */
1168
+ 'font-size': [{
1169
+ text: ['base', isTshirtSize, isArbitraryLength]
1170
+ }],
1171
+ /**
1172
+ * Font Smoothing
1173
+ * @see https://tailwindcss.com/docs/font-smoothing
1174
+ */
1175
+ 'font-smoothing': ['antialiased', 'subpixel-antialiased'],
1176
+ /**
1177
+ * Font Style
1178
+ * @see https://tailwindcss.com/docs/font-style
1179
+ */
1180
+ 'font-style': ['italic', 'not-italic'],
1181
+ /**
1182
+ * Font Weight
1183
+ * @see https://tailwindcss.com/docs/font-weight
1184
+ */
1185
+ 'font-weight': [{
1186
+ font: ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black', isArbitraryNumber]
1187
+ }],
1188
+ /**
1189
+ * Font Family
1190
+ * @see https://tailwindcss.com/docs/font-family
1191
+ */
1192
+ 'font-family': [{
1193
+ font: [isAny]
1194
+ }],
1195
+ /**
1196
+ * Font Variant Numeric
1197
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1198
+ */
1199
+ 'fvn-normal': ['normal-nums'],
1200
+ /**
1201
+ * Font Variant Numeric
1202
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1203
+ */
1204
+ 'fvn-ordinal': ['ordinal'],
1205
+ /**
1206
+ * Font Variant Numeric
1207
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1208
+ */
1209
+ 'fvn-slashed-zero': ['slashed-zero'],
1210
+ /**
1211
+ * Font Variant Numeric
1212
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1213
+ */
1214
+ 'fvn-figure': ['lining-nums', 'oldstyle-nums'],
1215
+ /**
1216
+ * Font Variant Numeric
1217
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1218
+ */
1219
+ 'fvn-spacing': ['proportional-nums', 'tabular-nums'],
1220
+ /**
1221
+ * Font Variant Numeric
1222
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1223
+ */
1224
+ 'fvn-fraction': ['diagonal-fractions', 'stacked-fractions'],
1225
+ /**
1226
+ * Letter Spacing
1227
+ * @see https://tailwindcss.com/docs/letter-spacing
1228
+ */
1229
+ tracking: [{
1230
+ tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest', isArbitraryValue]
1231
+ }],
1232
+ /**
1233
+ * Line Clamp
1234
+ * @see https://tailwindcss.com/docs/line-clamp
1235
+ */
1236
+ 'line-clamp': [{
1237
+ 'line-clamp': ['none', isNumber, isArbitraryNumber]
1238
+ }],
1239
+ /**
1240
+ * Line Height
1241
+ * @see https://tailwindcss.com/docs/line-height
1242
+ */
1243
+ leading: [{
1244
+ leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isLength, isArbitraryValue]
1245
+ }],
1246
+ /**
1247
+ * List Style Image
1248
+ * @see https://tailwindcss.com/docs/list-style-image
1249
+ */
1250
+ 'list-image': [{
1251
+ 'list-image': ['none', isArbitraryValue]
1252
+ }],
1253
+ /**
1254
+ * List Style Type
1255
+ * @see https://tailwindcss.com/docs/list-style-type
1256
+ */
1257
+ 'list-style-type': [{
1258
+ list: ['none', 'disc', 'decimal', isArbitraryValue]
1259
+ }],
1260
+ /**
1261
+ * List Style Position
1262
+ * @see https://tailwindcss.com/docs/list-style-position
1263
+ */
1264
+ 'list-style-position': [{
1265
+ list: ['inside', 'outside']
1266
+ }],
1267
+ /**
1268
+ * Placeholder Color
1269
+ * @deprecated since Tailwind CSS v3.0.0
1270
+ * @see https://tailwindcss.com/docs/placeholder-color
1271
+ */
1272
+ 'placeholder-color': [{
1273
+ placeholder: [colors]
1274
+ }],
1275
+ /**
1276
+ * Placeholder Opacity
1277
+ * @see https://tailwindcss.com/docs/placeholder-opacity
1278
+ */
1279
+ 'placeholder-opacity': [{
1280
+ 'placeholder-opacity': [opacity]
1281
+ }],
1282
+ /**
1283
+ * Text Alignment
1284
+ * @see https://tailwindcss.com/docs/text-align
1285
+ */
1286
+ 'text-alignment': [{
1287
+ text: ['left', 'center', 'right', 'justify', 'start', 'end']
1288
+ }],
1289
+ /**
1290
+ * Text Color
1291
+ * @see https://tailwindcss.com/docs/text-color
1292
+ */
1293
+ 'text-color': [{
1294
+ text: [colors]
1295
+ }],
1296
+ /**
1297
+ * Text Opacity
1298
+ * @see https://tailwindcss.com/docs/text-opacity
1299
+ */
1300
+ 'text-opacity': [{
1301
+ 'text-opacity': [opacity]
1302
+ }],
1303
+ /**
1304
+ * Text Decoration
1305
+ * @see https://tailwindcss.com/docs/text-decoration
1306
+ */
1307
+ 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],
1308
+ /**
1309
+ * Text Decoration Style
1310
+ * @see https://tailwindcss.com/docs/text-decoration-style
1311
+ */
1312
+ 'text-decoration-style': [{
1313
+ decoration: [...getLineStyles(), 'wavy']
1314
+ }],
1315
+ /**
1316
+ * Text Decoration Thickness
1317
+ * @see https://tailwindcss.com/docs/text-decoration-thickness
1318
+ */
1319
+ 'text-decoration-thickness': [{
1320
+ decoration: ['auto', 'from-font', isLength, isArbitraryLength]
1321
+ }],
1322
+ /**
1323
+ * Text Underline Offset
1324
+ * @see https://tailwindcss.com/docs/text-underline-offset
1325
+ */
1326
+ 'underline-offset': [{
1327
+ 'underline-offset': ['auto', isLength, isArbitraryValue]
1328
+ }],
1329
+ /**
1330
+ * Text Decoration Color
1331
+ * @see https://tailwindcss.com/docs/text-decoration-color
1332
+ */
1333
+ 'text-decoration-color': [{
1334
+ decoration: [colors]
1335
+ }],
1336
+ /**
1337
+ * Text Transform
1338
+ * @see https://tailwindcss.com/docs/text-transform
1339
+ */
1340
+ 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],
1341
+ /**
1342
+ * Text Overflow
1343
+ * @see https://tailwindcss.com/docs/text-overflow
1344
+ */
1345
+ 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],
1346
+ /**
1347
+ * Text Wrap
1348
+ * @see https://tailwindcss.com/docs/text-wrap
1349
+ */
1350
+ 'text-wrap': [{
1351
+ text: ['wrap', 'nowrap', 'balance', 'pretty']
1352
+ }],
1353
+ /**
1354
+ * Text Indent
1355
+ * @see https://tailwindcss.com/docs/text-indent
1356
+ */
1357
+ indent: [{
1358
+ indent: getSpacingWithArbitrary()
1359
+ }],
1360
+ /**
1361
+ * Vertical Alignment
1362
+ * @see https://tailwindcss.com/docs/vertical-align
1363
+ */
1364
+ 'vertical-align': [{
1365
+ align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryValue]
1366
+ }],
1367
+ /**
1368
+ * Whitespace
1369
+ * @see https://tailwindcss.com/docs/whitespace
1370
+ */
1371
+ whitespace: [{
1372
+ whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']
1373
+ }],
1374
+ /**
1375
+ * Word Break
1376
+ * @see https://tailwindcss.com/docs/word-break
1377
+ */
1378
+ break: [{
1379
+ break: ['normal', 'words', 'all', 'keep']
1380
+ }],
1381
+ /**
1382
+ * Hyphens
1383
+ * @see https://tailwindcss.com/docs/hyphens
1384
+ */
1385
+ hyphens: [{
1386
+ hyphens: ['none', 'manual', 'auto']
1387
+ }],
1388
+ /**
1389
+ * Content
1390
+ * @see https://tailwindcss.com/docs/content
1391
+ */
1392
+ content: [{
1393
+ content: ['none', isArbitraryValue]
1394
+ }],
1395
+ // Backgrounds
1396
+ /**
1397
+ * Background Attachment
1398
+ * @see https://tailwindcss.com/docs/background-attachment
1399
+ */
1400
+ 'bg-attachment': [{
1401
+ bg: ['fixed', 'local', 'scroll']
1402
+ }],
1403
+ /**
1404
+ * Background Clip
1405
+ * @see https://tailwindcss.com/docs/background-clip
1406
+ */
1407
+ 'bg-clip': [{
1408
+ 'bg-clip': ['border', 'padding', 'content', 'text']
1409
+ }],
1410
+ /**
1411
+ * Background Opacity
1412
+ * @deprecated since Tailwind CSS v3.0.0
1413
+ * @see https://tailwindcss.com/docs/background-opacity
1414
+ */
1415
+ 'bg-opacity': [{
1416
+ 'bg-opacity': [opacity]
1417
+ }],
1418
+ /**
1419
+ * Background Origin
1420
+ * @see https://tailwindcss.com/docs/background-origin
1421
+ */
1422
+ 'bg-origin': [{
1423
+ 'bg-origin': ['border', 'padding', 'content']
1424
+ }],
1425
+ /**
1426
+ * Background Position
1427
+ * @see https://tailwindcss.com/docs/background-position
1428
+ */
1429
+ 'bg-position': [{
1430
+ bg: [...getPositions(), isArbitraryPosition]
1431
+ }],
1432
+ /**
1433
+ * Background Repeat
1434
+ * @see https://tailwindcss.com/docs/background-repeat
1435
+ */
1436
+ 'bg-repeat': [{
1437
+ bg: ['no-repeat', {
1438
+ repeat: ['', 'x', 'y', 'round', 'space']
1439
+ }]
1440
+ }],
1441
+ /**
1442
+ * Background Size
1443
+ * @see https://tailwindcss.com/docs/background-size
1444
+ */
1445
+ 'bg-size': [{
1446
+ bg: ['auto', 'cover', 'contain', isArbitrarySize]
1447
+ }],
1448
+ /**
1449
+ * Background Image
1450
+ * @see https://tailwindcss.com/docs/background-image
1451
+ */
1452
+ 'bg-image': [{
1453
+ bg: ['none', {
1454
+ 'gradient-to': ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']
1455
+ }, isArbitraryImage]
1456
+ }],
1457
+ /**
1458
+ * Background Color
1459
+ * @see https://tailwindcss.com/docs/background-color
1460
+ */
1461
+ 'bg-color': [{
1462
+ bg: [colors]
1463
+ }],
1464
+ /**
1465
+ * Gradient Color Stops From Position
1466
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1467
+ */
1468
+ 'gradient-from-pos': [{
1469
+ from: [gradientColorStopPositions]
1470
+ }],
1471
+ /**
1472
+ * Gradient Color Stops Via Position
1473
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1474
+ */
1475
+ 'gradient-via-pos': [{
1476
+ via: [gradientColorStopPositions]
1477
+ }],
1478
+ /**
1479
+ * Gradient Color Stops To Position
1480
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1481
+ */
1482
+ 'gradient-to-pos': [{
1483
+ to: [gradientColorStopPositions]
1484
+ }],
1485
+ /**
1486
+ * Gradient Color Stops From
1487
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1488
+ */
1489
+ 'gradient-from': [{
1490
+ from: [gradientColorStops]
1491
+ }],
1492
+ /**
1493
+ * Gradient Color Stops Via
1494
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1495
+ */
1496
+ 'gradient-via': [{
1497
+ via: [gradientColorStops]
1498
+ }],
1499
+ /**
1500
+ * Gradient Color Stops To
1501
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1502
+ */
1503
+ 'gradient-to': [{
1504
+ to: [gradientColorStops]
1505
+ }],
1506
+ // Borders
1507
+ /**
1508
+ * Border Radius
1509
+ * @see https://tailwindcss.com/docs/border-radius
1510
+ */
1511
+ rounded: [{
1512
+ rounded: [borderRadius]
1513
+ }],
1514
+ /**
1515
+ * Border Radius Start
1516
+ * @see https://tailwindcss.com/docs/border-radius
1517
+ */
1518
+ 'rounded-s': [{
1519
+ 'rounded-s': [borderRadius]
1520
+ }],
1521
+ /**
1522
+ * Border Radius End
1523
+ * @see https://tailwindcss.com/docs/border-radius
1524
+ */
1525
+ 'rounded-e': [{
1526
+ 'rounded-e': [borderRadius]
1527
+ }],
1528
+ /**
1529
+ * Border Radius Top
1530
+ * @see https://tailwindcss.com/docs/border-radius
1531
+ */
1532
+ 'rounded-t': [{
1533
+ 'rounded-t': [borderRadius]
1534
+ }],
1535
+ /**
1536
+ * Border Radius Right
1537
+ * @see https://tailwindcss.com/docs/border-radius
1538
+ */
1539
+ 'rounded-r': [{
1540
+ 'rounded-r': [borderRadius]
1541
+ }],
1542
+ /**
1543
+ * Border Radius Bottom
1544
+ * @see https://tailwindcss.com/docs/border-radius
1545
+ */
1546
+ 'rounded-b': [{
1547
+ 'rounded-b': [borderRadius]
1548
+ }],
1549
+ /**
1550
+ * Border Radius Left
1551
+ * @see https://tailwindcss.com/docs/border-radius
1552
+ */
1553
+ 'rounded-l': [{
1554
+ 'rounded-l': [borderRadius]
1555
+ }],
1556
+ /**
1557
+ * Border Radius Start Start
1558
+ * @see https://tailwindcss.com/docs/border-radius
1559
+ */
1560
+ 'rounded-ss': [{
1561
+ 'rounded-ss': [borderRadius]
1562
+ }],
1563
+ /**
1564
+ * Border Radius Start End
1565
+ * @see https://tailwindcss.com/docs/border-radius
1566
+ */
1567
+ 'rounded-se': [{
1568
+ 'rounded-se': [borderRadius]
1569
+ }],
1570
+ /**
1571
+ * Border Radius End End
1572
+ * @see https://tailwindcss.com/docs/border-radius
1573
+ */
1574
+ 'rounded-ee': [{
1575
+ 'rounded-ee': [borderRadius]
1576
+ }],
1577
+ /**
1578
+ * Border Radius End Start
1579
+ * @see https://tailwindcss.com/docs/border-radius
1580
+ */
1581
+ 'rounded-es': [{
1582
+ 'rounded-es': [borderRadius]
1583
+ }],
1584
+ /**
1585
+ * Border Radius Top Left
1586
+ * @see https://tailwindcss.com/docs/border-radius
1587
+ */
1588
+ 'rounded-tl': [{
1589
+ 'rounded-tl': [borderRadius]
1590
+ }],
1591
+ /**
1592
+ * Border Radius Top Right
1593
+ * @see https://tailwindcss.com/docs/border-radius
1594
+ */
1595
+ 'rounded-tr': [{
1596
+ 'rounded-tr': [borderRadius]
1597
+ }],
1598
+ /**
1599
+ * Border Radius Bottom Right
1600
+ * @see https://tailwindcss.com/docs/border-radius
1601
+ */
1602
+ 'rounded-br': [{
1603
+ 'rounded-br': [borderRadius]
1604
+ }],
1605
+ /**
1606
+ * Border Radius Bottom Left
1607
+ * @see https://tailwindcss.com/docs/border-radius
1608
+ */
1609
+ 'rounded-bl': [{
1610
+ 'rounded-bl': [borderRadius]
1611
+ }],
1612
+ /**
1613
+ * Border Width
1614
+ * @see https://tailwindcss.com/docs/border-width
1615
+ */
1616
+ 'border-w': [{
1617
+ border: [borderWidth]
1618
+ }],
1619
+ /**
1620
+ * Border Width X
1621
+ * @see https://tailwindcss.com/docs/border-width
1622
+ */
1623
+ 'border-w-x': [{
1624
+ 'border-x': [borderWidth]
1625
+ }],
1626
+ /**
1627
+ * Border Width Y
1628
+ * @see https://tailwindcss.com/docs/border-width
1629
+ */
1630
+ 'border-w-y': [{
1631
+ 'border-y': [borderWidth]
1632
+ }],
1633
+ /**
1634
+ * Border Width Start
1635
+ * @see https://tailwindcss.com/docs/border-width
1636
+ */
1637
+ 'border-w-s': [{
1638
+ 'border-s': [borderWidth]
1639
+ }],
1640
+ /**
1641
+ * Border Width End
1642
+ * @see https://tailwindcss.com/docs/border-width
1643
+ */
1644
+ 'border-w-e': [{
1645
+ 'border-e': [borderWidth]
1646
+ }],
1647
+ /**
1648
+ * Border Width Top
1649
+ * @see https://tailwindcss.com/docs/border-width
1650
+ */
1651
+ 'border-w-t': [{
1652
+ 'border-t': [borderWidth]
1653
+ }],
1654
+ /**
1655
+ * Border Width Right
1656
+ * @see https://tailwindcss.com/docs/border-width
1657
+ */
1658
+ 'border-w-r': [{
1659
+ 'border-r': [borderWidth]
1660
+ }],
1661
+ /**
1662
+ * Border Width Bottom
1663
+ * @see https://tailwindcss.com/docs/border-width
1664
+ */
1665
+ 'border-w-b': [{
1666
+ 'border-b': [borderWidth]
1667
+ }],
1668
+ /**
1669
+ * Border Width Left
1670
+ * @see https://tailwindcss.com/docs/border-width
1671
+ */
1672
+ 'border-w-l': [{
1673
+ 'border-l': [borderWidth]
1674
+ }],
1675
+ /**
1676
+ * Border Opacity
1677
+ * @see https://tailwindcss.com/docs/border-opacity
1678
+ */
1679
+ 'border-opacity': [{
1680
+ 'border-opacity': [opacity]
1681
+ }],
1682
+ /**
1683
+ * Border Style
1684
+ * @see https://tailwindcss.com/docs/border-style
1685
+ */
1686
+ 'border-style': [{
1687
+ border: [...getLineStyles(), 'hidden']
1688
+ }],
1689
+ /**
1690
+ * Divide Width X
1691
+ * @see https://tailwindcss.com/docs/divide-width
1692
+ */
1693
+ 'divide-x': [{
1694
+ 'divide-x': [borderWidth]
1695
+ }],
1696
+ /**
1697
+ * Divide Width X Reverse
1698
+ * @see https://tailwindcss.com/docs/divide-width
1699
+ */
1700
+ 'divide-x-reverse': ['divide-x-reverse'],
1701
+ /**
1702
+ * Divide Width Y
1703
+ * @see https://tailwindcss.com/docs/divide-width
1704
+ */
1705
+ 'divide-y': [{
1706
+ 'divide-y': [borderWidth]
1707
+ }],
1708
+ /**
1709
+ * Divide Width Y Reverse
1710
+ * @see https://tailwindcss.com/docs/divide-width
1711
+ */
1712
+ 'divide-y-reverse': ['divide-y-reverse'],
1713
+ /**
1714
+ * Divide Opacity
1715
+ * @see https://tailwindcss.com/docs/divide-opacity
1716
+ */
1717
+ 'divide-opacity': [{
1718
+ 'divide-opacity': [opacity]
1719
+ }],
1720
+ /**
1721
+ * Divide Style
1722
+ * @see https://tailwindcss.com/docs/divide-style
1723
+ */
1724
+ 'divide-style': [{
1725
+ divide: getLineStyles()
1726
+ }],
1727
+ /**
1728
+ * Border Color
1729
+ * @see https://tailwindcss.com/docs/border-color
1730
+ */
1731
+ 'border-color': [{
1732
+ border: [borderColor]
1733
+ }],
1734
+ /**
1735
+ * Border Color X
1736
+ * @see https://tailwindcss.com/docs/border-color
1737
+ */
1738
+ 'border-color-x': [{
1739
+ 'border-x': [borderColor]
1740
+ }],
1741
+ /**
1742
+ * Border Color Y
1743
+ * @see https://tailwindcss.com/docs/border-color
1744
+ */
1745
+ 'border-color-y': [{
1746
+ 'border-y': [borderColor]
1747
+ }],
1748
+ /**
1749
+ * Border Color S
1750
+ * @see https://tailwindcss.com/docs/border-color
1751
+ */
1752
+ 'border-color-s': [{
1753
+ 'border-s': [borderColor]
1754
+ }],
1755
+ /**
1756
+ * Border Color E
1757
+ * @see https://tailwindcss.com/docs/border-color
1758
+ */
1759
+ 'border-color-e': [{
1760
+ 'border-e': [borderColor]
1761
+ }],
1762
+ /**
1763
+ * Border Color Top
1764
+ * @see https://tailwindcss.com/docs/border-color
1765
+ */
1766
+ 'border-color-t': [{
1767
+ 'border-t': [borderColor]
1768
+ }],
1769
+ /**
1770
+ * Border Color Right
1771
+ * @see https://tailwindcss.com/docs/border-color
1772
+ */
1773
+ 'border-color-r': [{
1774
+ 'border-r': [borderColor]
1775
+ }],
1776
+ /**
1777
+ * Border Color Bottom
1778
+ * @see https://tailwindcss.com/docs/border-color
1779
+ */
1780
+ 'border-color-b': [{
1781
+ 'border-b': [borderColor]
1782
+ }],
1783
+ /**
1784
+ * Border Color Left
1785
+ * @see https://tailwindcss.com/docs/border-color
1786
+ */
1787
+ 'border-color-l': [{
1788
+ 'border-l': [borderColor]
1789
+ }],
1790
+ /**
1791
+ * Divide Color
1792
+ * @see https://tailwindcss.com/docs/divide-color
1793
+ */
1794
+ 'divide-color': [{
1795
+ divide: [borderColor]
1796
+ }],
1797
+ /**
1798
+ * Outline Style
1799
+ * @see https://tailwindcss.com/docs/outline-style
1800
+ */
1801
+ 'outline-style': [{
1802
+ outline: ['', ...getLineStyles()]
1803
+ }],
1804
+ /**
1805
+ * Outline Offset
1806
+ * @see https://tailwindcss.com/docs/outline-offset
1807
+ */
1808
+ 'outline-offset': [{
1809
+ 'outline-offset': [isLength, isArbitraryValue]
1810
+ }],
1811
+ /**
1812
+ * Outline Width
1813
+ * @see https://tailwindcss.com/docs/outline-width
1814
+ */
1815
+ 'outline-w': [{
1816
+ outline: [isLength, isArbitraryLength]
1817
+ }],
1818
+ /**
1819
+ * Outline Color
1820
+ * @see https://tailwindcss.com/docs/outline-color
1821
+ */
1822
+ 'outline-color': [{
1823
+ outline: [colors]
1824
+ }],
1825
+ /**
1826
+ * Ring Width
1827
+ * @see https://tailwindcss.com/docs/ring-width
1828
+ */
1829
+ 'ring-w': [{
1830
+ ring: getLengthWithEmptyAndArbitrary()
1831
+ }],
1832
+ /**
1833
+ * Ring Width Inset
1834
+ * @see https://tailwindcss.com/docs/ring-width
1835
+ */
1836
+ 'ring-w-inset': ['ring-inset'],
1837
+ /**
1838
+ * Ring Color
1839
+ * @see https://tailwindcss.com/docs/ring-color
1840
+ */
1841
+ 'ring-color': [{
1842
+ ring: [colors]
1843
+ }],
1844
+ /**
1845
+ * Ring Opacity
1846
+ * @see https://tailwindcss.com/docs/ring-opacity
1847
+ */
1848
+ 'ring-opacity': [{
1849
+ 'ring-opacity': [opacity]
1850
+ }],
1851
+ /**
1852
+ * Ring Offset Width
1853
+ * @see https://tailwindcss.com/docs/ring-offset-width
1854
+ */
1855
+ 'ring-offset-w': [{
1856
+ 'ring-offset': [isLength, isArbitraryLength]
1857
+ }],
1858
+ /**
1859
+ * Ring Offset Color
1860
+ * @see https://tailwindcss.com/docs/ring-offset-color
1861
+ */
1862
+ 'ring-offset-color': [{
1863
+ 'ring-offset': [colors]
1864
+ }],
1865
+ // Effects
1866
+ /**
1867
+ * Box Shadow
1868
+ * @see https://tailwindcss.com/docs/box-shadow
1869
+ */
1870
+ shadow: [{
1871
+ shadow: ['', 'inner', 'none', isTshirtSize, isArbitraryShadow]
1872
+ }],
1873
+ /**
1874
+ * Box Shadow Color
1875
+ * @see https://tailwindcss.com/docs/box-shadow-color
1876
+ */
1877
+ 'shadow-color': [{
1878
+ shadow: [isAny]
1879
+ }],
1880
+ /**
1881
+ * Opacity
1882
+ * @see https://tailwindcss.com/docs/opacity
1883
+ */
1884
+ opacity: [{
1885
+ opacity: [opacity]
1886
+ }],
1887
+ /**
1888
+ * Mix Blend Mode
1889
+ * @see https://tailwindcss.com/docs/mix-blend-mode
1890
+ */
1891
+ 'mix-blend': [{
1892
+ 'mix-blend': [...getBlendModes(), 'plus-lighter', 'plus-darker']
1893
+ }],
1894
+ /**
1895
+ * Background Blend Mode
1896
+ * @see https://tailwindcss.com/docs/background-blend-mode
1897
+ */
1898
+ 'bg-blend': [{
1899
+ 'bg-blend': getBlendModes()
1900
+ }],
1901
+ // Filters
1902
+ /**
1903
+ * Filter
1904
+ * @deprecated since Tailwind CSS v3.0.0
1905
+ * @see https://tailwindcss.com/docs/filter
1906
+ */
1907
+ filter: [{
1908
+ filter: ['', 'none']
1909
+ }],
1910
+ /**
1911
+ * Blur
1912
+ * @see https://tailwindcss.com/docs/blur
1913
+ */
1914
+ blur: [{
1915
+ blur: [blur]
1916
+ }],
1917
+ /**
1918
+ * Brightness
1919
+ * @see https://tailwindcss.com/docs/brightness
1920
+ */
1921
+ brightness: [{
1922
+ brightness: [brightness]
1923
+ }],
1924
+ /**
1925
+ * Contrast
1926
+ * @see https://tailwindcss.com/docs/contrast
1927
+ */
1928
+ contrast: [{
1929
+ contrast: [contrast]
1930
+ }],
1931
+ /**
1932
+ * Drop Shadow
1933
+ * @see https://tailwindcss.com/docs/drop-shadow
1934
+ */
1935
+ 'drop-shadow': [{
1936
+ 'drop-shadow': ['', 'none', isTshirtSize, isArbitraryValue]
1937
+ }],
1938
+ /**
1939
+ * Grayscale
1940
+ * @see https://tailwindcss.com/docs/grayscale
1941
+ */
1942
+ grayscale: [{
1943
+ grayscale: [grayscale]
1944
+ }],
1945
+ /**
1946
+ * Hue Rotate
1947
+ * @see https://tailwindcss.com/docs/hue-rotate
1948
+ */
1949
+ 'hue-rotate': [{
1950
+ 'hue-rotate': [hueRotate]
1951
+ }],
1952
+ /**
1953
+ * Invert
1954
+ * @see https://tailwindcss.com/docs/invert
1955
+ */
1956
+ invert: [{
1957
+ invert: [invert]
1958
+ }],
1959
+ /**
1960
+ * Saturate
1961
+ * @see https://tailwindcss.com/docs/saturate
1962
+ */
1963
+ saturate: [{
1964
+ saturate: [saturate]
1965
+ }],
1966
+ /**
1967
+ * Sepia
1968
+ * @see https://tailwindcss.com/docs/sepia
1969
+ */
1970
+ sepia: [{
1971
+ sepia: [sepia]
1972
+ }],
1973
+ /**
1974
+ * Backdrop Filter
1975
+ * @deprecated since Tailwind CSS v3.0.0
1976
+ * @see https://tailwindcss.com/docs/backdrop-filter
1977
+ */
1978
+ 'backdrop-filter': [{
1979
+ 'backdrop-filter': ['', 'none']
1980
+ }],
1981
+ /**
1982
+ * Backdrop Blur
1983
+ * @see https://tailwindcss.com/docs/backdrop-blur
1984
+ */
1985
+ 'backdrop-blur': [{
1986
+ 'backdrop-blur': [blur]
1987
+ }],
1988
+ /**
1989
+ * Backdrop Brightness
1990
+ * @see https://tailwindcss.com/docs/backdrop-brightness
1991
+ */
1992
+ 'backdrop-brightness': [{
1993
+ 'backdrop-brightness': [brightness]
1994
+ }],
1995
+ /**
1996
+ * Backdrop Contrast
1997
+ * @see https://tailwindcss.com/docs/backdrop-contrast
1998
+ */
1999
+ 'backdrop-contrast': [{
2000
+ 'backdrop-contrast': [contrast]
2001
+ }],
2002
+ /**
2003
+ * Backdrop Grayscale
2004
+ * @see https://tailwindcss.com/docs/backdrop-grayscale
2005
+ */
2006
+ 'backdrop-grayscale': [{
2007
+ 'backdrop-grayscale': [grayscale]
2008
+ }],
2009
+ /**
2010
+ * Backdrop Hue Rotate
2011
+ * @see https://tailwindcss.com/docs/backdrop-hue-rotate
2012
+ */
2013
+ 'backdrop-hue-rotate': [{
2014
+ 'backdrop-hue-rotate': [hueRotate]
2015
+ }],
2016
+ /**
2017
+ * Backdrop Invert
2018
+ * @see https://tailwindcss.com/docs/backdrop-invert
2019
+ */
2020
+ 'backdrop-invert': [{
2021
+ 'backdrop-invert': [invert]
2022
+ }],
2023
+ /**
2024
+ * Backdrop Opacity
2025
+ * @see https://tailwindcss.com/docs/backdrop-opacity
2026
+ */
2027
+ 'backdrop-opacity': [{
2028
+ 'backdrop-opacity': [opacity]
2029
+ }],
2030
+ /**
2031
+ * Backdrop Saturate
2032
+ * @see https://tailwindcss.com/docs/backdrop-saturate
2033
+ */
2034
+ 'backdrop-saturate': [{
2035
+ 'backdrop-saturate': [saturate]
2036
+ }],
2037
+ /**
2038
+ * Backdrop Sepia
2039
+ * @see https://tailwindcss.com/docs/backdrop-sepia
2040
+ */
2041
+ 'backdrop-sepia': [{
2042
+ 'backdrop-sepia': [sepia]
2043
+ }],
2044
+ // Tables
2045
+ /**
2046
+ * Border Collapse
2047
+ * @see https://tailwindcss.com/docs/border-collapse
2048
+ */
2049
+ 'border-collapse': [{
2050
+ border: ['collapse', 'separate']
2051
+ }],
2052
+ /**
2053
+ * Border Spacing
2054
+ * @see https://tailwindcss.com/docs/border-spacing
2055
+ */
2056
+ 'border-spacing': [{
2057
+ 'border-spacing': [borderSpacing]
2058
+ }],
2059
+ /**
2060
+ * Border Spacing X
2061
+ * @see https://tailwindcss.com/docs/border-spacing
2062
+ */
2063
+ 'border-spacing-x': [{
2064
+ 'border-spacing-x': [borderSpacing]
2065
+ }],
2066
+ /**
2067
+ * Border Spacing Y
2068
+ * @see https://tailwindcss.com/docs/border-spacing
2069
+ */
2070
+ 'border-spacing-y': [{
2071
+ 'border-spacing-y': [borderSpacing]
2072
+ }],
2073
+ /**
2074
+ * Table Layout
2075
+ * @see https://tailwindcss.com/docs/table-layout
2076
+ */
2077
+ 'table-layout': [{
2078
+ table: ['auto', 'fixed']
2079
+ }],
2080
+ /**
2081
+ * Caption Side
2082
+ * @see https://tailwindcss.com/docs/caption-side
2083
+ */
2084
+ caption: [{
2085
+ caption: ['top', 'bottom']
2086
+ }],
2087
+ // Transitions and Animation
2088
+ /**
2089
+ * Tranisition Property
2090
+ * @see https://tailwindcss.com/docs/transition-property
2091
+ */
2092
+ transition: [{
2093
+ transition: ['none', 'all', '', 'colors', 'opacity', 'shadow', 'transform', isArbitraryValue]
2094
+ }],
2095
+ /**
2096
+ * Transition Duration
2097
+ * @see https://tailwindcss.com/docs/transition-duration
2098
+ */
2099
+ duration: [{
2100
+ duration: getNumberAndArbitrary()
2101
+ }],
2102
+ /**
2103
+ * Transition Timing Function
2104
+ * @see https://tailwindcss.com/docs/transition-timing-function
2105
+ */
2106
+ ease: [{
2107
+ ease: ['linear', 'in', 'out', 'in-out', isArbitraryValue]
2108
+ }],
2109
+ /**
2110
+ * Transition Delay
2111
+ * @see https://tailwindcss.com/docs/transition-delay
2112
+ */
2113
+ delay: [{
2114
+ delay: getNumberAndArbitrary()
2115
+ }],
2116
+ /**
2117
+ * Animation
2118
+ * @see https://tailwindcss.com/docs/animation
2119
+ */
2120
+ animate: [{
2121
+ animate: ['none', 'spin', 'ping', 'pulse', 'bounce', isArbitraryValue]
2122
+ }],
2123
+ // Transforms
2124
+ /**
2125
+ * Transform
2126
+ * @see https://tailwindcss.com/docs/transform
2127
+ */
2128
+ transform: [{
2129
+ transform: ['', 'gpu', 'none']
2130
+ }],
2131
+ /**
2132
+ * Scale
2133
+ * @see https://tailwindcss.com/docs/scale
2134
+ */
2135
+ scale: [{
2136
+ scale: [scale]
2137
+ }],
2138
+ /**
2139
+ * Scale X
2140
+ * @see https://tailwindcss.com/docs/scale
2141
+ */
2142
+ 'scale-x': [{
2143
+ 'scale-x': [scale]
2144
+ }],
2145
+ /**
2146
+ * Scale Y
2147
+ * @see https://tailwindcss.com/docs/scale
2148
+ */
2149
+ 'scale-y': [{
2150
+ 'scale-y': [scale]
2151
+ }],
2152
+ /**
2153
+ * Rotate
2154
+ * @see https://tailwindcss.com/docs/rotate
2155
+ */
2156
+ rotate: [{
2157
+ rotate: [isInteger, isArbitraryValue]
2158
+ }],
2159
+ /**
2160
+ * Translate X
2161
+ * @see https://tailwindcss.com/docs/translate
2162
+ */
2163
+ 'translate-x': [{
2164
+ 'translate-x': [translate]
2165
+ }],
2166
+ /**
2167
+ * Translate Y
2168
+ * @see https://tailwindcss.com/docs/translate
2169
+ */
2170
+ 'translate-y': [{
2171
+ 'translate-y': [translate]
2172
+ }],
2173
+ /**
2174
+ * Skew X
2175
+ * @see https://tailwindcss.com/docs/skew
2176
+ */
2177
+ 'skew-x': [{
2178
+ 'skew-x': [skew]
2179
+ }],
2180
+ /**
2181
+ * Skew Y
2182
+ * @see https://tailwindcss.com/docs/skew
2183
+ */
2184
+ 'skew-y': [{
2185
+ 'skew-y': [skew]
2186
+ }],
2187
+ /**
2188
+ * Transform Origin
2189
+ * @see https://tailwindcss.com/docs/transform-origin
2190
+ */
2191
+ 'transform-origin': [{
2192
+ origin: ['center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left', isArbitraryValue]
2193
+ }],
2194
+ // Interactivity
2195
+ /**
2196
+ * Accent Color
2197
+ * @see https://tailwindcss.com/docs/accent-color
2198
+ */
2199
+ accent: [{
2200
+ accent: ['auto', colors]
2201
+ }],
2202
+ /**
2203
+ * Appearance
2204
+ * @see https://tailwindcss.com/docs/appearance
2205
+ */
2206
+ appearance: [{
2207
+ appearance: ['none', 'auto']
2208
+ }],
2209
+ /**
2210
+ * Cursor
2211
+ * @see https://tailwindcss.com/docs/cursor
2212
+ */
2213
+ cursor: [{
2214
+ cursor: ['auto', 'default', 'pointer', 'wait', 'text', 'move', 'help', 'not-allowed', 'none', 'context-menu', 'progress', 'cell', 'crosshair', 'vertical-text', 'alias', 'copy', 'no-drop', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 'e-resize', 's-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out', isArbitraryValue]
2215
+ }],
2216
+ /**
2217
+ * Caret Color
2218
+ * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
2219
+ */
2220
+ 'caret-color': [{
2221
+ caret: [colors]
2222
+ }],
2223
+ /**
2224
+ * Pointer Events
2225
+ * @see https://tailwindcss.com/docs/pointer-events
2226
+ */
2227
+ 'pointer-events': [{
2228
+ 'pointer-events': ['none', 'auto']
2229
+ }],
2230
+ /**
2231
+ * Resize
2232
+ * @see https://tailwindcss.com/docs/resize
2233
+ */
2234
+ resize: [{
2235
+ resize: ['none', 'y', 'x', '']
2236
+ }],
2237
+ /**
2238
+ * Scroll Behavior
2239
+ * @see https://tailwindcss.com/docs/scroll-behavior
2240
+ */
2241
+ 'scroll-behavior': [{
2242
+ scroll: ['auto', 'smooth']
2243
+ }],
2244
+ /**
2245
+ * Scroll Margin
2246
+ * @see https://tailwindcss.com/docs/scroll-margin
2247
+ */
2248
+ 'scroll-m': [{
2249
+ 'scroll-m': getSpacingWithArbitrary()
2250
+ }],
2251
+ /**
2252
+ * Scroll Margin X
2253
+ * @see https://tailwindcss.com/docs/scroll-margin
2254
+ */
2255
+ 'scroll-mx': [{
2256
+ 'scroll-mx': getSpacingWithArbitrary()
2257
+ }],
2258
+ /**
2259
+ * Scroll Margin Y
2260
+ * @see https://tailwindcss.com/docs/scroll-margin
2261
+ */
2262
+ 'scroll-my': [{
2263
+ 'scroll-my': getSpacingWithArbitrary()
2264
+ }],
2265
+ /**
2266
+ * Scroll Margin Start
2267
+ * @see https://tailwindcss.com/docs/scroll-margin
2268
+ */
2269
+ 'scroll-ms': [{
2270
+ 'scroll-ms': getSpacingWithArbitrary()
2271
+ }],
2272
+ /**
2273
+ * Scroll Margin End
2274
+ * @see https://tailwindcss.com/docs/scroll-margin
2275
+ */
2276
+ 'scroll-me': [{
2277
+ 'scroll-me': getSpacingWithArbitrary()
2278
+ }],
2279
+ /**
2280
+ * Scroll Margin Top
2281
+ * @see https://tailwindcss.com/docs/scroll-margin
2282
+ */
2283
+ 'scroll-mt': [{
2284
+ 'scroll-mt': getSpacingWithArbitrary()
2285
+ }],
2286
+ /**
2287
+ * Scroll Margin Right
2288
+ * @see https://tailwindcss.com/docs/scroll-margin
2289
+ */
2290
+ 'scroll-mr': [{
2291
+ 'scroll-mr': getSpacingWithArbitrary()
2292
+ }],
2293
+ /**
2294
+ * Scroll Margin Bottom
2295
+ * @see https://tailwindcss.com/docs/scroll-margin
2296
+ */
2297
+ 'scroll-mb': [{
2298
+ 'scroll-mb': getSpacingWithArbitrary()
2299
+ }],
2300
+ /**
2301
+ * Scroll Margin Left
2302
+ * @see https://tailwindcss.com/docs/scroll-margin
2303
+ */
2304
+ 'scroll-ml': [{
2305
+ 'scroll-ml': getSpacingWithArbitrary()
2306
+ }],
2307
+ /**
2308
+ * Scroll Padding
2309
+ * @see https://tailwindcss.com/docs/scroll-padding
2310
+ */
2311
+ 'scroll-p': [{
2312
+ 'scroll-p': getSpacingWithArbitrary()
2313
+ }],
2314
+ /**
2315
+ * Scroll Padding X
2316
+ * @see https://tailwindcss.com/docs/scroll-padding
2317
+ */
2318
+ 'scroll-px': [{
2319
+ 'scroll-px': getSpacingWithArbitrary()
2320
+ }],
2321
+ /**
2322
+ * Scroll Padding Y
2323
+ * @see https://tailwindcss.com/docs/scroll-padding
2324
+ */
2325
+ 'scroll-py': [{
2326
+ 'scroll-py': getSpacingWithArbitrary()
2327
+ }],
2328
+ /**
2329
+ * Scroll Padding Start
2330
+ * @see https://tailwindcss.com/docs/scroll-padding
2331
+ */
2332
+ 'scroll-ps': [{
2333
+ 'scroll-ps': getSpacingWithArbitrary()
2334
+ }],
2335
+ /**
2336
+ * Scroll Padding End
2337
+ * @see https://tailwindcss.com/docs/scroll-padding
2338
+ */
2339
+ 'scroll-pe': [{
2340
+ 'scroll-pe': getSpacingWithArbitrary()
2341
+ }],
2342
+ /**
2343
+ * Scroll Padding Top
2344
+ * @see https://tailwindcss.com/docs/scroll-padding
2345
+ */
2346
+ 'scroll-pt': [{
2347
+ 'scroll-pt': getSpacingWithArbitrary()
2348
+ }],
2349
+ /**
2350
+ * Scroll Padding Right
2351
+ * @see https://tailwindcss.com/docs/scroll-padding
2352
+ */
2353
+ 'scroll-pr': [{
2354
+ 'scroll-pr': getSpacingWithArbitrary()
2355
+ }],
2356
+ /**
2357
+ * Scroll Padding Bottom
2358
+ * @see https://tailwindcss.com/docs/scroll-padding
2359
+ */
2360
+ 'scroll-pb': [{
2361
+ 'scroll-pb': getSpacingWithArbitrary()
2362
+ }],
2363
+ /**
2364
+ * Scroll Padding Left
2365
+ * @see https://tailwindcss.com/docs/scroll-padding
2366
+ */
2367
+ 'scroll-pl': [{
2368
+ 'scroll-pl': getSpacingWithArbitrary()
2369
+ }],
2370
+ /**
2371
+ * Scroll Snap Align
2372
+ * @see https://tailwindcss.com/docs/scroll-snap-align
2373
+ */
2374
+ 'snap-align': [{
2375
+ snap: ['start', 'end', 'center', 'align-none']
2376
+ }],
2377
+ /**
2378
+ * Scroll Snap Stop
2379
+ * @see https://tailwindcss.com/docs/scroll-snap-stop
2380
+ */
2381
+ 'snap-stop': [{
2382
+ snap: ['normal', 'always']
2383
+ }],
2384
+ /**
2385
+ * Scroll Snap Type
2386
+ * @see https://tailwindcss.com/docs/scroll-snap-type
2387
+ */
2388
+ 'snap-type': [{
2389
+ snap: ['none', 'x', 'y', 'both']
2390
+ }],
2391
+ /**
2392
+ * Scroll Snap Type Strictness
2393
+ * @see https://tailwindcss.com/docs/scroll-snap-type
2394
+ */
2395
+ 'snap-strictness': [{
2396
+ snap: ['mandatory', 'proximity']
2397
+ }],
2398
+ /**
2399
+ * Touch Action
2400
+ * @see https://tailwindcss.com/docs/touch-action
2401
+ */
2402
+ touch: [{
2403
+ touch: ['auto', 'none', 'manipulation']
2404
+ }],
2405
+ /**
2406
+ * Touch Action X
2407
+ * @see https://tailwindcss.com/docs/touch-action
2408
+ */
2409
+ 'touch-x': [{
2410
+ 'touch-pan': ['x', 'left', 'right']
2411
+ }],
2412
+ /**
2413
+ * Touch Action Y
2414
+ * @see https://tailwindcss.com/docs/touch-action
2415
+ */
2416
+ 'touch-y': [{
2417
+ 'touch-pan': ['y', 'up', 'down']
2418
+ }],
2419
+ /**
2420
+ * Touch Action Pinch Zoom
2421
+ * @see https://tailwindcss.com/docs/touch-action
2422
+ */
2423
+ 'touch-pz': ['touch-pinch-zoom'],
2424
+ /**
2425
+ * User Select
2426
+ * @see https://tailwindcss.com/docs/user-select
2427
+ */
2428
+ select: [{
2429
+ select: ['none', 'text', 'all', 'auto']
2430
+ }],
2431
+ /**
2432
+ * Will Change
2433
+ * @see https://tailwindcss.com/docs/will-change
2434
+ */
2435
+ 'will-change': [{
2436
+ 'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryValue]
2437
+ }],
2438
+ // SVG
2439
+ /**
2440
+ * Fill
2441
+ * @see https://tailwindcss.com/docs/fill
2442
+ */
2443
+ fill: [{
2444
+ fill: [colors, 'none']
2445
+ }],
2446
+ /**
2447
+ * Stroke Width
2448
+ * @see https://tailwindcss.com/docs/stroke-width
2449
+ */
2450
+ 'stroke-w': [{
2451
+ stroke: [isLength, isArbitraryLength, isArbitraryNumber]
2452
+ }],
2453
+ /**
2454
+ * Stroke
2455
+ * @see https://tailwindcss.com/docs/stroke
2456
+ */
2457
+ stroke: [{
2458
+ stroke: [colors, 'none']
2459
+ }],
2460
+ // Accessibility
2461
+ /**
2462
+ * Screen Readers
2463
+ * @see https://tailwindcss.com/docs/screen-readers
2464
+ */
2465
+ sr: ['sr-only', 'not-sr-only'],
2466
+ /**
2467
+ * Forced Color Adjust
2468
+ * @see https://tailwindcss.com/docs/forced-color-adjust
2469
+ */
2470
+ 'forced-color-adjust': [{
2471
+ 'forced-color-adjust': ['auto', 'none']
2472
+ }]
2473
+ },
2474
+ conflictingClassGroups: {
2475
+ overflow: ['overflow-x', 'overflow-y'],
2476
+ overscroll: ['overscroll-x', 'overscroll-y'],
2477
+ inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],
2478
+ 'inset-x': ['right', 'left'],
2479
+ 'inset-y': ['top', 'bottom'],
2480
+ flex: ['basis', 'grow', 'shrink'],
2481
+ gap: ['gap-x', 'gap-y'],
2482
+ p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],
2483
+ px: ['pr', 'pl'],
2484
+ py: ['pt', 'pb'],
2485
+ m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],
2486
+ mx: ['mr', 'ml'],
2487
+ my: ['mt', 'mb'],
2488
+ size: ['w', 'h'],
2489
+ 'font-size': ['leading'],
2490
+ 'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],
2491
+ 'fvn-ordinal': ['fvn-normal'],
2492
+ 'fvn-slashed-zero': ['fvn-normal'],
2493
+ 'fvn-figure': ['fvn-normal'],
2494
+ 'fvn-spacing': ['fvn-normal'],
2495
+ 'fvn-fraction': ['fvn-normal'],
2496
+ 'line-clamp': ['display', 'overflow'],
2497
+ rounded: ['rounded-s', 'rounded-e', 'rounded-t', 'rounded-r', 'rounded-b', 'rounded-l', 'rounded-ss', 'rounded-se', 'rounded-ee', 'rounded-es', 'rounded-tl', 'rounded-tr', 'rounded-br', 'rounded-bl'],
2498
+ 'rounded-s': ['rounded-ss', 'rounded-es'],
2499
+ 'rounded-e': ['rounded-se', 'rounded-ee'],
2500
+ 'rounded-t': ['rounded-tl', 'rounded-tr'],
2501
+ 'rounded-r': ['rounded-tr', 'rounded-br'],
2502
+ 'rounded-b': ['rounded-br', 'rounded-bl'],
2503
+ 'rounded-l': ['rounded-tl', 'rounded-bl'],
2504
+ 'border-spacing': ['border-spacing-x', 'border-spacing-y'],
2505
+ 'border-w': ['border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],
2506
+ 'border-w-x': ['border-w-r', 'border-w-l'],
2507
+ 'border-w-y': ['border-w-t', 'border-w-b'],
2508
+ 'border-color': ['border-color-s', 'border-color-e', 'border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],
2509
+ 'border-color-x': ['border-color-r', 'border-color-l'],
2510
+ 'border-color-y': ['border-color-t', 'border-color-b'],
2511
+ 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],
2512
+ 'scroll-mx': ['scroll-mr', 'scroll-ml'],
2513
+ 'scroll-my': ['scroll-mt', 'scroll-mb'],
2514
+ 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],
2515
+ 'scroll-px': ['scroll-pr', 'scroll-pl'],
2516
+ 'scroll-py': ['scroll-pt', 'scroll-pb'],
2517
+ touch: ['touch-x', 'touch-y', 'touch-pz'],
2518
+ 'touch-x': ['touch'],
2519
+ 'touch-y': ['touch'],
2520
+ 'touch-pz': ['touch']
2521
+ },
2522
+ conflictingClassGroupModifiers: {
2523
+ 'font-size': ['leading']
2524
+ }
2525
+ };
2526
+ };
2527
+
2528
+ /**
2529
+ * @param baseConfig Config where other config will be merged into. This object will be mutated.
2530
+ * @param configExtension Partial config to merge into the `baseConfig`.
2531
+ */
2532
+ const mergeConfigs = (baseConfig, {
2533
+ cacheSize,
2534
+ prefix,
2535
+ separator,
2536
+ experimentalParseClassName,
2537
+ extend = {},
2538
+ override = {}
2539
+ }) => {
2540
+ overrideProperty(baseConfig, 'cacheSize', cacheSize);
2541
+ overrideProperty(baseConfig, 'prefix', prefix);
2542
+ overrideProperty(baseConfig, 'separator', separator);
2543
+ overrideProperty(baseConfig, 'experimentalParseClassName', experimentalParseClassName);
2544
+ for (const configKey in override) {
2545
+ overrideConfigProperties(baseConfig[configKey], override[configKey]);
2546
+ }
2547
+ for (const key in extend) {
2548
+ mergeConfigProperties(baseConfig[key], extend[key]);
2549
+ }
2550
+ return baseConfig;
2551
+ };
2552
+ const overrideProperty = (baseObject, overrideKey, overrideValue) => {
2553
+ if (overrideValue !== undefined) {
2554
+ baseObject[overrideKey] = overrideValue;
2555
+ }
2556
+ };
2557
+ const overrideConfigProperties = (baseObject, overrideObject) => {
2558
+ if (overrideObject) {
2559
+ for (const key in overrideObject) {
2560
+ overrideProperty(baseObject, key, overrideObject[key]);
2561
+ }
2562
+ }
2563
+ };
2564
+ const mergeConfigProperties = (baseObject, mergeObject) => {
2565
+ if (mergeObject) {
2566
+ for (const key in mergeObject) {
2567
+ const mergeValue = mergeObject[key];
2568
+ if (mergeValue !== undefined) {
2569
+ baseObject[key] = (baseObject[key] || []).concat(mergeValue);
2570
+ }
2571
+ }
2572
+ }
2573
+ };
2574
+ const extendTailwindMerge = (configExtension, ...createConfig) => typeof configExtension === 'function' ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);
2575
+ const twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
2576
+ exports.createTailwindMerge = createTailwindMerge;
2577
+ exports.extendTailwindMerge = extendTailwindMerge;
2578
+ exports.fromTheme = fromTheme;
2579
+ exports.getDefaultConfig = getDefaultConfig;
2580
+ exports.mergeConfigs = mergeConfigs;
2581
+ exports.twJoin = twJoin;
2582
+ exports.twMerge = twMerge;
2583
+ exports.validators = validators;
2584
+
2585
+ } (bundleCjs));
2586
+ return bundleCjs;
2587
+ }
2588
+
2589
+ var bundleCjsExports = /*@__PURE__*/ requireBundleCjs();
2590
+
2591
+ function cn(...inputs) {
2592
+ return bundleCjsExports.twMerge(clsx(inputs));
2593
+ }
2594
+
2595
+ export { cn as c };