tailwindcss 0.0.0-insiders.eb3fe8f → 0.0.0-insiders.ebc1c7a

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 (347) hide show
  1. package/CHANGELOG.md +51 -8
  2. package/colors.js +6 -2
  3. package/lib/cli.js +1 -0
  4. package/lib/corePluginList.js +1 -1
  5. package/lib/corePlugins.js +2917 -196
  6. package/lib/{plugins/css → css}/LICENSE +0 -0
  7. package/lib/{plugins/css → css}/preflight.css +0 -0
  8. package/lib/lib/setupContextUtils.js +7 -10
  9. package/lib/util/color.js +74 -0
  10. package/lib/util/createUtilityPlugin.js +1 -3
  11. package/lib/util/pluginUtils.js +7 -29
  12. package/lib/util/resolveConfig.js +0 -103
  13. package/lib/util/transformThemeValue.js +10 -0
  14. package/lib/util/withAlphaVariable.js +20 -48
  15. package/package.json +3 -3
  16. package/scripts/create-plugin-list.js +2 -2
  17. package/src/cli.js +1 -0
  18. package/src/corePluginList.js +1 -1
  19. package/src/corePlugins.js +2151 -258
  20. package/src/{plugins/css → css}/LICENSE +0 -0
  21. package/src/{plugins/css → css}/preflight.css +0 -0
  22. package/src/lib/setupContextUtils.js +4 -7
  23. package/src/util/color.js +56 -0
  24. package/src/util/createUtilityPlugin.js +2 -4
  25. package/src/util/pluginUtils.js +10 -28
  26. package/src/util/resolveConfig.js +0 -94
  27. package/src/util/transformThemeValue.js +8 -0
  28. package/src/util/withAlphaVariable.js +15 -45
  29. package/stubs/defaultConfig.stub.js +51 -13
  30. package/lib/lib/substituteResponsiveAtRules.js +0 -104
  31. package/lib/plugins/accentColor.js +0 -32
  32. package/lib/plugins/accessibility.js +0 -37
  33. package/lib/plugins/alignContent.js +0 -34
  34. package/lib/plugins/alignItems.js +0 -31
  35. package/lib/plugins/alignSelf.js +0 -34
  36. package/lib/plugins/animation.js +0 -62
  37. package/lib/plugins/appearance.js +0 -19
  38. package/lib/plugins/aspectRatio.js +0 -14
  39. package/lib/plugins/backdropBlur.js +0 -28
  40. package/lib/plugins/backdropBrightness.js +0 -28
  41. package/lib/plugins/backdropContrast.js +0 -28
  42. package/lib/plugins/backdropFilter.js +0 -38
  43. package/lib/plugins/backdropGrayscale.js +0 -28
  44. package/lib/plugins/backdropHueRotate.js +0 -28
  45. package/lib/plugins/backdropInvert.js +0 -28
  46. package/lib/plugins/backdropOpacity.js +0 -28
  47. package/lib/plugins/backdropSaturate.js +0 -28
  48. package/lib/plugins/backdropSepia.js +0 -28
  49. package/lib/plugins/backgroundAttachment.js +0 -25
  50. package/lib/plugins/backgroundBlendMode.js +0 -64
  51. package/lib/plugins/backgroundClip.js +0 -28
  52. package/lib/plugins/backgroundColor.js +0 -41
  53. package/lib/plugins/backgroundImage.js +0 -18
  54. package/lib/plugins/backgroundOpacity.js +0 -14
  55. package/lib/plugins/backgroundOrigin.js +0 -25
  56. package/lib/plugins/backgroundPosition.js +0 -18
  57. package/lib/plugins/backgroundRepeat.js +0 -34
  58. package/lib/plugins/backgroundSize.js +0 -18
  59. package/lib/plugins/blur.js +0 -28
  60. package/lib/plugins/borderCollapse.js +0 -22
  61. package/lib/plugins/borderColor.js +0 -122
  62. package/lib/plugins/borderOpacity.js +0 -14
  63. package/lib/plugins/borderRadius.js +0 -14
  64. package/lib/plugins/borderStyle.js +0 -31
  65. package/lib/plugins/borderWidth.js +0 -18
  66. package/lib/plugins/boxDecorationBreak.js +0 -22
  67. package/lib/plugins/boxShadow.js +0 -44
  68. package/lib/plugins/boxSizing.js +0 -22
  69. package/lib/plugins/brightness.js +0 -28
  70. package/lib/plugins/caretColor.js +0 -32
  71. package/lib/plugins/clear.js +0 -28
  72. package/lib/plugins/container.js +0 -107
  73. package/lib/plugins/content.js +0 -14
  74. package/lib/plugins/contrast.js +0 -28
  75. package/lib/plugins/cursor.js +0 -14
  76. package/lib/plugins/display.js +0 -79
  77. package/lib/plugins/divideColor.js +0 -48
  78. package/lib/plugins/divideOpacity.js +0 -28
  79. package/lib/plugins/divideStyle.js +0 -31
  80. package/lib/plugins/divideWidth.js +0 -54
  81. package/lib/plugins/dropShadow.js +0 -29
  82. package/lib/plugins/fill.js +0 -32
  83. package/lib/plugins/filter.js +0 -38
  84. package/lib/plugins/flex.js +0 -14
  85. package/lib/plugins/flexDirection.js +0 -28
  86. package/lib/plugins/flexGrow.js +0 -14
  87. package/lib/plugins/flexShrink.js +0 -14
  88. package/lib/plugins/flexWrap.js +0 -25
  89. package/lib/plugins/float.js +0 -25
  90. package/lib/plugins/fontFamily.js +0 -18
  91. package/lib/plugins/fontSize.js +0 -43
  92. package/lib/plugins/fontSmoothing.js +0 -24
  93. package/lib/plugins/fontStyle.js +0 -22
  94. package/lib/plugins/fontVariantNumeric.js +0 -51
  95. package/lib/plugins/fontWeight.js +0 -18
  96. package/lib/plugins/gap.js +0 -14
  97. package/lib/plugins/gradientColorStops.js +0 -56
  98. package/lib/plugins/grayscale.js +0 -28
  99. package/lib/plugins/gridAutoColumns.js +0 -14
  100. package/lib/plugins/gridAutoFlow.js +0 -28
  101. package/lib/plugins/gridAutoRows.js +0 -14
  102. package/lib/plugins/gridColumn.js +0 -14
  103. package/lib/plugins/gridColumnEnd.js +0 -14
  104. package/lib/plugins/gridColumnStart.js +0 -14
  105. package/lib/plugins/gridRow.js +0 -14
  106. package/lib/plugins/gridRowEnd.js +0 -14
  107. package/lib/plugins/gridRowStart.js +0 -14
  108. package/lib/plugins/gridTemplateColumns.js +0 -18
  109. package/lib/plugins/gridTemplateRows.js +0 -18
  110. package/lib/plugins/height.js +0 -14
  111. package/lib/plugins/hueRotate.js +0 -28
  112. package/lib/plugins/index.js +0 -1191
  113. package/lib/plugins/inset.js +0 -66
  114. package/lib/plugins/invert.js +0 -28
  115. package/lib/plugins/isolation.js +0 -22
  116. package/lib/plugins/justifyContent.js +0 -34
  117. package/lib/plugins/justifyItems.js +0 -28
  118. package/lib/plugins/justifySelf.js +0 -31
  119. package/lib/plugins/letterSpacing.js +0 -14
  120. package/lib/plugins/lineHeight.js +0 -14
  121. package/lib/plugins/listStylePosition.js +0 -22
  122. package/lib/plugins/listStyleType.js +0 -14
  123. package/lib/plugins/margin.js +0 -14
  124. package/lib/plugins/maxHeight.js +0 -14
  125. package/lib/plugins/maxWidth.js +0 -14
  126. package/lib/plugins/minHeight.js +0 -14
  127. package/lib/plugins/minWidth.js +0 -14
  128. package/lib/plugins/mixBlendMode.js +0 -64
  129. package/lib/plugins/objectFit.js +0 -31
  130. package/lib/plugins/objectPosition.js +0 -18
  131. package/lib/plugins/opacity.js +0 -14
  132. package/lib/plugins/order.js +0 -14
  133. package/lib/plugins/outline.js +0 -28
  134. package/lib/plugins/overflow.js +0 -52
  135. package/lib/plugins/overscrollBehavior.js +0 -43
  136. package/lib/plugins/padding.js +0 -14
  137. package/lib/plugins/placeContent.js +0 -37
  138. package/lib/plugins/placeItems.js +0 -28
  139. package/lib/plugins/placeSelf.js +0 -31
  140. package/lib/plugins/placeholderColor.js +0 -45
  141. package/lib/plugins/placeholderOpacity.js +0 -28
  142. package/lib/plugins/pointerEvents.js +0 -22
  143. package/lib/plugins/position.js +0 -31
  144. package/lib/plugins/preflight.js +0 -26
  145. package/lib/plugins/resize.js +0 -28
  146. package/lib/plugins/ringColor.js +0 -34
  147. package/lib/plugins/ringOffsetColor.js +0 -32
  148. package/lib/plugins/ringOffsetWidth.js +0 -18
  149. package/lib/plugins/ringOpacity.js +0 -16
  150. package/lib/plugins/ringWidth.js +0 -52
  151. package/lib/plugins/rotate.js +0 -14
  152. package/lib/plugins/saturate.js +0 -28
  153. package/lib/plugins/scale.js +0 -14
  154. package/lib/plugins/sepia.js +0 -28
  155. package/lib/plugins/skew.js +0 -14
  156. package/lib/plugins/space.js +0 -50
  157. package/lib/plugins/stroke.js +0 -32
  158. package/lib/plugins/strokeWidth.js +0 -18
  159. package/lib/plugins/tableLayout.js +0 -22
  160. package/lib/plugins/textAlign.js +0 -28
  161. package/lib/plugins/textColor.js +0 -41
  162. package/lib/plugins/textDecoration.js +0 -25
  163. package/lib/plugins/textOpacity.js +0 -14
  164. package/lib/plugins/textOverflow.js +0 -27
  165. package/lib/plugins/textTransform.js +0 -28
  166. package/lib/plugins/transform.js +0 -42
  167. package/lib/plugins/transformOrigin.js +0 -14
  168. package/lib/plugins/transitionDelay.js +0 -14
  169. package/lib/plugins/transitionDuration.js +0 -16
  170. package/lib/plugins/transitionProperty.js +0 -32
  171. package/lib/plugins/transitionTimingFunction.js +0 -16
  172. package/lib/plugins/translate.js +0 -14
  173. package/lib/plugins/userSelect.js +0 -28
  174. package/lib/plugins/verticalAlign.js +0 -34
  175. package/lib/plugins/visibility.js +0 -22
  176. package/lib/plugins/whitespace.js +0 -31
  177. package/lib/plugins/width.js +0 -14
  178. package/lib/plugins/wordBreak.js +0 -26
  179. package/lib/plugins/zIndex.js +0 -14
  180. package/lib/util/buildSelectorVariant.js +0 -31
  181. package/lib/util/disposables.js +0 -30
  182. package/lib/util/generateVariantFunction.js +0 -57
  183. package/lib/util/increaseSpecificity.js +0 -10
  184. package/lib/util/prefixNegativeModifiers.js +0 -16
  185. package/lib/util/processPlugins.js +0 -191
  186. package/lib/util/useMemo.js +0 -32
  187. package/lib/util/usesCustomProperties.js +0 -22
  188. package/lib/util/wrapWithVariants.js +0 -31
  189. package/src/lib/substituteResponsiveAtRules.js +0 -93
  190. package/src/plugins/accentColor.js +0 -19
  191. package/src/plugins/accessibility.js +0 -30
  192. package/src/plugins/alignContent.js +0 -27
  193. package/src/plugins/alignItems.js +0 -24
  194. package/src/plugins/alignSelf.js +0 -27
  195. package/src/plugins/animation.js +0 -45
  196. package/src/plugins/appearance.js +0 -10
  197. package/src/plugins/aspectRatio.js +0 -5
  198. package/src/plugins/backdropBlur.js +0 -20
  199. package/src/plugins/backdropBrightness.js +0 -20
  200. package/src/plugins/backdropContrast.js +0 -20
  201. package/src/plugins/backdropFilter.js +0 -38
  202. package/src/plugins/backdropGrayscale.js +0 -20
  203. package/src/plugins/backdropHueRotate.js +0 -20
  204. package/src/plugins/backdropInvert.js +0 -20
  205. package/src/plugins/backdropOpacity.js +0 -20
  206. package/src/plugins/backdropSaturate.js +0 -20
  207. package/src/plugins/backdropSepia.js +0 -20
  208. package/src/plugins/backgroundAttachment.js +0 -12
  209. package/src/plugins/backgroundBlendMode.js +0 -25
  210. package/src/plugins/backgroundClip.js +0 -13
  211. package/src/plugins/backgroundColor.js +0 -29
  212. package/src/plugins/backgroundImage.js +0 -8
  213. package/src/plugins/backgroundOpacity.js +0 -5
  214. package/src/plugins/backgroundOrigin.js +0 -12
  215. package/src/plugins/backgroundPosition.js +0 -8
  216. package/src/plugins/backgroundRepeat.js +0 -15
  217. package/src/plugins/backgroundSize.js +0 -8
  218. package/src/plugins/blur.js +0 -20
  219. package/src/plugins/borderCollapse.js +0 -11
  220. package/src/plugins/borderColor.js +0 -107
  221. package/src/plugins/borderOpacity.js +0 -5
  222. package/src/plugins/borderRadius.js +0 -19
  223. package/src/plugins/borderStyle.js +0 -24
  224. package/src/plugins/borderWidth.js +0 -18
  225. package/src/plugins/boxDecorationBreak.js +0 -15
  226. package/src/plugins/boxShadow.js +0 -39
  227. package/src/plugins/boxSizing.js +0 -11
  228. package/src/plugins/brightness.js +0 -20
  229. package/src/plugins/caretColor.js +0 -19
  230. package/src/plugins/clear.js +0 -13
  231. package/src/plugins/container.js +0 -108
  232. package/src/plugins/content.js +0 -5
  233. package/src/plugins/contrast.js +0 -16
  234. package/src/plugins/cursor.js +0 -5
  235. package/src/plugins/display.js +0 -72
  236. package/src/plugins/divideColor.js +0 -33
  237. package/src/plugins/divideOpacity.js +0 -20
  238. package/src/plugins/divideStyle.js +0 -24
  239. package/src/plugins/divideWidth.js +0 -51
  240. package/src/plugins/dropShadow.js +0 -22
  241. package/src/plugins/fill.js +0 -19
  242. package/src/plugins/filter.js +0 -35
  243. package/src/plugins/flex.js +0 -5
  244. package/src/plugins/flexDirection.js +0 -21
  245. package/src/plugins/flexGrow.js +0 -5
  246. package/src/plugins/flexShrink.js +0 -5
  247. package/src/plugins/flexWrap.js +0 -18
  248. package/src/plugins/float.js +0 -12
  249. package/src/plugins/fontFamily.js +0 -8
  250. package/src/plugins/fontSize.js +0 -27
  251. package/src/plugins/fontSmoothing.js +0 -17
  252. package/src/plugins/fontStyle.js +0 -11
  253. package/src/plugins/fontVariantNumeric.js +0 -46
  254. package/src/plugins/fontWeight.js +0 -8
  255. package/src/plugins/gap.js +0 -11
  256. package/src/plugins/gradientColorStops.js +0 -54
  257. package/src/plugins/grayscale.js +0 -20
  258. package/src/plugins/gridAutoColumns.js +0 -5
  259. package/src/plugins/gridAutoFlow.js +0 -13
  260. package/src/plugins/gridAutoRows.js +0 -5
  261. package/src/plugins/gridColumn.js +0 -5
  262. package/src/plugins/gridColumnEnd.js +0 -5
  263. package/src/plugins/gridColumnStart.js +0 -5
  264. package/src/plugins/gridRow.js +0 -5
  265. package/src/plugins/gridRowEnd.js +0 -5
  266. package/src/plugins/gridRowStart.js +0 -5
  267. package/src/plugins/gridTemplateColumns.js +0 -8
  268. package/src/plugins/gridTemplateRows.js +0 -8
  269. package/src/plugins/height.js +0 -5
  270. package/src/plugins/hueRotate.js +0 -20
  271. package/src/plugins/index.js +0 -168
  272. package/src/plugins/inset.js +0 -48
  273. package/src/plugins/invert.js +0 -20
  274. package/src/plugins/isolation.js +0 -15
  275. package/src/plugins/justifyContent.js +0 -27
  276. package/src/plugins/justifyItems.js +0 -21
  277. package/src/plugins/justifySelf.js +0 -24
  278. package/src/plugins/letterSpacing.js +0 -5
  279. package/src/plugins/lineHeight.js +0 -5
  280. package/src/plugins/listStylePosition.js +0 -11
  281. package/src/plugins/listStyleType.js +0 -5
  282. package/src/plugins/margin.js +0 -17
  283. package/src/plugins/maxHeight.js +0 -5
  284. package/src/plugins/maxWidth.js +0 -5
  285. package/src/plugins/minHeight.js +0 -5
  286. package/src/plugins/minWidth.js +0 -5
  287. package/src/plugins/mixBlendMode.js +0 -25
  288. package/src/plugins/objectFit.js +0 -14
  289. package/src/plugins/objectPosition.js +0 -8
  290. package/src/plugins/opacity.js +0 -5
  291. package/src/plugins/order.js +0 -5
  292. package/src/plugins/outline.js +0 -14
  293. package/src/plugins/overflow.js +0 -21
  294. package/src/plugins/overscrollBehavior.js +0 -18
  295. package/src/plugins/padding.js +0 -17
  296. package/src/plugins/placeContent.js +0 -30
  297. package/src/plugins/placeItems.js +0 -21
  298. package/src/plugins/placeSelf.js +0 -24
  299. package/src/plugins/placeholderColor.js +0 -33
  300. package/src/plugins/placeholderOpacity.js +0 -16
  301. package/src/plugins/pointerEvents.js +0 -11
  302. package/src/plugins/position.js +0 -16
  303. package/src/plugins/preflight.js +0 -16
  304. package/src/plugins/resize.js +0 -13
  305. package/src/plugins/ringColor.js +0 -27
  306. package/src/plugins/ringOffsetColor.js +0 -21
  307. package/src/plugins/ringOffsetWidth.js +0 -8
  308. package/src/plugins/ringOpacity.js +0 -7
  309. package/src/plugins/ringWidth.js +0 -56
  310. package/src/plugins/rotate.js +0 -7
  311. package/src/plugins/saturate.js +0 -20
  312. package/src/plugins/scale.js +0 -25
  313. package/src/plugins/sepia.js +0 -16
  314. package/src/plugins/skew.js +0 -16
  315. package/src/plugins/space.js +0 -47
  316. package/src/plugins/stroke.js +0 -21
  317. package/src/plugins/strokeWidth.js +0 -8
  318. package/src/plugins/tableLayout.js +0 -11
  319. package/src/plugins/textAlign.js +0 -13
  320. package/src/plugins/textColor.js +0 -27
  321. package/src/plugins/textDecoration.js +0 -12
  322. package/src/plugins/textOpacity.js +0 -5
  323. package/src/plugins/textOverflow.js +0 -16
  324. package/src/plugins/textTransform.js +0 -13
  325. package/src/plugins/transform.js +0 -55
  326. package/src/plugins/transformOrigin.js +0 -5
  327. package/src/plugins/transitionDelay.js +0 -5
  328. package/src/plugins/transitionDuration.js +0 -7
  329. package/src/plugins/transitionProperty.js +0 -27
  330. package/src/plugins/transitionTimingFunction.js +0 -7
  331. package/src/plugins/translate.js +0 -16
  332. package/src/plugins/userSelect.js +0 -13
  333. package/src/plugins/verticalAlign.js +0 -15
  334. package/src/plugins/visibility.js +0 -11
  335. package/src/plugins/whitespace.js +0 -14
  336. package/src/plugins/width.js +0 -5
  337. package/src/plugins/wordBreak.js +0 -17
  338. package/src/plugins/zIndex.js +0 -5
  339. package/src/util/buildSelectorVariant.js +0 -21
  340. package/src/util/disposables.js +0 -22
  341. package/src/util/generateVariantFunction.js +0 -47
  342. package/src/util/increaseSpecificity.js +0 -3
  343. package/src/util/prefixNegativeModifiers.js +0 -9
  344. package/src/util/processPlugins.js +0 -165
  345. package/src/util/useMemo.js +0 -25
  346. package/src/util/usesCustomProperties.js +0 -14
  347. package/src/util/wrapWithVariants.js +0 -21
package/CHANGELOG.md CHANGED
@@ -13,12 +13,50 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13
13
  - Throw when trying to `@apply` the `group` class ([#4666](https://github.com/tailwindlabs/tailwindcss/pull/4666))
14
14
  - Remove dependency on `modern-normalize`, inline and consolidate with Preflight ([#5358](https://github.com/tailwindlabs/tailwindcss/pull/5358))
15
15
  - Enable extended color palette by default with updated color names ([#5384](https://github.com/tailwindlabs/tailwindcss/pull/5384))
16
+ - Move `vertical-align` values to config file instead of hard-coding ([#5487](https://github.com/tailwindlabs/tailwindcss/pull/5487))
16
17
 
17
18
  ### Added
18
19
 
19
20
  - Add native `aspect-ratio` utilities ([#5359](https://github.com/tailwindlabs/tailwindcss/pull/5359))
20
21
  - Unify config callback helpers into single object ([#5382](https://github.com/tailwindlabs/tailwindcss/pull/5382))
21
22
  - Preserve original color format when adding opacity whenever possible ([#5154](https://github.com/tailwindlabs/tailwindcss/pull/5154))
23
+ - Add `scroll-behavior` utilities ([#5388](https://github.com/tailwindlabs/tailwindcss/pull/5388))
24
+ - Add `border-hidden` utility ([#5485](https://github.com/tailwindlabs/tailwindcss/pull/5485))
25
+ - Add `align-sub` and `align-super` utilities by default ([#5486](https://github.com/tailwindlabs/tailwindcss/pull/5486))
26
+
27
+ ### Fixed
28
+
29
+ - Fix defining colors as functions when color opacity plugins are disabled ([#5470](https://github.com/tailwindlabs/tailwindcss/pull/5470))
30
+
31
+ ## [2.2.15] - 2021-09-10
32
+
33
+ ### Fixed
34
+
35
+ - Ensure using CLI without `-i` for input file continues to work even though deprecated ([#5464](https://github.com/tailwindlabs/tailwindcss/pull/5464))
36
+
37
+ ## [2.2.14] - 2021-09-08
38
+
39
+ ### Fixed
40
+
41
+ - Only use `@defaults` in JIT, switch back to `clean-css` in case there's any meaningful differences in the output ([bf248cb](https://github.com/tailwindlabs/tailwindcss/commit/bf248cb0de889d48854fbdd26536f4a492556efd))
42
+
43
+ ## [2.2.13] - 2021-09-08
44
+
45
+ ### Fixed
46
+
47
+ - Replace `clean-css` with `cssnano` for CDN builds to fix minified builds ([75cc3ca](https://github.com/tailwindlabs/tailwindcss/commit/75cc3ca305aedddc8a85f3df1a420fefad3fb5c4))
48
+
49
+ ## [2.2.12] - 2021-09-08
50
+
51
+ ### Fixed
52
+
53
+ - Ensure that divide utilities inject a default border color ([#5438](https://github.com/tailwindlabs/tailwindcss/pull/5438))
54
+
55
+ ## [2.2.11] - 2021-09-07
56
+
57
+ ### Fixed
58
+
59
+ - Rebundle to fix missing CLI peer dependencies
22
60
 
23
61
  ## [2.2.10] - 2021-09-06
24
62
 
@@ -43,13 +81,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
43
81
  ### Fixed
44
82
 
45
83
  - Improve accessibility of default link focus styles in Firefox ([#5082](https://github.com/tailwindlabs/tailwindcss/pull/5082))
46
- - JIT: Fix animation variants corrupting keyframes rules [#5223](https://github.com/tailwindlabs/tailwindcss/pull/5223)
47
- - JIT: Ignore escaped commas when splitting selectors to apply prefixes [#5239](https://github.com/tailwindlabs/tailwindcss/pull/5239/)
48
- - Nesting: Maintain PostCSS node sources when handling `@apply` [#5249](https://github.com/tailwindlabs/tailwindcss/pull/5249)
49
- - JIT: Fix support for animation lists [#5252](https://github.com/tailwindlabs/tailwindcss/pull/5252)
50
- - JIT: Fix arbitrary value support for `object-position` utilities [#5245](https://github.com/tailwindlabs/tailwindcss/pull/5245)
51
- - CLI: Abort watcher if stdin is closed to avoid zombie processes [#4997](https://github.com/tailwindlabs/tailwindcss/pull/4997)
52
- - JIT: Ignore arbitrary values with unbalanced brackets [#5293](https://github.com/tailwindlabs/tailwindcss/pull/5293)
84
+ - JIT: Fix animation variants corrupting keyframes rules ([#5223](https://github.com/tailwindlabs/tailwindcss/pull/5223))
85
+ - JIT: Ignore escaped commas when splitting selectors to apply prefixes ([#5239](https://github.com/tailwindlabs/tailwindcss/pull/5239/))
86
+ - Nesting: Maintain PostCSS node sources when handling `@apply` ([#5249](https://github.com/tailwindlabs/tailwindcss/pull/5249))
87
+ - JIT: Fix support for animation lists ([#5252](https://github.com/tailwindlabs/tailwindcss/pull/5252))
88
+ - JIT: Fix arbitrary value support for `object-position` utilities ([#5245](https://github.com/tailwindlabs/tailwindcss/pull/5245))
89
+ - CLI: Abort watcher if stdin is closed to avoid zombie processes ([#4997](https://github.com/tailwindlabs/tailwindcss/pull/4997))
90
+ - JIT: Ignore arbitrary values with unbalanced brackets ([#5293](https://github.com/tailwindlabs/tailwindcss/pull/5293))
53
91
 
54
92
  ## [2.2.7] - 2021-07-23
55
93
 
@@ -1542,7 +1580,12 @@ No release notes
1542
1580
 
1543
1581
  - Everything!
1544
1582
 
1545
- [unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.10...HEAD
1583
+ [unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.15...HEAD
1584
+ [2.2.15]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.14...v2.2.15
1585
+ [2.2.14]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.13...v2.2.14
1586
+ [2.2.13]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.12...v2.2.13
1587
+ [2.2.12]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.11...v2.2.12
1588
+ [2.2.11]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.10...v2.2.11
1546
1589
  [2.2.10]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.9...v2.2.10
1547
1590
  [2.2.9]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.8...v2.2.9
1548
1591
  [2.2.8]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.7...v2.2.8
package/colors.js CHANGED
@@ -1,9 +1,13 @@
1
+ const log = require('./lib/util/log').default
2
+
1
3
  let warned = []
2
4
 
3
5
  function warn({ version, from, to }) {
4
6
  if (!warned.includes(from)) {
5
- console.log(`warn - As of Tailwind CSS ${version}, \`${from}\` has been renamed to \`${to}\`.`)
6
- console.log('warn - Please update your color palette to eliminate this warning.')
7
+ log.warn([
8
+ `As of Tailwind CSS ${version}, \`${from}\` has been renamed to \`${to}\`.`,
9
+ 'Please update your color palette to eliminate this warning.',
10
+ ])
7
11
  warned.push(from)
8
12
  }
9
13
  }
package/lib/cli.js CHANGED
@@ -380,6 +380,7 @@ async function build() {
380
380
 
381
381
  if (!input && args['_'][1]) {
382
382
  console.error('[deprecation] Running tailwindcss without -i, please provide an input file.');
383
+ input = args['--input'] = args['_'][1];
383
384
  }
384
385
 
385
386
  if (input && !_fs.default.existsSync(input = _path.default.resolve(input))) {
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = ["preflight", "container", "accessibility", "pointerEvents", "visibility", "position", "inset", "isolation", "zIndex", "order", "gridColumn", "gridColumnStart", "gridColumnEnd", "gridRow", "gridRowStart", "gridRowEnd", "float", "clear", "margin", "boxSizing", "display", "aspectRatio", "height", "maxHeight", "minHeight", "width", "minWidth", "maxWidth", "flex", "flexShrink", "flexGrow", "tableLayout", "borderCollapse", "transformOrigin", "translate", "rotate", "skew", "scale", "transform", "animation", "cursor", "userSelect", "resize", "listStylePosition", "listStyleType", "appearance", "gridAutoColumns", "gridAutoFlow", "gridAutoRows", "gridTemplateColumns", "gridTemplateRows", "flexDirection", "flexWrap", "placeContent", "placeItems", "alignContent", "alignItems", "justifyContent", "justifyItems", "gap", "space", "divideWidth", "divideStyle", "divideColor", "divideOpacity", "placeSelf", "alignSelf", "justifySelf", "overflow", "overscrollBehavior", "textOverflow", "whitespace", "wordBreak", "borderRadius", "borderWidth", "borderStyle", "borderColor", "borderOpacity", "backgroundColor", "backgroundOpacity", "backgroundImage", "gradientColorStops", "boxDecorationBreak", "backgroundSize", "backgroundAttachment", "backgroundClip", "backgroundPosition", "backgroundRepeat", "backgroundOrigin", "fill", "stroke", "strokeWidth", "objectFit", "objectPosition", "padding", "textAlign", "verticalAlign", "fontFamily", "fontSize", "fontWeight", "textTransform", "fontStyle", "fontVariantNumeric", "lineHeight", "letterSpacing", "textColor", "textOpacity", "textDecoration", "fontSmoothing", "placeholderColor", "placeholderOpacity", "caretColor", "accentColor", "opacity", "backgroundBlendMode", "mixBlendMode", "boxShadow", "outline", "ringWidth", "ringColor", "ringOpacity", "ringOffsetWidth", "ringOffsetColor", "blur", "brightness", "contrast", "dropShadow", "grayscale", "hueRotate", "invert", "saturate", "sepia", "filter", "backdropBlur", "backdropBrightness", "backdropContrast", "backdropGrayscale", "backdropHueRotate", "backdropInvert", "backdropOpacity", "backdropSaturate", "backdropSepia", "backdropFilter", "transitionProperty", "transitionDelay", "transitionDuration", "transitionTimingFunction", "content"];
7
+ var _default = ["preflight", "container", "accessibility", "pointerEvents", "visibility", "position", "inset", "isolation", "zIndex", "order", "gridColumn", "gridColumnStart", "gridColumnEnd", "gridRow", "gridRowStart", "gridRowEnd", "float", "clear", "margin", "boxSizing", "display", "aspectRatio", "height", "maxHeight", "minHeight", "width", "minWidth", "maxWidth", "flex", "flexShrink", "flexGrow", "tableLayout", "borderCollapse", "transformOrigin", "translate", "rotate", "skew", "scale", "transform", "animation", "cursor", "userSelect", "resize", "listStylePosition", "listStyleType", "appearance", "columns", "gridAutoColumns", "gridAutoFlow", "gridAutoRows", "gridTemplateColumns", "gridTemplateRows", "flexDirection", "flexWrap", "placeContent", "placeItems", "alignContent", "alignItems", "justifyContent", "justifyItems", "gap", "space", "divideWidth", "divideStyle", "divideColor", "divideOpacity", "placeSelf", "alignSelf", "justifySelf", "overflow", "overscrollBehavior", "scrollBehavior", "textOverflow", "whitespace", "wordBreak", "borderRadius", "borderWidth", "borderStyle", "borderColor", "borderOpacity", "backgroundColor", "backgroundOpacity", "backgroundImage", "gradientColorStops", "boxDecorationBreak", "backgroundSize", "backgroundAttachment", "backgroundClip", "backgroundPosition", "backgroundRepeat", "backgroundOrigin", "fill", "stroke", "strokeWidth", "objectFit", "objectPosition", "padding", "textAlign", "textIndent", "verticalAlign", "fontFamily", "fontSize", "fontWeight", "textTransform", "fontStyle", "fontVariantNumeric", "lineHeight", "letterSpacing", "textColor", "textOpacity", "textDecoration", "fontSmoothing", "placeholderColor", "placeholderOpacity", "caretColor", "accentColor", "opacity", "backgroundBlendMode", "mixBlendMode", "boxShadow", "outline", "ringWidth", "ringColor", "ringOpacity", "ringOffsetWidth", "ringOffsetColor", "blur", "brightness", "contrast", "dropShadow", "grayscale", "hueRotate", "invert", "saturate", "sepia", "filter", "backdropBlur", "backdropBrightness", "backdropContrast", "backdropGrayscale", "backdropHueRotate", "backdropInvert", "backdropOpacity", "backdropSaturate", "backdropSepia", "backdropFilter", "transitionProperty", "transitionDelay", "transitionDuration", "transitionTimingFunction", "willChange", "content"];
8
8
  exports.default = _default;
@@ -3,18 +3,35 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.strokeWidth = exports.stroke = exports.fill = exports.backgroundOrigin = exports.backgroundRepeat = exports.backgroundPosition = exports.backgroundClip = exports.backgroundAttachment = exports.backgroundSize = exports.boxDecorationBreak = exports.gradientColorStops = exports.backgroundImage = exports.backgroundOpacity = exports.backgroundColor = exports.borderOpacity = exports.borderColor = exports.borderStyle = exports.borderWidth = exports.borderRadius = exports.wordBreak = exports.whitespace = exports.textOverflow = exports.scrollBehavior = exports.overscrollBehavior = exports.overflow = exports.justifySelf = exports.alignSelf = exports.placeSelf = exports.divideOpacity = exports.divideColor = exports.divideStyle = exports.divideWidth = exports.space = exports.gap = exports.justifyItems = exports.justifyContent = exports.alignItems = exports.alignContent = exports.placeItems = exports.placeContent = exports.flexWrap = exports.flexDirection = exports.gridTemplateRows = exports.gridTemplateColumns = exports.gridAutoRows = exports.gridAutoFlow = exports.gridAutoColumns = exports.columns = exports.appearance = exports.listStyleType = exports.listStylePosition = exports.resize = exports.userSelect = exports.cursor = exports.animation = exports.transform = exports.scale = exports.skew = exports.rotate = exports.translate = exports.transformOrigin = exports.borderCollapse = exports.tableLayout = exports.flexGrow = exports.flexShrink = exports.flex = exports.maxWidth = exports.minWidth = exports.width = exports.minHeight = exports.maxHeight = exports.height = exports.aspectRatio = exports.display = exports.boxSizing = exports.margin = exports.clear = exports.float = exports.gridRowEnd = exports.gridRowStart = exports.gridRow = exports.gridColumnEnd = exports.gridColumnStart = exports.gridColumn = exports.order = exports.zIndex = exports.isolation = exports.inset = exports.position = exports.visibility = exports.pointerEvents = exports.accessibility = exports.container = exports.preflight = exports.screenVariants = exports.darkVariants = exports.reducedMotionVariants = exports.directionVariants = exports.pseudoClassVariants = exports.pseudoElementVariants = void 0;
7
+ exports.content = exports.willChange = exports.transitionTimingFunction = exports.transitionDuration = exports.transitionDelay = exports.transitionProperty = exports.backdropFilter = exports.backdropSepia = exports.backdropSaturate = exports.backdropOpacity = exports.backdropInvert = exports.backdropHueRotate = exports.backdropGrayscale = exports.backdropContrast = exports.backdropBrightness = exports.backdropBlur = exports.filter = exports.sepia = exports.saturate = exports.invert = exports.hueRotate = exports.grayscale = exports.dropShadow = exports.contrast = exports.brightness = exports.blur = exports.ringOffsetColor = exports.ringOffsetWidth = exports.ringOpacity = exports.ringColor = exports.ringWidth = exports.outline = exports.boxShadow = exports.mixBlendMode = exports.backgroundBlendMode = exports.opacity = exports.accentColor = exports.caretColor = exports.placeholderOpacity = exports.placeholderColor = exports.fontSmoothing = exports.textDecoration = exports.textOpacity = exports.textColor = exports.letterSpacing = exports.lineHeight = exports.fontVariantNumeric = exports.fontStyle = exports.textTransform = exports.fontWeight = exports.fontSize = exports.fontFamily = exports.verticalAlign = exports.textIndent = exports.textAlign = exports.padding = exports.objectPosition = exports.objectFit = void 0;
8
+
9
+ var _fs = _interopRequireDefault(require("fs"));
7
10
 
8
11
  var _postcss = _interopRequireDefault(require("postcss"));
9
12
 
10
- var corePlugins = _interopRequireWildcard(require("./plugins"));
13
+ var _createUtilityPlugin = _interopRequireDefault(require("./util/createUtilityPlugin"));
11
14
 
12
15
  var _buildMediaQuery = _interopRequireDefault(require("./util/buildMediaQuery"));
13
16
 
14
17
  var _prefixSelector = _interopRequireDefault(require("./util/prefixSelector"));
15
18
 
19
+ var _parseAnimationValue = _interopRequireDefault(require("./util/parseAnimationValue"));
20
+
21
+ var _flattenColorPalette = _interopRequireDefault(require("./util/flattenColorPalette"));
22
+
23
+ var _withAlphaVariable = _interopRequireWildcard(require("./util/withAlphaVariable"));
24
+
25
+ var _toColorValue = _interopRequireDefault(require("./util/toColorValue"));
26
+
27
+ var _isPlainObject = _interopRequireDefault(require("./util/isPlainObject"));
28
+
29
+ var _transformThemeValue = _interopRequireDefault(require("./util/transformThemeValue"));
30
+
16
31
  var _pluginUtils = require("./util/pluginUtils");
17
32
 
33
+ var _package = _interopRequireDefault(require("../package.json"));
34
+
18
35
  var _log = _interopRequireDefault(require("./util/log"));
19
36
 
20
37
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -23,234 +40,2938 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
23
40
 
24
41
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
42
 
26
- var _default = {
27
- pseudoElementVariants: function ({
28
- config,
29
- addVariant
30
- }) {
31
- addVariant('first-letter', (0, _pluginUtils.transformAllSelectors)(selector => {
32
- return (0, _pluginUtils.updateAllClasses)(selector, (className, {
33
- withPseudo
34
- }) => {
35
- return withPseudo(`first-letter${config('separator')}${className}`, '::first-letter');
43
+ // Variant plugins
44
+ let pseudoElementVariants = ({
45
+ config,
46
+ addVariant
47
+ }) => {
48
+ addVariant('first-letter', (0, _pluginUtils.transformAllSelectors)(selector => {
49
+ return (0, _pluginUtils.updateAllClasses)(selector, (className, {
50
+ withPseudo
51
+ }) => {
52
+ return withPseudo(`first-letter${config('separator')}${className}`, '::first-letter');
53
+ });
54
+ }));
55
+ addVariant('first-line', (0, _pluginUtils.transformAllSelectors)(selector => {
56
+ return (0, _pluginUtils.updateAllClasses)(selector, (className, {
57
+ withPseudo
58
+ }) => {
59
+ return withPseudo(`first-line${config('separator')}${className}`, '::first-line');
60
+ });
61
+ }));
62
+ addVariant('marker', [(0, _pluginUtils.transformAllSelectors)(selector => {
63
+ let variantSelector = (0, _pluginUtils.updateAllClasses)(selector, className => {
64
+ return `marker${config('separator')}${className}`;
65
+ });
66
+ return `${variantSelector} *::marker`;
67
+ }), (0, _pluginUtils.transformAllSelectors)(selector => {
68
+ return (0, _pluginUtils.updateAllClasses)(selector, (className, {
69
+ withPseudo
70
+ }) => {
71
+ return withPseudo(`marker${config('separator')}${className}`, '::marker');
72
+ });
73
+ })]);
74
+ addVariant('selection', [(0, _pluginUtils.transformAllSelectors)(selector => {
75
+ let variantSelector = (0, _pluginUtils.updateAllClasses)(selector, className => {
76
+ return `selection${config('separator')}${className}`;
77
+ });
78
+ return `${variantSelector} *::selection`;
79
+ }), (0, _pluginUtils.transformAllSelectors)(selector => {
80
+ return (0, _pluginUtils.updateAllClasses)(selector, (className, {
81
+ withPseudo
82
+ }) => {
83
+ return withPseudo(`selection${config('separator')}${className}`, '::selection');
84
+ });
85
+ })]);
86
+ addVariant('before', (0, _pluginUtils.transformAllSelectors)(selector => {
87
+ return (0, _pluginUtils.updateAllClasses)(selector, (className, {
88
+ withPseudo
89
+ }) => {
90
+ return withPseudo(`before${config('separator')}${className}`, '::before');
91
+ });
92
+ }, {
93
+ withRule: rule => {
94
+ let foundContent = false;
95
+ rule.walkDecls('content', () => {
96
+ foundContent = true;
36
97
  });
37
- }));
38
- addVariant('first-line', (0, _pluginUtils.transformAllSelectors)(selector => {
39
- return (0, _pluginUtils.updateAllClasses)(selector, (className, {
40
- withPseudo
41
- }) => {
42
- return withPseudo(`first-line${config('separator')}${className}`, '::first-line');
98
+
99
+ if (!foundContent) {
100
+ rule.prepend(_postcss.default.decl({
101
+ prop: 'content',
102
+ value: '""'
103
+ }));
104
+ }
105
+ }
106
+ }));
107
+ addVariant('after', (0, _pluginUtils.transformAllSelectors)(selector => {
108
+ return (0, _pluginUtils.updateAllClasses)(selector, (className, {
109
+ withPseudo
110
+ }) => {
111
+ return withPseudo(`after${config('separator')}${className}`, '::after');
112
+ });
113
+ }, {
114
+ withRule: rule => {
115
+ let foundContent = false;
116
+ rule.walkDecls('content', () => {
117
+ foundContent = true;
43
118
  });
119
+
120
+ if (!foundContent) {
121
+ rule.prepend(_postcss.default.decl({
122
+ prop: 'content',
123
+ value: '""'
124
+ }));
125
+ }
126
+ }
127
+ }));
128
+ };
129
+
130
+ exports.pseudoElementVariants = pseudoElementVariants;
131
+
132
+ let pseudoClassVariants = ({
133
+ config,
134
+ addVariant
135
+ }) => {
136
+ let pseudoVariants = [// Positional
137
+ ['first', 'first-child'], ['last', 'last-child'], ['only', 'only-child'], ['odd', 'nth-child(odd)'], ['even', 'nth-child(even)'], 'first-of-type', 'last-of-type', 'only-of-type', // State
138
+ 'visited', 'target', // Forms
139
+ 'default', 'checked', 'indeterminate', 'placeholder-shown', 'autofill', 'required', 'valid', 'invalid', 'in-range', 'out-of-range', 'read-only', // Content
140
+ 'empty', // Interactive
141
+ 'focus-within', 'hover', 'focus', 'focus-visible', 'active', 'disabled'];
142
+
143
+ for (let variant of pseudoVariants) {
144
+ let [variantName, state] = Array.isArray(variant) ? variant : [variant, variant];
145
+ addVariant(variantName, (0, _pluginUtils.transformAllClasses)((className, {
146
+ withPseudo
147
+ }) => {
148
+ return withPseudo(`${variantName}${config('separator')}${className}`, `:${state}`);
44
149
  }));
45
- addVariant('marker', [(0, _pluginUtils.transformAllSelectors)(selector => {
46
- let variantSelector = (0, _pluginUtils.updateAllClasses)(selector, className => {
47
- return `marker${config('separator')}${className}`;
48
- });
49
- return `${variantSelector} *::marker`;
50
- }), (0, _pluginUtils.transformAllSelectors)(selector => {
51
- return (0, _pluginUtils.updateAllClasses)(selector, (className, {
52
- withPseudo
53
- }) => {
54
- return withPseudo(`marker${config('separator')}${className}`, '::marker');
55
- });
56
- })]);
57
- addVariant('selection', [(0, _pluginUtils.transformAllSelectors)(selector => {
150
+ }
151
+
152
+ let groupMarker = (0, _prefixSelector.default)(config('prefix'), '.group');
153
+
154
+ for (let variant of pseudoVariants) {
155
+ let [variantName, state] = Array.isArray(variant) ? variant : [variant, variant];
156
+ let groupVariantName = `group-${variantName}`;
157
+ addVariant(groupVariantName, (0, _pluginUtils.transformAllSelectors)(selector => {
58
158
  let variantSelector = (0, _pluginUtils.updateAllClasses)(selector, className => {
59
- return `selection${config('separator')}${className}`;
60
- });
61
- return `${variantSelector} *::selection`;
62
- }), (0, _pluginUtils.transformAllSelectors)(selector => {
63
- return (0, _pluginUtils.updateAllClasses)(selector, (className, {
64
- withPseudo
65
- }) => {
66
- return withPseudo(`selection${config('separator')}${className}`, '::selection');
159
+ if (`.${className}` === groupMarker) return className;
160
+ return `${groupVariantName}${config('separator')}${className}`;
67
161
  });
68
- })]);
69
- addVariant('before', (0, _pluginUtils.transformAllSelectors)(selector => {
70
- return (0, _pluginUtils.updateAllClasses)(selector, (className, {
71
- withPseudo
72
- }) => {
73
- return withPseudo(`before${config('separator')}${className}`, '::before');
74
- });
75
- }, {
76
- withRule: rule => {
77
- let foundContent = false;
78
- rule.walkDecls('content', () => {
79
- foundContent = true;
80
- });
81
-
82
- if (!foundContent) {
83
- rule.prepend(_postcss.default.decl({
84
- prop: 'content',
85
- value: '""'
86
- }));
87
- }
162
+
163
+ if (variantSelector === selector) {
164
+ return null;
88
165
  }
166
+
167
+ return (0, _pluginUtils.applyPseudoToMarker)(variantSelector, groupMarker, state, (marker, selector) => `${marker} ${selector}`);
89
168
  }));
90
- addVariant('after', (0, _pluginUtils.transformAllSelectors)(selector => {
91
- return (0, _pluginUtils.updateAllClasses)(selector, (className, {
92
- withPseudo
93
- }) => {
94
- return withPseudo(`after${config('separator')}${className}`, '::after');
169
+ }
170
+
171
+ let peerMarker = (0, _prefixSelector.default)(config('prefix'), '.peer');
172
+
173
+ for (let variant of pseudoVariants) {
174
+ let [variantName, state] = Array.isArray(variant) ? variant : [variant, variant];
175
+ let peerVariantName = `peer-${variantName}`;
176
+ addVariant(peerVariantName, (0, _pluginUtils.transformAllSelectors)(selector => {
177
+ let variantSelector = (0, _pluginUtils.updateAllClasses)(selector, className => {
178
+ if (`.${className}` === peerMarker) return className;
179
+ return `${peerVariantName}${config('separator')}${className}`;
95
180
  });
96
- }, {
97
- withRule: rule => {
98
- let foundContent = false;
99
- rule.walkDecls('content', () => {
100
- foundContent = true;
101
- });
102
-
103
- if (!foundContent) {
104
- rule.prepend(_postcss.default.decl({
105
- prop: 'content',
106
- value: '""'
107
- }));
108
- }
181
+
182
+ if (variantSelector === selector) {
183
+ return null;
109
184
  }
185
+
186
+ return (0, _pluginUtils.applyPseudoToMarker)(variantSelector, peerMarker, state, (marker, selector) => selector.trim().startsWith('~') ? `${marker}${selector}` : `${marker} ~ ${selector}`);
110
187
  }));
111
- },
112
- pseudoClassVariants: function ({
113
- config,
114
- addVariant
115
- }) {
116
- let pseudoVariants = [// Positional
117
- ['first', 'first-child'], ['last', 'last-child'], ['only', 'only-child'], ['odd', 'nth-child(odd)'], ['even', 'nth-child(even)'], 'first-of-type', 'last-of-type', 'only-of-type', // State
118
- 'visited', 'target', // Forms
119
- 'default', 'checked', 'indeterminate', 'placeholder-shown', 'autofill', 'required', 'valid', 'invalid', 'in-range', 'out-of-range', 'read-only', // Content
120
- 'empty', // Interactive
121
- 'focus-within', 'hover', 'focus', 'focus-visible', 'active', 'disabled'];
122
-
123
- for (let variant of pseudoVariants) {
124
- let [variantName, state] = Array.isArray(variant) ? variant : [variant, variant];
125
- addVariant(variantName, (0, _pluginUtils.transformAllClasses)((className, {
126
- withPseudo
127
- }) => {
128
- return withPseudo(`${variantName}${config('separator')}${className}`, `:${state}`);
129
- }));
130
- }
131
-
132
- let groupMarker = (0, _prefixSelector.default)(config('prefix'), '.group');
133
-
134
- for (let variant of pseudoVariants) {
135
- let [variantName, state] = Array.isArray(variant) ? variant : [variant, variant];
136
- let groupVariantName = `group-${variantName}`;
137
- addVariant(groupVariantName, (0, _pluginUtils.transformAllSelectors)(selector => {
138
- let variantSelector = (0, _pluginUtils.updateAllClasses)(selector, className => {
139
- if (`.${className}` === groupMarker) return className;
140
- return `${groupVariantName}${config('separator')}${className}`;
141
- });
142
-
143
- if (variantSelector === selector) {
144
- return null;
145
- }
188
+ }
189
+ };
146
190
 
147
- return (0, _pluginUtils.applyPseudoToMarker)(variantSelector, groupMarker, state, (marker, selector) => `${marker} ${selector}`);
148
- }));
149
- }
191
+ exports.pseudoClassVariants = pseudoClassVariants;
150
192
 
151
- let peerMarker = (0, _prefixSelector.default)(config('prefix'), '.peer');
193
+ let directionVariants = ({
194
+ config,
195
+ addVariant
196
+ }) => {
197
+ addVariant('ltr', (0, _pluginUtils.transformAllSelectors)(selector => `[dir="ltr"] ${(0, _pluginUtils.updateAllClasses)(selector, className => `ltr${config('separator')}${className}`)}`));
198
+ addVariant('rtl', (0, _pluginUtils.transformAllSelectors)(selector => `[dir="rtl"] ${(0, _pluginUtils.updateAllClasses)(selector, className => `rtl${config('separator')}${className}`)}`));
199
+ };
152
200
 
153
- for (let variant of pseudoVariants) {
154
- let [variantName, state] = Array.isArray(variant) ? variant : [variant, variant];
155
- let peerVariantName = `peer-${variantName}`;
156
- addVariant(peerVariantName, (0, _pluginUtils.transformAllSelectors)(selector => {
157
- let variantSelector = (0, _pluginUtils.updateAllClasses)(selector, className => {
158
- if (`.${className}` === peerMarker) return className;
159
- return `${peerVariantName}${config('separator')}${className}`;
160
- });
201
+ exports.directionVariants = directionVariants;
161
202
 
162
- if (variantSelector === selector) {
163
- return null;
164
- }
203
+ let reducedMotionVariants = ({
204
+ config,
205
+ addVariant
206
+ }) => {
207
+ addVariant('motion-safe', (0, _pluginUtils.transformLastClasses)(className => {
208
+ return `motion-safe${config('separator')}${className}`;
209
+ }, {
210
+ wrap: () => _postcss.default.atRule({
211
+ name: 'media',
212
+ params: '(prefers-reduced-motion: no-preference)'
213
+ })
214
+ }));
215
+ addVariant('motion-reduce', (0, _pluginUtils.transformLastClasses)(className => {
216
+ return `motion-reduce${config('separator')}${className}`;
217
+ }, {
218
+ wrap: () => _postcss.default.atRule({
219
+ name: 'media',
220
+ params: '(prefers-reduced-motion: reduce)'
221
+ })
222
+ }));
223
+ };
165
224
 
166
- return (0, _pluginUtils.applyPseudoToMarker)(variantSelector, peerMarker, state, (marker, selector) => selector.trim().startsWith('~') ? `${marker}${selector}` : `${marker} ~ ${selector}`);
167
- }));
168
- }
169
- },
170
- directionVariants: function ({
171
- config,
172
- addVariant
173
- }) {
174
- addVariant('ltr', (0, _pluginUtils.transformAllSelectors)(selector => `[dir="ltr"] ${(0, _pluginUtils.updateAllClasses)(selector, className => `ltr${config('separator')}${className}`)}`));
175
- addVariant('rtl', (0, _pluginUtils.transformAllSelectors)(selector => `[dir="rtl"] ${(0, _pluginUtils.updateAllClasses)(selector, className => `rtl${config('separator')}${className}`)}`));
176
- },
177
- reducedMotionVariants: function ({
178
- config,
179
- addVariant
180
- }) {
181
- addVariant('motion-safe', (0, _pluginUtils.transformLastClasses)(className => {
182
- return `motion-safe${config('separator')}${className}`;
225
+ exports.reducedMotionVariants = reducedMotionVariants;
226
+
227
+ let darkVariants = ({
228
+ config,
229
+ addVariant
230
+ }) => {
231
+ let mode = config('darkMode', 'media');
232
+
233
+ if (mode === false) {
234
+ mode = 'media';
235
+
236
+ _log.default.warn(['`darkMode` is set to `false` in your config.', 'This will behave just like the `media` value.']);
237
+ }
238
+
239
+ if (mode === 'class') {
240
+ addVariant('dark', (0, _pluginUtils.transformAllSelectors)(selector => {
241
+ let variantSelector = (0, _pluginUtils.updateLastClasses)(selector, className => {
242
+ return `dark${config('separator')}${className}`;
243
+ });
244
+
245
+ if (variantSelector === selector) {
246
+ return null;
247
+ }
248
+
249
+ let darkSelector = (0, _prefixSelector.default)(config('prefix'), `.dark`);
250
+ return `${darkSelector} ${variantSelector}`;
251
+ }));
252
+ } else if (mode === 'media') {
253
+ addVariant('dark', (0, _pluginUtils.transformLastClasses)(className => {
254
+ return `dark${config('separator')}${className}`;
183
255
  }, {
184
256
  wrap: () => _postcss.default.atRule({
185
257
  name: 'media',
186
- params: '(prefers-reduced-motion: no-preference)'
258
+ params: '(prefers-color-scheme: dark)'
187
259
  })
188
260
  }));
189
- addVariant('motion-reduce', (0, _pluginUtils.transformLastClasses)(className => {
190
- return `motion-reduce${config('separator')}${className}`;
261
+ }
262
+ };
263
+
264
+ exports.darkVariants = darkVariants;
265
+
266
+ let screenVariants = ({
267
+ config,
268
+ theme,
269
+ addVariant
270
+ }) => {
271
+ for (let screen in theme('screens')) {
272
+ let size = theme('screens')[screen];
273
+ let query = (0, _buildMediaQuery.default)(size);
274
+ addVariant(screen, (0, _pluginUtils.transformLastClasses)(className => {
275
+ return `${screen}${config('separator')}${className}`;
191
276
  }, {
192
277
  wrap: () => _postcss.default.atRule({
193
278
  name: 'media',
194
- params: '(prefers-reduced-motion: reduce)'
279
+ params: query
195
280
  })
196
281
  }));
197
- },
198
- darkVariants: function ({
199
- config,
200
- addVariant
282
+ }
283
+ }; // Actual plugins
284
+
285
+
286
+ exports.screenVariants = screenVariants;
287
+
288
+ let preflight = ({
289
+ addBase
290
+ }) => {
291
+ let preflightStyles = _postcss.default.parse(_fs.default.readFileSync(`${__dirname}/css/preflight.css`, 'utf8'));
292
+
293
+ addBase([_postcss.default.comment({
294
+ text: `! tailwindcss v${_package.default.version} | MIT License | https://tailwindcss.com`
295
+ }), ...preflightStyles.nodes]);
296
+ };
297
+
298
+ exports.preflight = preflight;
299
+
300
+ let container = (() => {
301
+ function extractMinWidths(breakpoints) {
302
+ return Object.values(breakpoints !== null && breakpoints !== void 0 ? breakpoints : {}).flatMap(breakpoints => {
303
+ if (typeof breakpoints === 'string') {
304
+ breakpoints = {
305
+ min: breakpoints
306
+ };
307
+ }
308
+
309
+ if (!Array.isArray(breakpoints)) {
310
+ breakpoints = [breakpoints];
311
+ }
312
+
313
+ return breakpoints.filter(breakpoint => {
314
+ var _breakpoint$hasOwnPro;
315
+
316
+ return (breakpoint === null || breakpoint === void 0 ? void 0 : (_breakpoint$hasOwnPro = breakpoint.hasOwnProperty) === null || _breakpoint$hasOwnPro === void 0 ? void 0 : _breakpoint$hasOwnPro.call(breakpoint, 'min')) || (breakpoint === null || breakpoint === void 0 ? void 0 : breakpoint.hasOwnProperty('min-width'));
317
+ }).map(breakpoint => {
318
+ var _breakpoint$minWidth;
319
+
320
+ return (_breakpoint$minWidth = breakpoint['min-width']) !== null && _breakpoint$minWidth !== void 0 ? _breakpoint$minWidth : breakpoint.min;
321
+ });
322
+ });
323
+ }
324
+
325
+ function mapMinWidthsToPadding(minWidths, screens, paddings) {
326
+ if (typeof paddings === 'undefined') {
327
+ return [];
328
+ }
329
+
330
+ if (!(typeof paddings === 'object' && paddings !== null)) {
331
+ return [{
332
+ screen: 'DEFAULT',
333
+ minWidth: 0,
334
+ padding: paddings
335
+ }];
336
+ }
337
+
338
+ let mapping = [];
339
+
340
+ if (paddings.DEFAULT) {
341
+ mapping.push({
342
+ screen: 'DEFAULT',
343
+ minWidth: 0,
344
+ padding: paddings.DEFAULT
345
+ });
346
+ }
347
+
348
+ for (let minWidth of minWidths) {
349
+ for (let [screen, value] of Object.entries(screens)) {
350
+ let screenMinWidth = typeof value === 'object' && value !== null ? value.min || value['min-width'] : value;
351
+
352
+ if (`${screenMinWidth}` === `${minWidth}`) {
353
+ mapping.push({
354
+ screen,
355
+ minWidth,
356
+ padding: paddings[screen]
357
+ });
358
+ }
359
+ }
360
+ }
361
+
362
+ return mapping;
363
+ }
364
+
365
+ return function ({
366
+ addComponents,
367
+ theme
201
368
  }) {
202
- let mode = config('darkMode', 'media');
369
+ let screens = theme('container.screens', theme('screens'));
370
+ let minWidths = extractMinWidths(screens);
371
+ let paddings = mapMinWidthsToPadding(minWidths, screens, theme('container.padding'));
372
+
373
+ let generatePaddingFor = minWidth => {
374
+ let paddingConfig = paddings.find(padding => `${padding.minWidth}` === `${minWidth}`);
375
+
376
+ if (!paddingConfig) {
377
+ return {};
378
+ }
379
+
380
+ return {
381
+ paddingRight: paddingConfig.padding,
382
+ paddingLeft: paddingConfig.padding
383
+ };
384
+ };
385
+
386
+ let atRules = Array.from(new Set(minWidths.slice().sort((a, z) => parseInt(a) - parseInt(z)))).map(minWidth => ({
387
+ [`@media (min-width: ${minWidth})`]: {
388
+ '.container': {
389
+ 'max-width': minWidth,
390
+ ...generatePaddingFor(minWidth)
391
+ }
392
+ }
393
+ }));
394
+ addComponents([{
395
+ '.container': Object.assign({
396
+ width: '100%'
397
+ }, theme('container.center', false) ? {
398
+ marginRight: 'auto',
399
+ marginLeft: 'auto'
400
+ } : {}, generatePaddingFor(0))
401
+ }, ...atRules]);
402
+ };
403
+ })();
404
+
405
+ exports.container = container;
406
+
407
+ let accessibility = ({
408
+ addUtilities
409
+ }) => {
410
+ addUtilities({
411
+ '.sr-only': {
412
+ position: 'absolute',
413
+ width: '1px',
414
+ height: '1px',
415
+ padding: '0',
416
+ margin: '-1px',
417
+ overflow: 'hidden',
418
+ clip: 'rect(0, 0, 0, 0)',
419
+ whiteSpace: 'nowrap',
420
+ borderWidth: '0'
421
+ },
422
+ '.not-sr-only': {
423
+ position: 'static',
424
+ width: 'auto',
425
+ height: 'auto',
426
+ padding: '0',
427
+ margin: '0',
428
+ overflow: 'visible',
429
+ clip: 'auto',
430
+ whiteSpace: 'normal'
431
+ }
432
+ });
433
+ };
434
+
435
+ exports.accessibility = accessibility;
436
+
437
+ let pointerEvents = ({
438
+ addUtilities
439
+ }) => {
440
+ addUtilities({
441
+ '.pointer-events-none': {
442
+ 'pointer-events': 'none'
443
+ },
444
+ '.pointer-events-auto': {
445
+ 'pointer-events': 'auto'
446
+ }
447
+ });
448
+ };
449
+
450
+ exports.pointerEvents = pointerEvents;
451
+
452
+ let visibility = ({
453
+ addUtilities
454
+ }) => {
455
+ addUtilities({
456
+ '.visible': {
457
+ visibility: 'visible'
458
+ },
459
+ '.invisible': {
460
+ visibility: 'hidden'
461
+ }
462
+ });
463
+ };
464
+
465
+ exports.visibility = visibility;
466
+
467
+ let position = ({
468
+ addUtilities
469
+ }) => {
470
+ addUtilities({
471
+ '.static': {
472
+ position: 'static'
473
+ },
474
+ '.fixed': {
475
+ position: 'fixed'
476
+ },
477
+ '.absolute': {
478
+ position: 'absolute'
479
+ },
480
+ '.relative': {
481
+ position: 'relative'
482
+ },
483
+ '.sticky': {
484
+ position: 'sticky'
485
+ }
486
+ });
487
+ };
488
+
489
+ exports.position = position;
490
+
491
+ let inset = ({
492
+ matchUtilities,
493
+ theme
494
+ }) => {
495
+ let options = {
496
+ values: theme('inset'),
497
+ type: 'any'
498
+ };
499
+ matchUtilities({
500
+ inset: value => ({
501
+ top: value,
502
+ right: value,
503
+ bottom: value,
504
+ left: value
505
+ })
506
+ }, options);
507
+ matchUtilities({
508
+ 'inset-x': value => ({
509
+ left: value,
510
+ right: value
511
+ }),
512
+ 'inset-y': value => ({
513
+ top: value,
514
+ bottom: value
515
+ })
516
+ }, options);
517
+ matchUtilities({
518
+ top: top => ({
519
+ top
520
+ }),
521
+ right: right => ({
522
+ right
523
+ }),
524
+ bottom: bottom => ({
525
+ bottom
526
+ }),
527
+ left: left => ({
528
+ left
529
+ })
530
+ }, options);
531
+ };
532
+
533
+ exports.inset = inset;
534
+
535
+ let isolation = ({
536
+ addUtilities
537
+ }) => {
538
+ addUtilities({
539
+ '.isolate': {
540
+ isolation: 'isolate'
541
+ },
542
+ '.isolation-auto': {
543
+ isolation: 'auto'
544
+ }
545
+ });
546
+ };
547
+
548
+ exports.isolation = isolation;
549
+ let zIndex = (0, _createUtilityPlugin.default)('zIndex', [['z', ['zIndex']]]);
550
+ exports.zIndex = zIndex;
551
+ let order = (0, _createUtilityPlugin.default)('order');
552
+ exports.order = order;
553
+ let gridColumn = (0, _createUtilityPlugin.default)('gridColumn', [['col', ['gridColumn']]]);
554
+ exports.gridColumn = gridColumn;
555
+ let gridColumnStart = (0, _createUtilityPlugin.default)('gridColumnStart', [['col-start', ['gridColumnStart']]]);
556
+ exports.gridColumnStart = gridColumnStart;
557
+ let gridColumnEnd = (0, _createUtilityPlugin.default)('gridColumnEnd', [['col-end', ['gridColumnEnd']]]);
558
+ exports.gridColumnEnd = gridColumnEnd;
559
+ let gridRow = (0, _createUtilityPlugin.default)('gridRow', [['row', ['gridRow']]]);
560
+ exports.gridRow = gridRow;
561
+ let gridRowStart = (0, _createUtilityPlugin.default)('gridRowStart', [['row-start', ['gridRowStart']]]);
562
+ exports.gridRowStart = gridRowStart;
563
+ let gridRowEnd = (0, _createUtilityPlugin.default)('gridRowEnd', [['row-end', ['gridRowEnd']]]);
564
+ exports.gridRowEnd = gridRowEnd;
565
+
566
+ let float = ({
567
+ addUtilities
568
+ }) => {
569
+ addUtilities({
570
+ '.float-right': {
571
+ float: 'right'
572
+ },
573
+ '.float-left': {
574
+ float: 'left'
575
+ },
576
+ '.float-none': {
577
+ float: 'none'
578
+ }
579
+ });
580
+ };
581
+
582
+ exports.float = float;
583
+
584
+ let clear = ({
585
+ addUtilities
586
+ }) => {
587
+ addUtilities({
588
+ '.clear-left': {
589
+ clear: 'left'
590
+ },
591
+ '.clear-right': {
592
+ clear: 'right'
593
+ },
594
+ '.clear-both': {
595
+ clear: 'both'
596
+ },
597
+ '.clear-none': {
598
+ clear: 'none'
599
+ }
600
+ });
601
+ };
602
+
603
+ exports.clear = clear;
604
+ let margin = (0, _createUtilityPlugin.default)('margin', [['m', ['margin']], [['mx', ['margin-left', 'margin-right']], ['my', ['margin-top', 'margin-bottom']]], [['mt', ['margin-top']], ['mr', ['margin-right']], ['mb', ['margin-bottom']], ['ml', ['margin-left']]]]);
605
+ exports.margin = margin;
606
+
607
+ let boxSizing = ({
608
+ addUtilities
609
+ }) => {
610
+ addUtilities({
611
+ '.box-border': {
612
+ 'box-sizing': 'border-box'
613
+ },
614
+ '.box-content': {
615
+ 'box-sizing': 'content-box'
616
+ }
617
+ });
618
+ };
619
+
620
+ exports.boxSizing = boxSizing;
621
+
622
+ let display = ({
623
+ addUtilities
624
+ }) => {
625
+ addUtilities({
626
+ '.block': {
627
+ display: 'block'
628
+ },
629
+ '.inline-block': {
630
+ display: 'inline-block'
631
+ },
632
+ '.inline': {
633
+ display: 'inline'
634
+ },
635
+ '.flex': {
636
+ display: 'flex'
637
+ },
638
+ '.inline-flex': {
639
+ display: 'inline-flex'
640
+ },
641
+ '.table': {
642
+ display: 'table'
643
+ },
644
+ '.inline-table': {
645
+ display: 'inline-table'
646
+ },
647
+ '.table-caption': {
648
+ display: 'table-caption'
649
+ },
650
+ '.table-cell': {
651
+ display: 'table-cell'
652
+ },
653
+ '.table-column': {
654
+ display: 'table-column'
655
+ },
656
+ '.table-column-group': {
657
+ display: 'table-column-group'
658
+ },
659
+ '.table-footer-group': {
660
+ display: 'table-footer-group'
661
+ },
662
+ '.table-header-group': {
663
+ display: 'table-header-group'
664
+ },
665
+ '.table-row-group': {
666
+ display: 'table-row-group'
667
+ },
668
+ '.table-row': {
669
+ display: 'table-row'
670
+ },
671
+ '.flow-root': {
672
+ display: 'flow-root'
673
+ },
674
+ '.grid': {
675
+ display: 'grid'
676
+ },
677
+ '.inline-grid': {
678
+ display: 'inline-grid'
679
+ },
680
+ '.contents': {
681
+ display: 'contents'
682
+ },
683
+ '.list-item': {
684
+ display: 'list-item'
685
+ },
686
+ '.hidden': {
687
+ display: 'none'
688
+ }
689
+ });
690
+ };
691
+
692
+ exports.display = display;
693
+ let aspectRatio = (0, _createUtilityPlugin.default)('aspectRatio', [['aspect', ['aspect-ratio']]]);
694
+ exports.aspectRatio = aspectRatio;
695
+ let height = (0, _createUtilityPlugin.default)('height', [['h', ['height']]]);
696
+ exports.height = height;
697
+ let maxHeight = (0, _createUtilityPlugin.default)('maxHeight', [['max-h', ['maxHeight']]]);
698
+ exports.maxHeight = maxHeight;
699
+ let minHeight = (0, _createUtilityPlugin.default)('minHeight', [['min-h', ['minHeight']]]);
700
+ exports.minHeight = minHeight;
701
+ let width = (0, _createUtilityPlugin.default)('width', [['w', ['width']]]);
702
+ exports.width = width;
703
+ let minWidth = (0, _createUtilityPlugin.default)('minWidth', [['min-w', ['minWidth']]]);
704
+ exports.minWidth = minWidth;
705
+ let maxWidth = (0, _createUtilityPlugin.default)('maxWidth', [['max-w', ['maxWidth']]]);
706
+ exports.maxWidth = maxWidth;
707
+ let flex = (0, _createUtilityPlugin.default)('flex');
708
+ exports.flex = flex;
709
+ let flexShrink = (0, _createUtilityPlugin.default)('flexShrink', [['flex-shrink', ['flex-shrink']]]);
710
+ exports.flexShrink = flexShrink;
711
+ let flexGrow = (0, _createUtilityPlugin.default)('flexGrow', [['flex-grow', ['flex-grow']]]);
712
+ exports.flexGrow = flexGrow;
713
+
714
+ let tableLayout = ({
715
+ addUtilities
716
+ }) => {
717
+ addUtilities({
718
+ '.table-auto': {
719
+ 'table-layout': 'auto'
720
+ },
721
+ '.table-fixed': {
722
+ 'table-layout': 'fixed'
723
+ }
724
+ });
725
+ };
726
+
727
+ exports.tableLayout = tableLayout;
728
+
729
+ let borderCollapse = ({
730
+ addUtilities
731
+ }) => {
732
+ addUtilities({
733
+ '.border-collapse': {
734
+ 'border-collapse': 'collapse'
735
+ },
736
+ '.border-separate': {
737
+ 'border-collapse': 'separate'
738
+ }
739
+ });
740
+ };
203
741
 
204
- if (mode === false) {
205
- mode = 'media';
742
+ exports.borderCollapse = borderCollapse;
743
+ let transformOrigin = (0, _createUtilityPlugin.default)('transformOrigin', [['origin', ['transformOrigin']]]);
744
+ exports.transformOrigin = transformOrigin;
745
+ let translate = (0, _createUtilityPlugin.default)('translate', [[['translate-x', [['@defaults transform', {}], '--tw-translate-x', ['transform', 'var(--tw-transform)']]], ['translate-y', [['@defaults transform', {}], '--tw-translate-y', ['transform', 'var(--tw-transform)']]]]]);
746
+ exports.translate = translate;
747
+ let rotate = (0, _createUtilityPlugin.default)('rotate', [['rotate', [['@defaults transform', {}], '--tw-rotate', ['transform', 'var(--tw-transform)']]]]);
748
+ exports.rotate = rotate;
749
+ let skew = (0, _createUtilityPlugin.default)('skew', [[['skew-x', [['@defaults transform', {}], '--tw-skew-x', ['transform', 'var(--tw-transform)']]], ['skew-y', [['@defaults transform', {}], '--tw-skew-y', ['transform', 'var(--tw-transform)']]]]]);
750
+ exports.skew = skew;
751
+ let scale = (0, _createUtilityPlugin.default)('scale', [['scale', [['@defaults transform', {}], '--tw-scale-x', '--tw-scale-y', ['transform', 'var(--tw-transform)']]], [['scale-x', [['@defaults transform', {}], '--tw-scale-x', ['transform', 'var(--tw-transform)']]], ['scale-y', [['@defaults transform', {}], '--tw-scale-y', ['transform', 'var(--tw-transform)']]]]]);
752
+ exports.scale = scale;
206
753
 
207
- _log.default.warn(['`darkMode` is set to `false` in your config.', 'This will behave just like the `media` value.']);
754
+ let transform = ({
755
+ addBase,
756
+ addUtilities
757
+ }) => {
758
+ addBase({
759
+ '@defaults transform': {
760
+ '--tw-translate-x': '0',
761
+ '--tw-translate-y': '0',
762
+ '--tw-rotate': '0',
763
+ '--tw-skew-x': '0',
764
+ '--tw-skew-y': '0',
765
+ '--tw-scale-x': '1',
766
+ '--tw-scale-y': '1',
767
+ '--tw-transform': ['translateX(var(--tw-translate-x))', 'translateY(var(--tw-translate-y))', 'rotate(var(--tw-rotate))', 'skewX(var(--tw-skew-x))', 'skewY(var(--tw-skew-y))', 'scaleX(var(--tw-scale-x))', 'scaleY(var(--tw-scale-y))'].join(' ')
768
+ }
769
+ });
770
+ addUtilities({
771
+ '.transform': {
772
+ '@defaults transform': {},
773
+ transform: 'var(--tw-transform)'
774
+ },
775
+ '.transform-cpu': {
776
+ '--tw-transform': ['translateX(var(--tw-translate-x))', 'translateY(var(--tw-translate-y))', 'rotate(var(--tw-rotate))', 'skewX(var(--tw-skew-x))', 'skewY(var(--tw-skew-y))', 'scaleX(var(--tw-scale-x))', 'scaleY(var(--tw-scale-y))'].join(' ')
777
+ },
778
+ '.transform-gpu': {
779
+ '--tw-transform': ['translate3d(var(--tw-translate-x), var(--tw-translate-y), 0)', 'rotate(var(--tw-rotate))', 'skewX(var(--tw-skew-x))', 'skewY(var(--tw-skew-y))', 'scaleX(var(--tw-scale-x))', 'scaleY(var(--tw-scale-y))'].join(' ')
780
+ },
781
+ '.transform-none': {
782
+ transform: 'none'
208
783
  }
784
+ });
785
+ };
786
+
787
+ exports.transform = transform;
209
788
 
210
- if (mode === 'class') {
211
- addVariant('dark', (0, _pluginUtils.transformAllSelectors)(selector => {
212
- let variantSelector = (0, _pluginUtils.updateLastClasses)(selector, className => {
213
- return `dark${config('separator')}${className}`;
214
- });
789
+ let animation = ({
790
+ matchUtilities,
791
+ theme,
792
+ prefix
793
+ }) => {
794
+ var _theme;
215
795
 
216
- if (variantSelector === selector) {
217
- return null;
796
+ let prefixName = name => prefix(`.${name}`).slice(1);
797
+
798
+ let keyframes = Object.fromEntries(Object.entries((_theme = theme('keyframes')) !== null && _theme !== void 0 ? _theme : {}).map(([key, value]) => {
799
+ return [key, [{
800
+ [`@keyframes ${prefixName(key)}`]: value
801
+ }]];
802
+ }));
803
+ matchUtilities({
804
+ animate: (value, {
805
+ includeRules
806
+ }) => {
807
+ let animations = (0, _parseAnimationValue.default)(value);
808
+
809
+ for (let {
810
+ name
811
+ } of animations) {
812
+ if (keyframes[name] !== undefined) {
813
+ includeRules(keyframes[name], {
814
+ respectImportant: false
815
+ });
218
816
  }
817
+ }
219
818
 
220
- let darkSelector = (0, _prefixSelector.default)(config('prefix'), `.dark`);
221
- return `${darkSelector} ${variantSelector}`;
222
- }));
223
- } else if (mode === 'media') {
224
- addVariant('dark', (0, _pluginUtils.transformLastClasses)(className => {
225
- return `dark${config('separator')}${className}`;
226
- }, {
227
- wrap: () => _postcss.default.atRule({
228
- name: 'media',
229
- params: '(prefers-color-scheme: dark)'
230
- })
231
- }));
819
+ return {
820
+ animation: animations.map(({
821
+ name,
822
+ value
823
+ }) => {
824
+ if (name === undefined || keyframes[name] === undefined) {
825
+ return value;
826
+ }
827
+
828
+ return value.replace(name, prefixName(name));
829
+ }).join(', ')
830
+ };
232
831
  }
233
- },
234
- screenVariants: function ({
235
- config,
236
- theme,
237
- addVariant
238
- }) {
239
- for (let screen in theme('screens')) {
240
- let size = theme('screens')[screen];
241
- let query = (0, _buildMediaQuery.default)(size);
242
- addVariant(screen, (0, _pluginUtils.transformLastClasses)(className => {
243
- return `${screen}${config('separator')}${className}`;
244
- }, {
245
- wrap: () => _postcss.default.atRule({
246
- name: 'media',
247
- params: query
832
+ }, {
833
+ values: theme('animation')
834
+ });
835
+ };
836
+
837
+ exports.animation = animation;
838
+ let cursor = (0, _createUtilityPlugin.default)('cursor');
839
+ exports.cursor = cursor;
840
+
841
+ let userSelect = ({
842
+ addUtilities
843
+ }) => {
844
+ addUtilities({
845
+ '.select-none': {
846
+ 'user-select': 'none'
847
+ },
848
+ '.select-text': {
849
+ 'user-select': 'text'
850
+ },
851
+ '.select-all': {
852
+ 'user-select': 'all'
853
+ },
854
+ '.select-auto': {
855
+ 'user-select': 'auto'
856
+ }
857
+ });
858
+ };
859
+
860
+ exports.userSelect = userSelect;
861
+
862
+ let resize = ({
863
+ addUtilities
864
+ }) => {
865
+ addUtilities({
866
+ '.resize-none': {
867
+ resize: 'none'
868
+ },
869
+ '.resize-y': {
870
+ resize: 'vertical'
871
+ },
872
+ '.resize-x': {
873
+ resize: 'horizontal'
874
+ },
875
+ '.resize': {
876
+ resize: 'both'
877
+ }
878
+ });
879
+ };
880
+
881
+ exports.resize = resize;
882
+
883
+ let listStylePosition = ({
884
+ addUtilities
885
+ }) => {
886
+ addUtilities({
887
+ '.list-inside': {
888
+ 'list-style-position': 'inside'
889
+ },
890
+ '.list-outside': {
891
+ 'list-style-position': 'outside'
892
+ }
893
+ });
894
+ };
895
+
896
+ exports.listStylePosition = listStylePosition;
897
+ let listStyleType = (0, _createUtilityPlugin.default)('listStyleType', [['list', ['listStyleType']]]);
898
+ exports.listStyleType = listStyleType;
899
+
900
+ let appearance = ({
901
+ addUtilities
902
+ }) => {
903
+ addUtilities({
904
+ '.appearance-none': {
905
+ appearance: 'none'
906
+ }
907
+ });
908
+ };
909
+
910
+ exports.appearance = appearance;
911
+ let columns = (0, _createUtilityPlugin.default)('columns', [['columns', ['columns']]]);
912
+ exports.columns = columns;
913
+ let gridAutoColumns = (0, _createUtilityPlugin.default)('gridAutoColumns', [['auto-cols', ['gridAutoColumns']]]);
914
+ exports.gridAutoColumns = gridAutoColumns;
915
+
916
+ let gridAutoFlow = ({
917
+ addUtilities
918
+ }) => {
919
+ addUtilities({
920
+ '.grid-flow-row': {
921
+ gridAutoFlow: 'row'
922
+ },
923
+ '.grid-flow-col': {
924
+ gridAutoFlow: 'column'
925
+ },
926
+ '.grid-flow-row-dense': {
927
+ gridAutoFlow: 'row dense'
928
+ },
929
+ '.grid-flow-col-dense': {
930
+ gridAutoFlow: 'column dense'
931
+ }
932
+ });
933
+ };
934
+
935
+ exports.gridAutoFlow = gridAutoFlow;
936
+ let gridAutoRows = (0, _createUtilityPlugin.default)('gridAutoRows', [['auto-rows', ['gridAutoRows']]]);
937
+ exports.gridAutoRows = gridAutoRows;
938
+ let gridTemplateColumns = (0, _createUtilityPlugin.default)('gridTemplateColumns', [['grid-cols', ['gridTemplateColumns']]]);
939
+ exports.gridTemplateColumns = gridTemplateColumns;
940
+ let gridTemplateRows = (0, _createUtilityPlugin.default)('gridTemplateRows', [['grid-rows', ['gridTemplateRows']]]);
941
+ exports.gridTemplateRows = gridTemplateRows;
942
+
943
+ let flexDirection = ({
944
+ addUtilities
945
+ }) => {
946
+ addUtilities({
947
+ '.flex-row': {
948
+ 'flex-direction': 'row'
949
+ },
950
+ '.flex-row-reverse': {
951
+ 'flex-direction': 'row-reverse'
952
+ },
953
+ '.flex-col': {
954
+ 'flex-direction': 'column'
955
+ },
956
+ '.flex-col-reverse': {
957
+ 'flex-direction': 'column-reverse'
958
+ }
959
+ });
960
+ };
961
+
962
+ exports.flexDirection = flexDirection;
963
+
964
+ let flexWrap = ({
965
+ addUtilities
966
+ }) => {
967
+ addUtilities({
968
+ '.flex-wrap': {
969
+ 'flex-wrap': 'wrap'
970
+ },
971
+ '.flex-wrap-reverse': {
972
+ 'flex-wrap': 'wrap-reverse'
973
+ },
974
+ '.flex-nowrap': {
975
+ 'flex-wrap': 'nowrap'
976
+ }
977
+ });
978
+ };
979
+
980
+ exports.flexWrap = flexWrap;
981
+
982
+ let placeContent = ({
983
+ addUtilities
984
+ }) => {
985
+ addUtilities({
986
+ '.place-content-center': {
987
+ 'place-content': 'center'
988
+ },
989
+ '.place-content-start': {
990
+ 'place-content': 'start'
991
+ },
992
+ '.place-content-end': {
993
+ 'place-content': 'end'
994
+ },
995
+ '.place-content-between': {
996
+ 'place-content': 'space-between'
997
+ },
998
+ '.place-content-around': {
999
+ 'place-content': 'space-around'
1000
+ },
1001
+ '.place-content-evenly': {
1002
+ 'place-content': 'space-evenly'
1003
+ },
1004
+ '.place-content-stretch': {
1005
+ 'place-content': 'stretch'
1006
+ }
1007
+ });
1008
+ };
1009
+
1010
+ exports.placeContent = placeContent;
1011
+
1012
+ let placeItems = ({
1013
+ addUtilities
1014
+ }) => {
1015
+ addUtilities({
1016
+ '.place-items-start': {
1017
+ 'place-items': 'start'
1018
+ },
1019
+ '.place-items-end': {
1020
+ 'place-items': 'end'
1021
+ },
1022
+ '.place-items-center': {
1023
+ 'place-items': 'center'
1024
+ },
1025
+ '.place-items-stretch': {
1026
+ 'place-items': 'stretch'
1027
+ }
1028
+ });
1029
+ };
1030
+
1031
+ exports.placeItems = placeItems;
1032
+
1033
+ let alignContent = ({
1034
+ addUtilities
1035
+ }) => {
1036
+ addUtilities({
1037
+ '.content-center': {
1038
+ 'align-content': 'center'
1039
+ },
1040
+ '.content-start': {
1041
+ 'align-content': 'flex-start'
1042
+ },
1043
+ '.content-end': {
1044
+ 'align-content': 'flex-end'
1045
+ },
1046
+ '.content-between': {
1047
+ 'align-content': 'space-between'
1048
+ },
1049
+ '.content-around': {
1050
+ 'align-content': 'space-around'
1051
+ },
1052
+ '.content-evenly': {
1053
+ 'align-content': 'space-evenly'
1054
+ }
1055
+ });
1056
+ };
1057
+
1058
+ exports.alignContent = alignContent;
1059
+
1060
+ let alignItems = ({
1061
+ addUtilities
1062
+ }) => {
1063
+ addUtilities({
1064
+ '.items-start': {
1065
+ 'align-items': 'flex-start'
1066
+ },
1067
+ '.items-end': {
1068
+ 'align-items': 'flex-end'
1069
+ },
1070
+ '.items-center': {
1071
+ 'align-items': 'center'
1072
+ },
1073
+ '.items-baseline': {
1074
+ 'align-items': 'baseline'
1075
+ },
1076
+ '.items-stretch': {
1077
+ 'align-items': 'stretch'
1078
+ }
1079
+ });
1080
+ };
1081
+
1082
+ exports.alignItems = alignItems;
1083
+
1084
+ let justifyContent = ({
1085
+ addUtilities
1086
+ }) => {
1087
+ addUtilities({
1088
+ '.justify-start': {
1089
+ 'justify-content': 'flex-start'
1090
+ },
1091
+ '.justify-end': {
1092
+ 'justify-content': 'flex-end'
1093
+ },
1094
+ '.justify-center': {
1095
+ 'justify-content': 'center'
1096
+ },
1097
+ '.justify-between': {
1098
+ 'justify-content': 'space-between'
1099
+ },
1100
+ '.justify-around': {
1101
+ 'justify-content': 'space-around'
1102
+ },
1103
+ '.justify-evenly': {
1104
+ 'justify-content': 'space-evenly'
1105
+ }
1106
+ });
1107
+ };
1108
+
1109
+ exports.justifyContent = justifyContent;
1110
+
1111
+ let justifyItems = ({
1112
+ addUtilities
1113
+ }) => {
1114
+ addUtilities({
1115
+ '.justify-items-start': {
1116
+ 'justify-items': 'start'
1117
+ },
1118
+ '.justify-items-end': {
1119
+ 'justify-items': 'end'
1120
+ },
1121
+ '.justify-items-center': {
1122
+ 'justify-items': 'center'
1123
+ },
1124
+ '.justify-items-stretch': {
1125
+ 'justify-items': 'stretch'
1126
+ }
1127
+ });
1128
+ };
1129
+
1130
+ exports.justifyItems = justifyItems;
1131
+ let gap = (0, _createUtilityPlugin.default)('gap', [['gap', ['gap']], [['gap-x', ['columnGap']], ['gap-y', ['rowGap']]]]);
1132
+ exports.gap = gap;
1133
+
1134
+ let space = ({
1135
+ matchUtilities,
1136
+ addUtilities,
1137
+ theme
1138
+ }) => {
1139
+ matchUtilities({
1140
+ 'space-x': value => {
1141
+ value = value === '0' ? '0px' : value;
1142
+ return {
1143
+ '& > :not([hidden]) ~ :not([hidden])': {
1144
+ '--tw-space-x-reverse': '0',
1145
+ 'margin-right': `calc(${value} * var(--tw-space-x-reverse))`,
1146
+ 'margin-left': `calc(${value} * calc(1 - var(--tw-space-x-reverse)))`
1147
+ }
1148
+ };
1149
+ },
1150
+ 'space-y': value => {
1151
+ value = value === '0' ? '0px' : value;
1152
+ return {
1153
+ '& > :not([hidden]) ~ :not([hidden])': {
1154
+ '--tw-space-y-reverse': '0',
1155
+ 'margin-top': `calc(${value} * calc(1 - var(--tw-space-y-reverse)))`,
1156
+ 'margin-bottom': `calc(${value} * var(--tw-space-y-reverse))`
1157
+ }
1158
+ };
1159
+ }
1160
+ }, {
1161
+ values: theme('space'),
1162
+ type: 'any'
1163
+ });
1164
+ addUtilities({
1165
+ '.space-y-reverse > :not([hidden]) ~ :not([hidden])': {
1166
+ '--tw-space-y-reverse': '1'
1167
+ },
1168
+ '.space-x-reverse > :not([hidden]) ~ :not([hidden])': {
1169
+ '--tw-space-x-reverse': '1'
1170
+ }
1171
+ });
1172
+ };
1173
+
1174
+ exports.space = space;
1175
+
1176
+ let divideWidth = ({
1177
+ matchUtilities,
1178
+ addUtilities,
1179
+ theme
1180
+ }) => {
1181
+ matchUtilities({
1182
+ 'divide-x': value => {
1183
+ value = value === '0' ? '0px' : value;
1184
+ return {
1185
+ '& > :not([hidden]) ~ :not([hidden])': {
1186
+ '@defaults border-width': {},
1187
+ '--tw-divide-x-reverse': '0',
1188
+ 'border-right-width': `calc(${value} * var(--tw-divide-x-reverse))`,
1189
+ 'border-left-width': `calc(${value} * calc(1 - var(--tw-divide-x-reverse)))`
1190
+ }
1191
+ };
1192
+ },
1193
+ 'divide-y': value => {
1194
+ value = value === '0' ? '0px' : value;
1195
+ return {
1196
+ '& > :not([hidden]) ~ :not([hidden])': {
1197
+ '@defaults border-width': {},
1198
+ '--tw-divide-y-reverse': '0',
1199
+ 'border-top-width': `calc(${value} * calc(1 - var(--tw-divide-y-reverse)))`,
1200
+ 'border-bottom-width': `calc(${value} * var(--tw-divide-y-reverse))`
1201
+ }
1202
+ };
1203
+ }
1204
+ }, {
1205
+ values: theme('divideWidth'),
1206
+ type: 'length'
1207
+ });
1208
+ addUtilities({
1209
+ '.divide-y-reverse > :not([hidden]) ~ :not([hidden])': {
1210
+ '@defaults border-width': {},
1211
+ '--tw-divide-y-reverse': '1'
1212
+ },
1213
+ '.divide-x-reverse > :not([hidden]) ~ :not([hidden])': {
1214
+ '@defaults border-width': {},
1215
+ '--tw-divide-x-reverse': '1'
1216
+ }
1217
+ });
1218
+ };
1219
+
1220
+ exports.divideWidth = divideWidth;
1221
+
1222
+ let divideStyle = ({
1223
+ addUtilities
1224
+ }) => {
1225
+ addUtilities({
1226
+ '.divide-solid > :not([hidden]) ~ :not([hidden])': {
1227
+ 'border-style': 'solid'
1228
+ },
1229
+ '.divide-dashed > :not([hidden]) ~ :not([hidden])': {
1230
+ 'border-style': 'dashed'
1231
+ },
1232
+ '.divide-dotted > :not([hidden]) ~ :not([hidden])': {
1233
+ 'border-style': 'dotted'
1234
+ },
1235
+ '.divide-double > :not([hidden]) ~ :not([hidden])': {
1236
+ 'border-style': 'double'
1237
+ },
1238
+ '.divide-none > :not([hidden]) ~ :not([hidden])': {
1239
+ 'border-style': 'none'
1240
+ }
1241
+ });
1242
+ };
1243
+
1244
+ exports.divideStyle = divideStyle;
1245
+
1246
+ let divideColor = ({
1247
+ matchUtilities,
1248
+ theme,
1249
+ corePlugins
1250
+ }) => {
1251
+ matchUtilities({
1252
+ divide: value => {
1253
+ if (!corePlugins('divideOpacity')) {
1254
+ return {
1255
+ ['& > :not([hidden]) ~ :not([hidden])']: {
1256
+ 'border-color': (0, _toColorValue.default)(value)
1257
+ }
1258
+ };
1259
+ }
1260
+
1261
+ return {
1262
+ ['& > :not([hidden]) ~ :not([hidden])']: (0, _withAlphaVariable.default)({
1263
+ color: value,
1264
+ property: 'border-color',
1265
+ variable: '--tw-divide-opacity'
248
1266
  })
249
- }));
1267
+ };
1268
+ }
1269
+ }, {
1270
+ values: (({
1271
+ DEFAULT: _,
1272
+ ...colors
1273
+ }) => colors)((0, _flattenColorPalette.default)(theme('divideColor'))),
1274
+ type: 'color'
1275
+ });
1276
+ };
1277
+
1278
+ exports.divideColor = divideColor;
1279
+
1280
+ let divideOpacity = ({
1281
+ matchUtilities,
1282
+ theme
1283
+ }) => {
1284
+ matchUtilities({
1285
+ 'divide-opacity': value => {
1286
+ return {
1287
+ [`& > :not([hidden]) ~ :not([hidden])`]: {
1288
+ '--tw-divide-opacity': value
1289
+ }
1290
+ };
1291
+ }
1292
+ }, {
1293
+ values: theme('divideOpacity'),
1294
+ type: 'any'
1295
+ });
1296
+ };
1297
+
1298
+ exports.divideOpacity = divideOpacity;
1299
+
1300
+ let placeSelf = ({
1301
+ addUtilities
1302
+ }) => {
1303
+ addUtilities({
1304
+ '.place-self-auto': {
1305
+ 'place-self': 'auto'
1306
+ },
1307
+ '.place-self-start': {
1308
+ 'place-self': 'start'
1309
+ },
1310
+ '.place-self-end': {
1311
+ 'place-self': 'end'
1312
+ },
1313
+ '.place-self-center': {
1314
+ 'place-self': 'center'
1315
+ },
1316
+ '.place-self-stretch': {
1317
+ 'place-self': 'stretch'
1318
+ }
1319
+ });
1320
+ };
1321
+
1322
+ exports.placeSelf = placeSelf;
1323
+
1324
+ let alignSelf = ({
1325
+ addUtilities
1326
+ }) => {
1327
+ addUtilities({
1328
+ '.self-auto': {
1329
+ 'align-self': 'auto'
1330
+ },
1331
+ '.self-start': {
1332
+ 'align-self': 'flex-start'
1333
+ },
1334
+ '.self-end': {
1335
+ 'align-self': 'flex-end'
1336
+ },
1337
+ '.self-center': {
1338
+ 'align-self': 'center'
1339
+ },
1340
+ '.self-stretch': {
1341
+ 'align-self': 'stretch'
1342
+ },
1343
+ '.self-baseline': {
1344
+ 'align-self': 'baseline'
1345
+ }
1346
+ });
1347
+ };
1348
+
1349
+ exports.alignSelf = alignSelf;
1350
+
1351
+ let justifySelf = ({
1352
+ addUtilities
1353
+ }) => {
1354
+ addUtilities({
1355
+ '.justify-self-auto': {
1356
+ 'justify-self': 'auto'
1357
+ },
1358
+ '.justify-self-start': {
1359
+ 'justify-self': 'start'
1360
+ },
1361
+ '.justify-self-end': {
1362
+ 'justify-self': 'end'
1363
+ },
1364
+ '.justify-self-center': {
1365
+ 'justify-self': 'center'
1366
+ },
1367
+ '.justify-self-stretch': {
1368
+ 'justify-self': 'stretch'
1369
+ }
1370
+ });
1371
+ };
1372
+
1373
+ exports.justifySelf = justifySelf;
1374
+
1375
+ let overflow = ({
1376
+ addUtilities
1377
+ }) => {
1378
+ addUtilities({
1379
+ '.overflow-auto': {
1380
+ overflow: 'auto'
1381
+ },
1382
+ '.overflow-hidden': {
1383
+ overflow: 'hidden'
1384
+ },
1385
+ '.overflow-visible': {
1386
+ overflow: 'visible'
1387
+ },
1388
+ '.overflow-scroll': {
1389
+ overflow: 'scroll'
1390
+ },
1391
+ '.overflow-x-auto': {
1392
+ 'overflow-x': 'auto'
1393
+ },
1394
+ '.overflow-y-auto': {
1395
+ 'overflow-y': 'auto'
1396
+ },
1397
+ '.overflow-x-hidden': {
1398
+ 'overflow-x': 'hidden'
1399
+ },
1400
+ '.overflow-y-hidden': {
1401
+ 'overflow-y': 'hidden'
1402
+ },
1403
+ '.overflow-x-visible': {
1404
+ 'overflow-x': 'visible'
1405
+ },
1406
+ '.overflow-y-visible': {
1407
+ 'overflow-y': 'visible'
1408
+ },
1409
+ '.overflow-x-scroll': {
1410
+ 'overflow-x': 'scroll'
1411
+ },
1412
+ '.overflow-y-scroll': {
1413
+ 'overflow-y': 'scroll'
1414
+ }
1415
+ });
1416
+ };
1417
+
1418
+ exports.overflow = overflow;
1419
+
1420
+ let overscrollBehavior = ({
1421
+ addUtilities
1422
+ }) => {
1423
+ addUtilities({
1424
+ '.overscroll-auto': {
1425
+ 'overscroll-behavior': 'auto'
1426
+ },
1427
+ '.overscroll-contain': {
1428
+ 'overscroll-behavior': 'contain'
1429
+ },
1430
+ '.overscroll-none': {
1431
+ 'overscroll-behavior': 'none'
1432
+ },
1433
+ '.overscroll-y-auto': {
1434
+ 'overscroll-behavior-y': 'auto'
1435
+ },
1436
+ '.overscroll-y-contain': {
1437
+ 'overscroll-behavior-y': 'contain'
1438
+ },
1439
+ '.overscroll-y-none': {
1440
+ 'overscroll-behavior-y': 'none'
1441
+ },
1442
+ '.overscroll-x-auto': {
1443
+ 'overscroll-behavior-x': 'auto'
1444
+ },
1445
+ '.overscroll-x-contain': {
1446
+ 'overscroll-behavior-x': 'contain'
1447
+ },
1448
+ '.overscroll-x-none': {
1449
+ 'overscroll-behavior-x': 'none'
250
1450
  }
251
- },
252
- ...Object.fromEntries(Object.entries(corePlugins).map(([pluginName, plugin]) => {
253
- return [pluginName, plugin()];
254
- }))
1451
+ });
255
1452
  };
256
- exports.default = _default;
1453
+
1454
+ exports.overscrollBehavior = overscrollBehavior;
1455
+
1456
+ let scrollBehavior = ({
1457
+ addUtilities
1458
+ }) => {
1459
+ addUtilities({
1460
+ '.scroll-auto': {
1461
+ 'scroll-behavior': 'auto'
1462
+ },
1463
+ '.scroll-smooth': {
1464
+ 'scroll-behavior': 'smooth'
1465
+ }
1466
+ });
1467
+ };
1468
+
1469
+ exports.scrollBehavior = scrollBehavior;
1470
+
1471
+ let textOverflow = ({
1472
+ addUtilities
1473
+ }) => {
1474
+ addUtilities({
1475
+ '.truncate': {
1476
+ overflow: 'hidden',
1477
+ 'text-overflow': 'ellipsis',
1478
+ 'white-space': 'nowrap'
1479
+ },
1480
+ '.overflow-ellipsis': {
1481
+ 'text-overflow': 'ellipsis'
1482
+ },
1483
+ '.overflow-clip': {
1484
+ 'text-overflow': 'clip'
1485
+ }
1486
+ });
1487
+ };
1488
+
1489
+ exports.textOverflow = textOverflow;
1490
+
1491
+ let whitespace = ({
1492
+ addUtilities
1493
+ }) => {
1494
+ addUtilities({
1495
+ '.whitespace-normal': {
1496
+ 'white-space': 'normal'
1497
+ },
1498
+ '.whitespace-nowrap': {
1499
+ 'white-space': 'nowrap'
1500
+ },
1501
+ '.whitespace-pre': {
1502
+ 'white-space': 'pre'
1503
+ },
1504
+ '.whitespace-pre-line': {
1505
+ 'white-space': 'pre-line'
1506
+ },
1507
+ '.whitespace-pre-wrap': {
1508
+ 'white-space': 'pre-wrap'
1509
+ }
1510
+ });
1511
+ };
1512
+
1513
+ exports.whitespace = whitespace;
1514
+
1515
+ let wordBreak = ({
1516
+ addUtilities
1517
+ }) => {
1518
+ addUtilities({
1519
+ '.break-normal': {
1520
+ 'overflow-wrap': 'normal',
1521
+ 'word-break': 'normal'
1522
+ },
1523
+ '.break-words': {
1524
+ 'overflow-wrap': 'break-word'
1525
+ },
1526
+ '.break-all': {
1527
+ 'word-break': 'break-all'
1528
+ }
1529
+ });
1530
+ };
1531
+
1532
+ exports.wordBreak = wordBreak;
1533
+ let borderRadius = (0, _createUtilityPlugin.default)('borderRadius', [['rounded', ['border-radius']], [['rounded-t', ['border-top-left-radius', 'border-top-right-radius']], ['rounded-r', ['border-top-right-radius', 'border-bottom-right-radius']], ['rounded-b', ['border-bottom-right-radius', 'border-bottom-left-radius']], ['rounded-l', ['border-top-left-radius', 'border-bottom-left-radius']]], [['rounded-tl', ['border-top-left-radius']], ['rounded-tr', ['border-top-right-radius']], ['rounded-br', ['border-bottom-right-radius']], ['rounded-bl', ['border-bottom-left-radius']]]]);
1534
+ exports.borderRadius = borderRadius;
1535
+ let borderWidth = (0, _createUtilityPlugin.default)('borderWidth', [['border', [['@defaults border-width', {}], 'border-width']], [['border-t', [['@defaults border-width', {}], 'border-top-width']], ['border-r', [['@defaults border-width', {}], 'border-right-width']], ['border-b', [['@defaults border-width', {}], 'border-bottom-width']], ['border-l', [['@defaults border-width', {}], 'border-left-width']]]], {
1536
+ resolveArbitraryValue: _pluginUtils.asLength
1537
+ });
1538
+ exports.borderWidth = borderWidth;
1539
+
1540
+ let borderStyle = ({
1541
+ addUtilities
1542
+ }) => {
1543
+ addUtilities({
1544
+ '.border-solid': {
1545
+ 'border-style': 'solid'
1546
+ },
1547
+ '.border-dashed': {
1548
+ 'border-style': 'dashed'
1549
+ },
1550
+ '.border-dotted': {
1551
+ 'border-style': 'dotted'
1552
+ },
1553
+ '.border-double': {
1554
+ 'border-style': 'double'
1555
+ },
1556
+ '.border-hidden': {
1557
+ 'border-style': 'hidden'
1558
+ },
1559
+ '.border-none': {
1560
+ 'border-style': 'none'
1561
+ }
1562
+ });
1563
+ };
1564
+
1565
+ exports.borderStyle = borderStyle;
1566
+
1567
+ let borderColor = ({
1568
+ addBase,
1569
+ matchUtilities,
1570
+ theme,
1571
+ corePlugins
1572
+ }) => {
1573
+ if (!corePlugins('borderOpacity')) {
1574
+ let value = theme('borderColor.DEFAULT', 'currentColor');
1575
+ addBase({
1576
+ '@defaults border-width': {
1577
+ 'border-color': (0, _toColorValue.default)(value)
1578
+ }
1579
+ });
1580
+ } else {
1581
+ addBase({
1582
+ '@defaults border-width': (0, _withAlphaVariable.default)({
1583
+ color: theme('borderColor.DEFAULT', 'currentColor'),
1584
+ property: 'border-color',
1585
+ variable: '--tw-border-opacity'
1586
+ })
1587
+ });
1588
+ }
1589
+
1590
+ matchUtilities({
1591
+ border: value => {
1592
+ if (!corePlugins('borderOpacity')) {
1593
+ return {
1594
+ 'border-color': (0, _toColorValue.default)(value)
1595
+ };
1596
+ }
1597
+
1598
+ return (0, _withAlphaVariable.default)({
1599
+ color: value,
1600
+ property: 'border-color',
1601
+ variable: '--tw-border-opacity'
1602
+ });
1603
+ }
1604
+ }, {
1605
+ values: (({
1606
+ DEFAULT: _,
1607
+ ...colors
1608
+ }) => colors)((0, _flattenColorPalette.default)(theme('borderColor'))),
1609
+ type: 'color'
1610
+ });
1611
+ matchUtilities({
1612
+ 'border-t': value => {
1613
+ if (!corePlugins('borderOpacity')) {
1614
+ return {
1615
+ 'border-top-color': (0, _toColorValue.default)(value)
1616
+ };
1617
+ }
1618
+
1619
+ return (0, _withAlphaVariable.default)({
1620
+ color: value,
1621
+ property: 'border-top-color',
1622
+ variable: '--tw-border-opacity'
1623
+ });
1624
+ },
1625
+ 'border-r': value => {
1626
+ if (!corePlugins('borderOpacity')) {
1627
+ return {
1628
+ 'border-right-color': (0, _toColorValue.default)(value)
1629
+ };
1630
+ }
1631
+
1632
+ return (0, _withAlphaVariable.default)({
1633
+ color: value,
1634
+ property: 'border-right-color',
1635
+ variable: '--tw-border-opacity'
1636
+ });
1637
+ },
1638
+ 'border-b': value => {
1639
+ if (!corePlugins('borderOpacity')) {
1640
+ return {
1641
+ 'border-bottom-color': (0, _toColorValue.default)(value)
1642
+ };
1643
+ }
1644
+
1645
+ return (0, _withAlphaVariable.default)({
1646
+ color: value,
1647
+ property: 'border-bottom-color',
1648
+ variable: '--tw-border-opacity'
1649
+ });
1650
+ },
1651
+ 'border-l': value => {
1652
+ if (!corePlugins('borderOpacity')) {
1653
+ return {
1654
+ 'border-left-color': (0, _toColorValue.default)(value)
1655
+ };
1656
+ }
1657
+
1658
+ return (0, _withAlphaVariable.default)({
1659
+ color: value,
1660
+ property: 'border-left-color',
1661
+ variable: '--tw-border-opacity'
1662
+ });
1663
+ }
1664
+ }, {
1665
+ values: (({
1666
+ DEFAULT: _,
1667
+ ...colors
1668
+ }) => colors)((0, _flattenColorPalette.default)(theme('borderColor'))),
1669
+ type: 'color'
1670
+ });
1671
+ };
1672
+
1673
+ exports.borderColor = borderColor;
1674
+ let borderOpacity = (0, _createUtilityPlugin.default)('borderOpacity', [['border-opacity', ['--tw-border-opacity']]]);
1675
+ exports.borderOpacity = borderOpacity;
1676
+
1677
+ let backgroundColor = ({
1678
+ matchUtilities,
1679
+ theme,
1680
+ corePlugins
1681
+ }) => {
1682
+ matchUtilities({
1683
+ bg: value => {
1684
+ if (!corePlugins('backgroundOpacity')) {
1685
+ return {
1686
+ 'background-color': (0, _toColorValue.default)(value)
1687
+ };
1688
+ }
1689
+
1690
+ return (0, _withAlphaVariable.default)({
1691
+ color: value,
1692
+ property: 'background-color',
1693
+ variable: '--tw-bg-opacity'
1694
+ });
1695
+ }
1696
+ }, {
1697
+ values: (0, _flattenColorPalette.default)(theme('backgroundColor')),
1698
+ type: 'color'
1699
+ });
1700
+ };
1701
+
1702
+ exports.backgroundColor = backgroundColor;
1703
+ let backgroundOpacity = (0, _createUtilityPlugin.default)('backgroundOpacity', [['bg-opacity', ['--tw-bg-opacity']]]);
1704
+ exports.backgroundOpacity = backgroundOpacity;
1705
+ let backgroundImage = (0, _createUtilityPlugin.default)('backgroundImage', [['bg', ['background-image']]], {
1706
+ resolveArbitraryValue: _pluginUtils.asLookupValue
1707
+ });
1708
+ exports.backgroundImage = backgroundImage;
1709
+
1710
+ let gradientColorStops = (() => {
1711
+ function transparentTo(value) {
1712
+ return (0, _withAlphaVariable.withAlphaValue)(value, 0, 'rgb(255 255 255 / 0)');
1713
+ }
1714
+
1715
+ return function ({
1716
+ matchUtilities,
1717
+ theme
1718
+ }) {
1719
+ let options = {
1720
+ values: (0, _flattenColorPalette.default)(theme('gradientColorStops')),
1721
+ type: ['color', 'any']
1722
+ };
1723
+ matchUtilities({
1724
+ from: value => {
1725
+ let transparentToValue = transparentTo(value);
1726
+ return {
1727
+ '--tw-gradient-from': (0, _toColorValue.default)(value, 'from'),
1728
+ '--tw-gradient-stops': `var(--tw-gradient-from), var(--tw-gradient-to, ${transparentToValue})`
1729
+ };
1730
+ }
1731
+ }, options);
1732
+ matchUtilities({
1733
+ via: value => {
1734
+ let transparentToValue = transparentTo(value);
1735
+ return {
1736
+ '--tw-gradient-stops': `var(--tw-gradient-from), ${(0, _toColorValue.default)(value, 'via')}, var(--tw-gradient-to, ${transparentToValue})`
1737
+ };
1738
+ }
1739
+ }, options);
1740
+ matchUtilities({
1741
+ to: value => ({
1742
+ '--tw-gradient-to': (0, _toColorValue.default)(value, 'to')
1743
+ })
1744
+ }, options);
1745
+ };
1746
+ })();
1747
+
1748
+ exports.gradientColorStops = gradientColorStops;
1749
+
1750
+ let boxDecorationBreak = ({
1751
+ addUtilities
1752
+ }) => {
1753
+ addUtilities({
1754
+ '.decoration-slice': {
1755
+ 'box-decoration-break': 'slice'
1756
+ },
1757
+ '.decoration-clone': {
1758
+ 'box-decoration-break': 'clone'
1759
+ }
1760
+ });
1761
+ };
1762
+
1763
+ exports.boxDecorationBreak = boxDecorationBreak;
1764
+ let backgroundSize = (0, _createUtilityPlugin.default)('backgroundSize', [['bg', ['background-size']]], {
1765
+ resolveArbitraryValue: _pluginUtils.asLookupValue
1766
+ });
1767
+ exports.backgroundSize = backgroundSize;
1768
+
1769
+ let backgroundAttachment = ({
1770
+ addUtilities
1771
+ }) => {
1772
+ addUtilities({
1773
+ '.bg-fixed': {
1774
+ 'background-attachment': 'fixed'
1775
+ },
1776
+ '.bg-local': {
1777
+ 'background-attachment': 'local'
1778
+ },
1779
+ '.bg-scroll': {
1780
+ 'background-attachment': 'scroll'
1781
+ }
1782
+ });
1783
+ };
1784
+
1785
+ exports.backgroundAttachment = backgroundAttachment;
1786
+
1787
+ let backgroundClip = ({
1788
+ addUtilities
1789
+ }) => {
1790
+ addUtilities({
1791
+ '.bg-clip-border': {
1792
+ 'background-clip': 'border-box'
1793
+ },
1794
+ '.bg-clip-padding': {
1795
+ 'background-clip': 'padding-box'
1796
+ },
1797
+ '.bg-clip-content': {
1798
+ 'background-clip': 'content-box'
1799
+ },
1800
+ '.bg-clip-text': {
1801
+ 'background-clip': 'text'
1802
+ }
1803
+ });
1804
+ };
1805
+
1806
+ exports.backgroundClip = backgroundClip;
1807
+ let backgroundPosition = (0, _createUtilityPlugin.default)('backgroundPosition', [['bg', ['background-position']]], {
1808
+ resolveArbitraryValue: _pluginUtils.asLookupValue
1809
+ });
1810
+ exports.backgroundPosition = backgroundPosition;
1811
+
1812
+ let backgroundRepeat = ({
1813
+ addUtilities
1814
+ }) => {
1815
+ addUtilities({
1816
+ '.bg-repeat': {
1817
+ 'background-repeat': 'repeat'
1818
+ },
1819
+ '.bg-no-repeat': {
1820
+ 'background-repeat': 'no-repeat'
1821
+ },
1822
+ '.bg-repeat-x': {
1823
+ 'background-repeat': 'repeat-x'
1824
+ },
1825
+ '.bg-repeat-y': {
1826
+ 'background-repeat': 'repeat-y'
1827
+ },
1828
+ '.bg-repeat-round': {
1829
+ 'background-repeat': 'round'
1830
+ },
1831
+ '.bg-repeat-space': {
1832
+ 'background-repeat': 'space'
1833
+ }
1834
+ });
1835
+ };
1836
+
1837
+ exports.backgroundRepeat = backgroundRepeat;
1838
+
1839
+ let backgroundOrigin = ({
1840
+ addUtilities
1841
+ }) => {
1842
+ addUtilities({
1843
+ '.bg-origin-border': {
1844
+ 'background-origin': 'border-box'
1845
+ },
1846
+ '.bg-origin-padding': {
1847
+ 'background-origin': 'padding-box'
1848
+ },
1849
+ '.bg-origin-content': {
1850
+ 'background-origin': 'content-box'
1851
+ }
1852
+ });
1853
+ };
1854
+
1855
+ exports.backgroundOrigin = backgroundOrigin;
1856
+
1857
+ let fill = ({
1858
+ matchUtilities,
1859
+ theme
1860
+ }) => {
1861
+ matchUtilities({
1862
+ fill: value => {
1863
+ return {
1864
+ fill: (0, _toColorValue.default)(value)
1865
+ };
1866
+ }
1867
+ }, {
1868
+ values: (0, _flattenColorPalette.default)(theme('fill')),
1869
+ type: ['color', 'any']
1870
+ });
1871
+ };
1872
+
1873
+ exports.fill = fill;
1874
+
1875
+ let stroke = ({
1876
+ matchUtilities,
1877
+ theme
1878
+ }) => {
1879
+ matchUtilities({
1880
+ stroke: value => {
1881
+ return {
1882
+ stroke: (0, _toColorValue.default)(value)
1883
+ };
1884
+ }
1885
+ }, {
1886
+ values: (0, _flattenColorPalette.default)(theme('stroke')),
1887
+ type: 'color'
1888
+ });
1889
+ };
1890
+
1891
+ exports.stroke = stroke;
1892
+ let strokeWidth = (0, _createUtilityPlugin.default)('strokeWidth', [['stroke', ['stroke-width']]], {
1893
+ resolveArbitraryValue: _pluginUtils.asLength
1894
+ });
1895
+ exports.strokeWidth = strokeWidth;
1896
+
1897
+ let objectFit = ({
1898
+ addUtilities
1899
+ }) => {
1900
+ addUtilities({
1901
+ '.object-contain': {
1902
+ 'object-fit': 'contain'
1903
+ },
1904
+ '.object-cover': {
1905
+ 'object-fit': 'cover'
1906
+ },
1907
+ '.object-fill': {
1908
+ 'object-fit': 'fill'
1909
+ },
1910
+ '.object-none': {
1911
+ 'object-fit': 'none'
1912
+ },
1913
+ '.object-scale-down': {
1914
+ 'object-fit': 'scale-down'
1915
+ }
1916
+ });
1917
+ };
1918
+
1919
+ exports.objectFit = objectFit;
1920
+ let objectPosition = (0, _createUtilityPlugin.default)('objectPosition', [['object', ['object-position']]]);
1921
+ exports.objectPosition = objectPosition;
1922
+ let padding = (0, _createUtilityPlugin.default)('padding', [['p', ['padding']], [['px', ['padding-left', 'padding-right']], ['py', ['padding-top', 'padding-bottom']]], [['pt', ['padding-top']], ['pr', ['padding-right']], ['pb', ['padding-bottom']], ['pl', ['padding-left']]]]);
1923
+ exports.padding = padding;
1924
+
1925
+ let textAlign = ({
1926
+ addUtilities
1927
+ }) => {
1928
+ addUtilities({
1929
+ '.text-left': {
1930
+ 'text-align': 'left'
1931
+ },
1932
+ '.text-center': {
1933
+ 'text-align': 'center'
1934
+ },
1935
+ '.text-right': {
1936
+ 'text-align': 'right'
1937
+ },
1938
+ '.text-justify': {
1939
+ 'text-align': 'justify'
1940
+ }
1941
+ });
1942
+ };
1943
+
1944
+ exports.textAlign = textAlign;
1945
+ let textIndent = (0, _createUtilityPlugin.default)('textIndent', [['indent', ['text-indent']]]);
1946
+ exports.textIndent = textIndent;
1947
+
1948
+ let verticalAlign = ({
1949
+ addUtilities,
1950
+ matchUtilities
1951
+ }) => {
1952
+ addUtilities({
1953
+ '.align-baseline': {
1954
+ 'vertical-align': 'baseline'
1955
+ },
1956
+ '.align-top': {
1957
+ 'vertical-align': 'top'
1958
+ },
1959
+ '.align-middle': {
1960
+ 'vertical-align': 'middle'
1961
+ },
1962
+ '.align-bottom': {
1963
+ 'vertical-align': 'bottom'
1964
+ },
1965
+ '.align-text-top': {
1966
+ 'vertical-align': 'text-top'
1967
+ },
1968
+ '.align-text-bottom': {
1969
+ 'vertical-align': 'text-bottom'
1970
+ },
1971
+ '.align-sub': {
1972
+ 'vertical-align': 'sub'
1973
+ },
1974
+ '.align-super': {
1975
+ 'vertical-align': 'super'
1976
+ }
1977
+ });
1978
+ matchUtilities({
1979
+ align: value => ({
1980
+ 'vertical-align': value
1981
+ })
1982
+ }, {
1983
+ values: {},
1984
+ type: 'any'
1985
+ });
1986
+ };
1987
+
1988
+ exports.verticalAlign = verticalAlign;
1989
+ let fontFamily = (0, _createUtilityPlugin.default)('fontFamily', [['font', ['fontFamily']]], {
1990
+ resolveArbitraryValue: _pluginUtils.asLookupValue
1991
+ });
1992
+ exports.fontFamily = fontFamily;
1993
+
1994
+ let fontSize = ({
1995
+ matchUtilities,
1996
+ theme
1997
+ }) => {
1998
+ matchUtilities({
1999
+ text: value => {
2000
+ let [fontSize, options] = Array.isArray(value) ? value : [value];
2001
+ let {
2002
+ lineHeight,
2003
+ letterSpacing
2004
+ } = (0, _isPlainObject.default)(options) ? options : {
2005
+ lineHeight: options
2006
+ };
2007
+ return {
2008
+ 'font-size': fontSize,
2009
+ ...(lineHeight === undefined ? {} : {
2010
+ 'line-height': lineHeight
2011
+ }),
2012
+ ...(letterSpacing === undefined ? {} : {
2013
+ 'letter-spacing': letterSpacing
2014
+ })
2015
+ };
2016
+ }
2017
+ }, {
2018
+ values: theme('fontSize'),
2019
+ type: 'length'
2020
+ });
2021
+ };
2022
+
2023
+ exports.fontSize = fontSize;
2024
+ let fontWeight = (0, _createUtilityPlugin.default)('fontWeight', [['font', ['fontWeight']]], {
2025
+ resolveArbitraryValue: _pluginUtils.asLookupValue
2026
+ });
2027
+ exports.fontWeight = fontWeight;
2028
+
2029
+ let textTransform = ({
2030
+ addUtilities
2031
+ }) => {
2032
+ addUtilities({
2033
+ '.uppercase': {
2034
+ 'text-transform': 'uppercase'
2035
+ },
2036
+ '.lowercase': {
2037
+ 'text-transform': 'lowercase'
2038
+ },
2039
+ '.capitalize': {
2040
+ 'text-transform': 'capitalize'
2041
+ },
2042
+ '.normal-case': {
2043
+ 'text-transform': 'none'
2044
+ }
2045
+ });
2046
+ };
2047
+
2048
+ exports.textTransform = textTransform;
2049
+
2050
+ let fontStyle = ({
2051
+ addUtilities
2052
+ }) => {
2053
+ addUtilities({
2054
+ '.italic': {
2055
+ 'font-style': 'italic'
2056
+ },
2057
+ '.not-italic': {
2058
+ 'font-style': 'normal'
2059
+ }
2060
+ });
2061
+ };
2062
+
2063
+ exports.fontStyle = fontStyle;
2064
+
2065
+ let fontVariantNumeric = ({
2066
+ addUtilities
2067
+ }) => {
2068
+ addUtilities({
2069
+ '.ordinal, .slashed-zero, .lining-nums, .oldstyle-nums, .proportional-nums, .tabular-nums, .diagonal-fractions, .stacked-fractions': {
2070
+ '--tw-ordinal': 'var(--tw-empty,/*!*/ /*!*/)',
2071
+ '--tw-slashed-zero': 'var(--tw-empty,/*!*/ /*!*/)',
2072
+ '--tw-numeric-figure': 'var(--tw-empty,/*!*/ /*!*/)',
2073
+ '--tw-numeric-spacing': 'var(--tw-empty,/*!*/ /*!*/)',
2074
+ '--tw-numeric-fraction': 'var(--tw-empty,/*!*/ /*!*/)',
2075
+ 'font-variant-numeric': 'var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)'
2076
+ },
2077
+ '.normal-nums': {
2078
+ 'font-variant-numeric': 'normal'
2079
+ },
2080
+ '.ordinal': {
2081
+ '--tw-ordinal': 'ordinal'
2082
+ },
2083
+ '.slashed-zero': {
2084
+ '--tw-slashed-zero': 'slashed-zero'
2085
+ },
2086
+ '.lining-nums': {
2087
+ '--tw-numeric-figure': 'lining-nums'
2088
+ },
2089
+ '.oldstyle-nums': {
2090
+ '--tw-numeric-figure': 'oldstyle-nums'
2091
+ },
2092
+ '.proportional-nums': {
2093
+ '--tw-numeric-spacing': 'proportional-nums'
2094
+ },
2095
+ '.tabular-nums': {
2096
+ '--tw-numeric-spacing': 'tabular-nums'
2097
+ },
2098
+ '.diagonal-fractions': {
2099
+ '--tw-numeric-fraction': 'diagonal-fractions'
2100
+ },
2101
+ '.stacked-fractions': {
2102
+ '--tw-numeric-fraction': 'stacked-fractions'
2103
+ }
2104
+ });
2105
+ };
2106
+
2107
+ exports.fontVariantNumeric = fontVariantNumeric;
2108
+ let lineHeight = (0, _createUtilityPlugin.default)('lineHeight', [['leading', ['lineHeight']]]);
2109
+ exports.lineHeight = lineHeight;
2110
+ let letterSpacing = (0, _createUtilityPlugin.default)('letterSpacing', [['tracking', ['letterSpacing']]]);
2111
+ exports.letterSpacing = letterSpacing;
2112
+
2113
+ let textColor = ({
2114
+ matchUtilities,
2115
+ theme,
2116
+ corePlugins
2117
+ }) => {
2118
+ matchUtilities({
2119
+ text: value => {
2120
+ if (!corePlugins('textOpacity')) {
2121
+ return {
2122
+ color: (0, _toColorValue.default)(value)
2123
+ };
2124
+ }
2125
+
2126
+ return (0, _withAlphaVariable.default)({
2127
+ color: value,
2128
+ property: 'color',
2129
+ variable: '--tw-text-opacity'
2130
+ });
2131
+ }
2132
+ }, {
2133
+ values: (0, _flattenColorPalette.default)(theme('textColor')),
2134
+ type: 'color'
2135
+ });
2136
+ };
2137
+
2138
+ exports.textColor = textColor;
2139
+ let textOpacity = (0, _createUtilityPlugin.default)('textOpacity', [['text-opacity', ['--tw-text-opacity']]]);
2140
+ exports.textOpacity = textOpacity;
2141
+
2142
+ let textDecoration = ({
2143
+ addUtilities
2144
+ }) => {
2145
+ addUtilities({
2146
+ '.underline': {
2147
+ 'text-decoration': 'underline'
2148
+ },
2149
+ '.line-through': {
2150
+ 'text-decoration': 'line-through'
2151
+ },
2152
+ '.no-underline': {
2153
+ 'text-decoration': 'none'
2154
+ }
2155
+ });
2156
+ };
2157
+
2158
+ exports.textDecoration = textDecoration;
2159
+
2160
+ let fontSmoothing = ({
2161
+ addUtilities
2162
+ }) => {
2163
+ addUtilities({
2164
+ '.antialiased': {
2165
+ '-webkit-font-smoothing': 'antialiased',
2166
+ '-moz-osx-font-smoothing': 'grayscale'
2167
+ },
2168
+ '.subpixel-antialiased': {
2169
+ '-webkit-font-smoothing': 'auto',
2170
+ '-moz-osx-font-smoothing': 'auto'
2171
+ }
2172
+ });
2173
+ };
2174
+
2175
+ exports.fontSmoothing = fontSmoothing;
2176
+
2177
+ let placeholderColor = ({
2178
+ matchUtilities,
2179
+ theme,
2180
+ corePlugins
2181
+ }) => {
2182
+ matchUtilities({
2183
+ placeholder: value => {
2184
+ if (!corePlugins('placeholderOpacity')) {
2185
+ return {
2186
+ '&::placeholder': {
2187
+ color: (0, _toColorValue.default)(value)
2188
+ }
2189
+ };
2190
+ }
2191
+
2192
+ return {
2193
+ '&::placeholder': (0, _withAlphaVariable.default)({
2194
+ color: value,
2195
+ property: 'color',
2196
+ variable: '--tw-placeholder-opacity'
2197
+ })
2198
+ };
2199
+ }
2200
+ }, {
2201
+ values: (0, _flattenColorPalette.default)(theme('placeholderColor')),
2202
+ type: ['color', 'any']
2203
+ });
2204
+ };
2205
+
2206
+ exports.placeholderColor = placeholderColor;
2207
+
2208
+ let placeholderOpacity = ({
2209
+ matchUtilities,
2210
+ theme
2211
+ }) => {
2212
+ matchUtilities({
2213
+ 'placeholder-opacity': value => {
2214
+ return {
2215
+ ['&::placeholder']: {
2216
+ '--tw-placeholder-opacity': value
2217
+ }
2218
+ };
2219
+ }
2220
+ }, {
2221
+ values: theme('placeholderOpacity'),
2222
+ type: 'any'
2223
+ });
2224
+ };
2225
+
2226
+ exports.placeholderOpacity = placeholderOpacity;
2227
+
2228
+ let caretColor = ({
2229
+ matchUtilities,
2230
+ theme
2231
+ }) => {
2232
+ matchUtilities({
2233
+ caret: value => {
2234
+ return {
2235
+ 'caret-color': (0, _toColorValue.default)(value)
2236
+ };
2237
+ }
2238
+ }, {
2239
+ values: (0, _flattenColorPalette.default)(theme('caretColor')),
2240
+ type: ['color', 'any']
2241
+ });
2242
+ };
2243
+
2244
+ exports.caretColor = caretColor;
2245
+
2246
+ let accentColor = ({
2247
+ matchUtilities,
2248
+ theme
2249
+ }) => {
2250
+ matchUtilities({
2251
+ accent: value => {
2252
+ return {
2253
+ 'accent-color': (0, _toColorValue.default)(value)
2254
+ };
2255
+ }
2256
+ }, {
2257
+ values: (0, _flattenColorPalette.default)(theme('accentColor')),
2258
+ type: ['color', 'any']
2259
+ });
2260
+ };
2261
+
2262
+ exports.accentColor = accentColor;
2263
+ let opacity = (0, _createUtilityPlugin.default)('opacity', [['opacity', ['opacity']]]);
2264
+ exports.opacity = opacity;
2265
+
2266
+ let backgroundBlendMode = ({
2267
+ addUtilities
2268
+ }) => {
2269
+ addUtilities({
2270
+ '.bg-blend-normal': {
2271
+ 'background-blend-mode': 'normal'
2272
+ },
2273
+ '.bg-blend-multiply': {
2274
+ 'background-blend-mode': 'multiply'
2275
+ },
2276
+ '.bg-blend-screen': {
2277
+ 'background-blend-mode': 'screen'
2278
+ },
2279
+ '.bg-blend-overlay': {
2280
+ 'background-blend-mode': 'overlay'
2281
+ },
2282
+ '.bg-blend-darken': {
2283
+ 'background-blend-mode': 'darken'
2284
+ },
2285
+ '.bg-blend-lighten': {
2286
+ 'background-blend-mode': 'lighten'
2287
+ },
2288
+ '.bg-blend-color-dodge': {
2289
+ 'background-blend-mode': 'color-dodge'
2290
+ },
2291
+ '.bg-blend-color-burn': {
2292
+ 'background-blend-mode': 'color-burn'
2293
+ },
2294
+ '.bg-blend-hard-light': {
2295
+ 'background-blend-mode': 'hard-light'
2296
+ },
2297
+ '.bg-blend-soft-light': {
2298
+ 'background-blend-mode': 'soft-light'
2299
+ },
2300
+ '.bg-blend-difference': {
2301
+ 'background-blend-mode': 'difference'
2302
+ },
2303
+ '.bg-blend-exclusion': {
2304
+ 'background-blend-mode': 'exclusion'
2305
+ },
2306
+ '.bg-blend-hue': {
2307
+ 'background-blend-mode': 'hue'
2308
+ },
2309
+ '.bg-blend-saturation': {
2310
+ 'background-blend-mode': 'saturation'
2311
+ },
2312
+ '.bg-blend-color': {
2313
+ 'background-blend-mode': 'color'
2314
+ },
2315
+ '.bg-blend-luminosity': {
2316
+ 'background-blend-mode': 'luminosity'
2317
+ }
2318
+ });
2319
+ };
2320
+
2321
+ exports.backgroundBlendMode = backgroundBlendMode;
2322
+
2323
+ let mixBlendMode = ({
2324
+ addUtilities
2325
+ }) => {
2326
+ addUtilities({
2327
+ '.mix-blend-normal': {
2328
+ 'mix-blend-mode': 'normal'
2329
+ },
2330
+ '.mix-blend-multiply': {
2331
+ 'mix-blend-mode': 'multiply'
2332
+ },
2333
+ '.mix-blend-screen': {
2334
+ 'mix-blend-mode': 'screen'
2335
+ },
2336
+ '.mix-blend-overlay': {
2337
+ 'mix-blend-mode': 'overlay'
2338
+ },
2339
+ '.mix-blend-darken': {
2340
+ 'mix-blend-mode': 'darken'
2341
+ },
2342
+ '.mix-blend-lighten': {
2343
+ 'mix-blend-mode': 'lighten'
2344
+ },
2345
+ '.mix-blend-color-dodge': {
2346
+ 'mix-blend-mode': 'color-dodge'
2347
+ },
2348
+ '.mix-blend-color-burn': {
2349
+ 'mix-blend-mode': 'color-burn'
2350
+ },
2351
+ '.mix-blend-hard-light': {
2352
+ 'mix-blend-mode': 'hard-light'
2353
+ },
2354
+ '.mix-blend-soft-light': {
2355
+ 'mix-blend-mode': 'soft-light'
2356
+ },
2357
+ '.mix-blend-difference': {
2358
+ 'mix-blend-mode': 'difference'
2359
+ },
2360
+ '.mix-blend-exclusion': {
2361
+ 'mix-blend-mode': 'exclusion'
2362
+ },
2363
+ '.mix-blend-hue': {
2364
+ 'mix-blend-mode': 'hue'
2365
+ },
2366
+ '.mix-blend-saturation': {
2367
+ 'mix-blend-mode': 'saturation'
2368
+ },
2369
+ '.mix-blend-color': {
2370
+ 'mix-blend-mode': 'color'
2371
+ },
2372
+ '.mix-blend-luminosity': {
2373
+ 'mix-blend-mode': 'luminosity'
2374
+ }
2375
+ });
2376
+ };
2377
+
2378
+ exports.mixBlendMode = mixBlendMode;
2379
+
2380
+ let boxShadow = (() => {
2381
+ let transformValue = (0, _transformThemeValue.default)('boxShadow');
2382
+ let defaultBoxShadow = [`var(--tw-ring-offset-shadow, 0 0 #0000)`, `var(--tw-ring-shadow, 0 0 #0000)`, `var(--tw-shadow)`].join(', ');
2383
+ return function ({
2384
+ matchUtilities,
2385
+ addBase,
2386
+ theme
2387
+ }) {
2388
+ addBase({
2389
+ '@defaults box-shadow': {
2390
+ '--tw-ring-offset-shadow': '0 0 #0000',
2391
+ '--tw-ring-shadow': '0 0 #0000',
2392
+ '--tw-shadow': '0 0 #0000'
2393
+ }
2394
+ });
2395
+ matchUtilities({
2396
+ shadow: value => {
2397
+ value = transformValue(value);
2398
+ return {
2399
+ '@defaults box-shadow': {},
2400
+ '--tw-shadow': value === 'none' ? '0 0 #0000' : value,
2401
+ 'box-shadow': defaultBoxShadow
2402
+ };
2403
+ }
2404
+ }, {
2405
+ values: theme('boxShadow')
2406
+ });
2407
+ };
2408
+ })();
2409
+
2410
+ exports.boxShadow = boxShadow;
2411
+
2412
+ let outline = ({
2413
+ matchUtilities,
2414
+ theme
2415
+ }) => {
2416
+ matchUtilities({
2417
+ outline: value => {
2418
+ let [outline, outlineOffset = '0'] = Array.isArray(value) ? value : [value];
2419
+ return {
2420
+ outline,
2421
+ 'outline-offset': outlineOffset
2422
+ };
2423
+ }
2424
+ }, {
2425
+ values: theme('outline'),
2426
+ type: 'any'
2427
+ });
2428
+ };
2429
+
2430
+ exports.outline = outline;
2431
+
2432
+ let ringWidth = ({
2433
+ matchUtilities,
2434
+ addBase,
2435
+ addUtilities,
2436
+ theme
2437
+ }) => {
2438
+ let ringOpacityDefault = theme('ringOpacity.DEFAULT', '0.5');
2439
+ let ringColorDefault = (0, _withAlphaVariable.withAlphaValue)(theme('ringColor.DEFAULT'), ringOpacityDefault, `rgb(147 197 253 / ${ringOpacityDefault})`);
2440
+ addBase({
2441
+ '@defaults ring-width': {
2442
+ '--tw-ring-inset': 'var(--tw-empty,/*!*/ /*!*/)',
2443
+ '--tw-ring-offset-width': theme('ringOffsetWidth.DEFAULT', '0px'),
2444
+ '--tw-ring-offset-color': theme('ringOffsetColor.DEFAULT', '#fff'),
2445
+ '--tw-ring-color': ringColorDefault,
2446
+ '--tw-ring-offset-shadow': '0 0 #0000',
2447
+ '--tw-ring-shadow': '0 0 #0000',
2448
+ '--tw-shadow': '0 0 #0000'
2449
+ }
2450
+ });
2451
+ matchUtilities({
2452
+ ring: value => {
2453
+ return {
2454
+ '@defaults ring-width': {},
2455
+ '--tw-ring-offset-shadow': `var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`,
2456
+ '--tw-ring-shadow': `var(--tw-ring-inset) 0 0 0 calc(${value} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,
2457
+ 'box-shadow': [`var(--tw-ring-offset-shadow)`, `var(--tw-ring-shadow)`, `var(--tw-shadow, 0 0 #0000)`].join(', ')
2458
+ };
2459
+ }
2460
+ }, {
2461
+ values: theme('ringWidth'),
2462
+ type: 'length'
2463
+ });
2464
+ addUtilities({
2465
+ '.ring-inset': {
2466
+ '@defaults ring-width': {},
2467
+ '--tw-ring-inset': 'inset'
2468
+ }
2469
+ });
2470
+ };
2471
+
2472
+ exports.ringWidth = ringWidth;
2473
+
2474
+ let ringColor = ({
2475
+ matchUtilities,
2476
+ theme
2477
+ }) => {
2478
+ matchUtilities({
2479
+ ring: value => {
2480
+ return (0, _withAlphaVariable.default)({
2481
+ color: value,
2482
+ property: '--tw-ring-color',
2483
+ variable: '--tw-ring-opacity'
2484
+ });
2485
+ }
2486
+ }, {
2487
+ values: Object.fromEntries(Object.entries((0, _flattenColorPalette.default)(theme('ringColor'))).filter(([modifier]) => modifier !== 'DEFAULT')),
2488
+ type: 'color'
2489
+ });
2490
+ };
2491
+
2492
+ exports.ringColor = ringColor;
2493
+ let ringOpacity = (0, _createUtilityPlugin.default)('ringOpacity', [['ring-opacity', ['--tw-ring-opacity']]], {
2494
+ filterDefault: true
2495
+ });
2496
+ exports.ringOpacity = ringOpacity;
2497
+ let ringOffsetWidth = (0, _createUtilityPlugin.default)('ringOffsetWidth', [['ring-offset', ['--tw-ring-offset-width']]], {
2498
+ resolveArbitraryValue: _pluginUtils.asLength
2499
+ });
2500
+ exports.ringOffsetWidth = ringOffsetWidth;
2501
+
2502
+ let ringOffsetColor = ({
2503
+ matchUtilities,
2504
+ theme
2505
+ }) => {
2506
+ matchUtilities({
2507
+ 'ring-offset': value => {
2508
+ return {
2509
+ '--tw-ring-offset-color': (0, _toColorValue.default)(value)
2510
+ };
2511
+ }
2512
+ }, {
2513
+ values: (0, _flattenColorPalette.default)(theme('ringOffsetColor')),
2514
+ type: 'color'
2515
+ });
2516
+ };
2517
+
2518
+ exports.ringOffsetColor = ringOffsetColor;
2519
+
2520
+ let blur = ({
2521
+ matchUtilities,
2522
+ theme
2523
+ }) => {
2524
+ matchUtilities({
2525
+ blur: value => {
2526
+ return {
2527
+ '--tw-blur': `blur(${value})`,
2528
+ '@defaults filter': {},
2529
+ filter: 'var(--tw-filter)'
2530
+ };
2531
+ }
2532
+ }, {
2533
+ values: theme('blur'),
2534
+ type: 'any'
2535
+ });
2536
+ };
2537
+
2538
+ exports.blur = blur;
2539
+
2540
+ let brightness = ({
2541
+ matchUtilities,
2542
+ theme
2543
+ }) => {
2544
+ matchUtilities({
2545
+ brightness: value => {
2546
+ return {
2547
+ '--tw-brightness': `brightness(${value})`,
2548
+ '@defaults filter': {},
2549
+ filter: 'var(--tw-filter)'
2550
+ };
2551
+ }
2552
+ }, {
2553
+ values: theme('brightness'),
2554
+ type: 'any'
2555
+ });
2556
+ };
2557
+
2558
+ exports.brightness = brightness;
2559
+
2560
+ let contrast = ({
2561
+ matchUtilities,
2562
+ theme
2563
+ }) => {
2564
+ matchUtilities({
2565
+ contrast: value => {
2566
+ return {
2567
+ '--tw-contrast': `contrast(${value})`,
2568
+ '@defaults filter': {},
2569
+ filter: 'var(--tw-filter)'
2570
+ };
2571
+ }
2572
+ }, {
2573
+ values: theme('contrast'),
2574
+ type: 'any'
2575
+ });
2576
+ };
2577
+
2578
+ exports.contrast = contrast;
2579
+
2580
+ let dropShadow = ({
2581
+ matchUtilities,
2582
+ theme
2583
+ }) => {
2584
+ matchUtilities({
2585
+ 'drop-shadow': value => {
2586
+ return {
2587
+ '--tw-drop-shadow': Array.isArray(value) ? value.map(v => `drop-shadow(${v})`).join(' ') : `drop-shadow(${value})`,
2588
+ '@defaults filter': {},
2589
+ filter: 'var(--tw-filter)'
2590
+ };
2591
+ }
2592
+ }, {
2593
+ values: theme('dropShadow')
2594
+ });
2595
+ };
2596
+
2597
+ exports.dropShadow = dropShadow;
2598
+
2599
+ let grayscale = ({
2600
+ matchUtilities,
2601
+ theme
2602
+ }) => {
2603
+ matchUtilities({
2604
+ grayscale: value => {
2605
+ return {
2606
+ '--tw-grayscale': `grayscale(${value})`,
2607
+ '@defaults filter': {},
2608
+ filter: 'var(--tw-filter)'
2609
+ };
2610
+ }
2611
+ }, {
2612
+ values: theme('grayscale'),
2613
+ type: 'any'
2614
+ });
2615
+ };
2616
+
2617
+ exports.grayscale = grayscale;
2618
+
2619
+ let hueRotate = ({
2620
+ matchUtilities,
2621
+ theme
2622
+ }) => {
2623
+ matchUtilities({
2624
+ 'hue-rotate': value => {
2625
+ return {
2626
+ '--tw-hue-rotate': `hue-rotate(${value})`,
2627
+ '@defaults filter': {},
2628
+ filter: 'var(--tw-filter)'
2629
+ };
2630
+ }
2631
+ }, {
2632
+ values: theme('hueRotate'),
2633
+ type: 'any'
2634
+ });
2635
+ };
2636
+
2637
+ exports.hueRotate = hueRotate;
2638
+
2639
+ let invert = ({
2640
+ matchUtilities,
2641
+ theme
2642
+ }) => {
2643
+ matchUtilities({
2644
+ invert: value => {
2645
+ return {
2646
+ '--tw-invert': `invert(${value})`,
2647
+ '@defaults filter': {},
2648
+ filter: 'var(--tw-filter)'
2649
+ };
2650
+ }
2651
+ }, {
2652
+ values: theme('invert'),
2653
+ type: 'any'
2654
+ });
2655
+ };
2656
+
2657
+ exports.invert = invert;
2658
+
2659
+ let saturate = ({
2660
+ matchUtilities,
2661
+ theme
2662
+ }) => {
2663
+ matchUtilities({
2664
+ saturate: value => {
2665
+ return {
2666
+ '--tw-saturate': `saturate(${value})`,
2667
+ '@defaults filter': {},
2668
+ filter: 'var(--tw-filter)'
2669
+ };
2670
+ }
2671
+ }, {
2672
+ values: theme('saturate'),
2673
+ type: 'any'
2674
+ });
2675
+ };
2676
+
2677
+ exports.saturate = saturate;
2678
+
2679
+ let sepia = ({
2680
+ matchUtilities,
2681
+ theme
2682
+ }) => {
2683
+ matchUtilities({
2684
+ sepia: value => {
2685
+ return {
2686
+ '--tw-sepia': `sepia(${value})`,
2687
+ '@defaults filter': {},
2688
+ filter: 'var(--tw-filter)'
2689
+ };
2690
+ }
2691
+ }, {
2692
+ values: theme('sepia'),
2693
+ type: 'any'
2694
+ });
2695
+ };
2696
+
2697
+ exports.sepia = sepia;
2698
+
2699
+ let filter = ({
2700
+ addBase,
2701
+ addUtilities
2702
+ }) => {
2703
+ addBase({
2704
+ '@defaults filter': {
2705
+ '--tw-blur': 'var(--tw-empty,/*!*/ /*!*/)',
2706
+ '--tw-brightness': 'var(--tw-empty,/*!*/ /*!*/)',
2707
+ '--tw-contrast': 'var(--tw-empty,/*!*/ /*!*/)',
2708
+ '--tw-grayscale': 'var(--tw-empty,/*!*/ /*!*/)',
2709
+ '--tw-hue-rotate': 'var(--tw-empty,/*!*/ /*!*/)',
2710
+ '--tw-invert': 'var(--tw-empty,/*!*/ /*!*/)',
2711
+ '--tw-saturate': 'var(--tw-empty,/*!*/ /*!*/)',
2712
+ '--tw-sepia': 'var(--tw-empty,/*!*/ /*!*/)',
2713
+ '--tw-drop-shadow': 'var(--tw-empty,/*!*/ /*!*/)',
2714
+ '--tw-filter': ['var(--tw-blur)', 'var(--tw-brightness)', 'var(--tw-contrast)', 'var(--tw-grayscale)', 'var(--tw-hue-rotate)', 'var(--tw-invert)', 'var(--tw-saturate)', 'var(--tw-sepia)', 'var(--tw-drop-shadow)'].join(' ')
2715
+ }
2716
+ });
2717
+ addUtilities({
2718
+ '.filter': {
2719
+ '@defaults filter': {},
2720
+ filter: 'var(--tw-filter)'
2721
+ },
2722
+ '.filter-none': {
2723
+ filter: 'none'
2724
+ }
2725
+ });
2726
+ };
2727
+
2728
+ exports.filter = filter;
2729
+
2730
+ let backdropBlur = ({
2731
+ matchUtilities,
2732
+ theme
2733
+ }) => {
2734
+ matchUtilities({
2735
+ 'backdrop-blur': value => {
2736
+ return {
2737
+ '--tw-backdrop-blur': `blur(${value})`,
2738
+ '@defaults backdrop-filter': {},
2739
+ 'backdrop-filter': 'var(--tw-backdrop-filter)'
2740
+ };
2741
+ }
2742
+ }, {
2743
+ values: theme('backdropBlur'),
2744
+ type: 'any'
2745
+ });
2746
+ };
2747
+
2748
+ exports.backdropBlur = backdropBlur;
2749
+
2750
+ let backdropBrightness = ({
2751
+ matchUtilities,
2752
+ theme
2753
+ }) => {
2754
+ matchUtilities({
2755
+ 'backdrop-brightness': value => {
2756
+ return {
2757
+ '--tw-backdrop-brightness': `brightness(${value})`,
2758
+ '@defaults backdrop-filter': {},
2759
+ 'backdrop-filter': 'var(--tw-backdrop-filter)'
2760
+ };
2761
+ }
2762
+ }, {
2763
+ values: theme('backdropBrightness'),
2764
+ type: 'any'
2765
+ });
2766
+ };
2767
+
2768
+ exports.backdropBrightness = backdropBrightness;
2769
+
2770
+ let backdropContrast = ({
2771
+ matchUtilities,
2772
+ theme
2773
+ }) => {
2774
+ matchUtilities({
2775
+ 'backdrop-contrast': value => {
2776
+ return {
2777
+ '--tw-backdrop-contrast': `contrast(${value})`,
2778
+ '@defaults backdrop-filter': {},
2779
+ 'backdrop-filter': 'var(--tw-backdrop-filter)'
2780
+ };
2781
+ }
2782
+ }, {
2783
+ values: theme('backdropContrast'),
2784
+ type: 'any'
2785
+ });
2786
+ };
2787
+
2788
+ exports.backdropContrast = backdropContrast;
2789
+
2790
+ let backdropGrayscale = ({
2791
+ matchUtilities,
2792
+ theme
2793
+ }) => {
2794
+ matchUtilities({
2795
+ 'backdrop-grayscale': value => {
2796
+ return {
2797
+ '--tw-backdrop-grayscale': `grayscale(${value})`,
2798
+ '@defaults backdrop-filter': {},
2799
+ 'backdrop-filter': 'var(--tw-backdrop-filter)'
2800
+ };
2801
+ }
2802
+ }, {
2803
+ values: theme('backdropGrayscale'),
2804
+ type: 'any'
2805
+ });
2806
+ };
2807
+
2808
+ exports.backdropGrayscale = backdropGrayscale;
2809
+
2810
+ let backdropHueRotate = ({
2811
+ matchUtilities,
2812
+ theme
2813
+ }) => {
2814
+ matchUtilities({
2815
+ 'backdrop-hue-rotate': value => {
2816
+ return {
2817
+ '--tw-backdrop-hue-rotate': `hue-rotate(${value})`,
2818
+ '@defaults backdrop-filter': {},
2819
+ 'backdrop-filter': 'var(--tw-backdrop-filter)'
2820
+ };
2821
+ }
2822
+ }, {
2823
+ values: theme('backdropHueRotate'),
2824
+ type: 'any'
2825
+ });
2826
+ };
2827
+
2828
+ exports.backdropHueRotate = backdropHueRotate;
2829
+
2830
+ let backdropInvert = ({
2831
+ matchUtilities,
2832
+ theme
2833
+ }) => {
2834
+ matchUtilities({
2835
+ 'backdrop-invert': value => {
2836
+ return {
2837
+ '--tw-backdrop-invert': `invert(${value})`,
2838
+ '@defaults backdrop-filter': {},
2839
+ 'backdrop-filter': 'var(--tw-backdrop-filter)'
2840
+ };
2841
+ }
2842
+ }, {
2843
+ values: theme('backdropInvert'),
2844
+ type: 'any'
2845
+ });
2846
+ };
2847
+
2848
+ exports.backdropInvert = backdropInvert;
2849
+
2850
+ let backdropOpacity = ({
2851
+ matchUtilities,
2852
+ theme
2853
+ }) => {
2854
+ matchUtilities({
2855
+ 'backdrop-opacity': value => {
2856
+ return {
2857
+ '--tw-backdrop-opacity': `opacity(${value})`,
2858
+ '@defaults backdrop-filter': {},
2859
+ 'backdrop-filter': 'var(--tw-backdrop-filter)'
2860
+ };
2861
+ }
2862
+ }, {
2863
+ values: theme('backdropOpacity'),
2864
+ type: 'any'
2865
+ });
2866
+ };
2867
+
2868
+ exports.backdropOpacity = backdropOpacity;
2869
+
2870
+ let backdropSaturate = ({
2871
+ matchUtilities,
2872
+ theme
2873
+ }) => {
2874
+ matchUtilities({
2875
+ 'backdrop-saturate': value => {
2876
+ return {
2877
+ '--tw-backdrop-saturate': `saturate(${value})`,
2878
+ '@defaults backdrop-filter': {},
2879
+ 'backdrop-filter': 'var(--tw-backdrop-filter)'
2880
+ };
2881
+ }
2882
+ }, {
2883
+ values: theme('backdropSaturate'),
2884
+ type: 'any'
2885
+ });
2886
+ };
2887
+
2888
+ exports.backdropSaturate = backdropSaturate;
2889
+
2890
+ let backdropSepia = ({
2891
+ matchUtilities,
2892
+ theme
2893
+ }) => {
2894
+ matchUtilities({
2895
+ 'backdrop-sepia': value => {
2896
+ return {
2897
+ '--tw-backdrop-sepia': `sepia(${value})`,
2898
+ '@defaults backdrop-filter': {},
2899
+ 'backdrop-filter': 'var(--tw-backdrop-filter)'
2900
+ };
2901
+ }
2902
+ }, {
2903
+ values: theme('backdropSepia'),
2904
+ type: 'any'
2905
+ });
2906
+ };
2907
+
2908
+ exports.backdropSepia = backdropSepia;
2909
+
2910
+ let backdropFilter = ({
2911
+ addBase,
2912
+ addUtilities
2913
+ }) => {
2914
+ addBase({
2915
+ '@defaults backdrop-filter': {
2916
+ '--tw-backdrop-blur': 'var(--tw-empty,/*!*/ /*!*/)',
2917
+ '--tw-backdrop-brightness': 'var(--tw-empty,/*!*/ /*!*/)',
2918
+ '--tw-backdrop-contrast': 'var(--tw-empty,/*!*/ /*!*/)',
2919
+ '--tw-backdrop-grayscale': 'var(--tw-empty,/*!*/ /*!*/)',
2920
+ '--tw-backdrop-hue-rotate': 'var(--tw-empty,/*!*/ /*!*/)',
2921
+ '--tw-backdrop-invert': 'var(--tw-empty,/*!*/ /*!*/)',
2922
+ '--tw-backdrop-opacity': 'var(--tw-empty,/*!*/ /*!*/)',
2923
+ '--tw-backdrop-saturate': 'var(--tw-empty,/*!*/ /*!*/)',
2924
+ '--tw-backdrop-sepia': 'var(--tw-empty,/*!*/ /*!*/)',
2925
+ '--tw-backdrop-filter': ['var(--tw-backdrop-blur)', 'var(--tw-backdrop-brightness)', 'var(--tw-backdrop-contrast)', 'var(--tw-backdrop-grayscale)', 'var(--tw-backdrop-hue-rotate)', 'var(--tw-backdrop-invert)', 'var(--tw-backdrop-opacity)', 'var(--tw-backdrop-saturate)', 'var(--tw-backdrop-sepia)'].join(' ')
2926
+ }
2927
+ });
2928
+ addUtilities({
2929
+ '.backdrop-filter': {
2930
+ '@defaults backdrop-filter': {},
2931
+ 'backdrop-filter': 'var(--tw-backdrop-filter)'
2932
+ },
2933
+ '.backdrop-filter-none': {
2934
+ 'backdrop-filter': 'none'
2935
+ }
2936
+ });
2937
+ };
2938
+
2939
+ exports.backdropFilter = backdropFilter;
2940
+
2941
+ let transitionProperty = ({
2942
+ matchUtilities,
2943
+ theme
2944
+ }) => {
2945
+ let defaultTimingFunction = theme('transitionTimingFunction.DEFAULT');
2946
+ let defaultDuration = theme('transitionDuration.DEFAULT');
2947
+ matchUtilities({
2948
+ transition: value => {
2949
+ return {
2950
+ 'transition-property': value,
2951
+ ...(value === 'none' ? {} : {
2952
+ 'transition-timing-function': defaultTimingFunction,
2953
+ 'transition-duration': defaultDuration
2954
+ })
2955
+ };
2956
+ }
2957
+ }, {
2958
+ values: theme('transitionProperty'),
2959
+ type: 'any'
2960
+ });
2961
+ };
2962
+
2963
+ exports.transitionProperty = transitionProperty;
2964
+ let transitionDelay = (0, _createUtilityPlugin.default)('transitionDelay', [['delay', ['transitionDelay']]]);
2965
+ exports.transitionDelay = transitionDelay;
2966
+ let transitionDuration = (0, _createUtilityPlugin.default)('transitionDuration', [['duration', ['transitionDuration']]], {
2967
+ filterDefault: true
2968
+ });
2969
+ exports.transitionDuration = transitionDuration;
2970
+ let transitionTimingFunction = (0, _createUtilityPlugin.default)('transitionTimingFunction', [['ease', ['transitionTimingFunction']]], {
2971
+ filterDefault: true
2972
+ });
2973
+ exports.transitionTimingFunction = transitionTimingFunction;
2974
+ let willChange = (0, _createUtilityPlugin.default)('willChange', [['will-change', ['will-change']]]);
2975
+ exports.willChange = willChange;
2976
+ let content = (0, _createUtilityPlugin.default)('content');
2977
+ exports.content = content;