tailwindcss 0.0.0-insiders.bda8421 → 0.0.0-insiders.bdcd708

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 (279) hide show
  1. package/README.md +7 -11
  2. package/dist/chunk-5JIJA4QV.mjs +1 -0
  3. package/dist/chunk-C2OYBFIH.mjs +1 -0
  4. package/dist/chunk-DCG7AFIE.mjs +1 -0
  5. package/dist/colors-C__qRT83.d.ts +347 -0
  6. package/dist/colors.d.mts +347 -0
  7. package/dist/colors.d.ts +5 -0
  8. package/dist/colors.js +1 -0
  9. package/dist/colors.mjs +1 -0
  10. package/dist/default-theme.d.mts +1199 -0
  11. package/dist/default-theme.d.ts +1199 -0
  12. package/dist/default-theme.js +1 -0
  13. package/dist/default-theme.mjs +1 -0
  14. package/dist/flatten-color-palette.d.mts +6 -0
  15. package/dist/flatten-color-palette.d.ts +6 -0
  16. package/dist/flatten-color-palette.js +1 -0
  17. package/dist/flatten-color-palette.mjs +1 -0
  18. package/dist/lib.d.mts +379 -0
  19. package/dist/lib.d.ts +3 -0
  20. package/dist/lib.js +38 -0
  21. package/dist/lib.mjs +38 -0
  22. package/dist/plugin.d.mts +11 -0
  23. package/dist/plugin.d.ts +134 -0
  24. package/dist/plugin.js +1 -0
  25. package/dist/plugin.mjs +1 -0
  26. package/dist/resolve-config-B4yBzhca.d.ts +29 -0
  27. package/dist/resolve-config-QUZ9b-Gn.d.mts +190 -0
  28. package/dist/types-DWdTiksJ.d.mts +128 -0
  29. package/index.css +950 -0
  30. package/package.json +76 -105
  31. package/preflight.css +398 -0
  32. package/theme.css +510 -0
  33. package/base.css +0 -1
  34. package/colors.d.ts +0 -3
  35. package/colors.js +0 -2
  36. package/components.css +0 -1
  37. package/defaultConfig.d.ts +0 -3
  38. package/defaultConfig.js +0 -2
  39. package/defaultTheme.d.ts +0 -4
  40. package/defaultTheme.js +0 -2
  41. package/lib/cli/build/deps.js +0 -62
  42. package/lib/cli/build/index.js +0 -54
  43. package/lib/cli/build/plugin.js +0 -371
  44. package/lib/cli/build/utils.js +0 -88
  45. package/lib/cli/build/watching.js +0 -182
  46. package/lib/cli/help/index.js +0 -73
  47. package/lib/cli/index.js +0 -230
  48. package/lib/cli/init/index.js +0 -63
  49. package/lib/cli-peer-dependencies.js +0 -36
  50. package/lib/cli.js +0 -3
  51. package/lib/corePluginList.js +0 -191
  52. package/lib/corePlugins.js +0 -4311
  53. package/lib/css/LICENSE +0 -25
  54. package/lib/css/preflight.css +0 -386
  55. package/lib/featureFlags.js +0 -79
  56. package/lib/index.js +0 -2
  57. package/lib/lib/cacheInvalidation.js +0 -92
  58. package/lib/lib/collapseAdjacentRules.js +0 -61
  59. package/lib/lib/collapseDuplicateDeclarations.js +0 -85
  60. package/lib/lib/content.js +0 -214
  61. package/lib/lib/defaultExtractor.js +0 -251
  62. package/lib/lib/evaluateTailwindFunctions.js +0 -238
  63. package/lib/lib/expandApplyAtRules.js +0 -553
  64. package/lib/lib/expandTailwindAtRules.js +0 -279
  65. package/lib/lib/findAtConfigPath.js +0 -46
  66. package/lib/lib/generateRules.js +0 -904
  67. package/lib/lib/getModuleDependencies.js +0 -99
  68. package/lib/lib/load-config.js +0 -57
  69. package/lib/lib/normalizeTailwindDirectives.js +0 -89
  70. package/lib/lib/offsets.js +0 -355
  71. package/lib/lib/partitionApplyAtRules.js +0 -58
  72. package/lib/lib/regex.js +0 -74
  73. package/lib/lib/remap-bitfield.js +0 -89
  74. package/lib/lib/resolveDefaultsAtRules.js +0 -167
  75. package/lib/lib/setupContextUtils.js +0 -1298
  76. package/lib/lib/setupTrackingContext.js +0 -166
  77. package/lib/lib/sharedState.js +0 -79
  78. package/lib/lib/substituteScreenAtRules.js +0 -31
  79. package/lib/plugin.js +0 -48
  80. package/lib/postcss-plugins/nesting/README.md +0 -42
  81. package/lib/postcss-plugins/nesting/index.js +0 -21
  82. package/lib/postcss-plugins/nesting/plugin.js +0 -89
  83. package/lib/processTailwindFeatures.js +0 -62
  84. package/lib/public/colors.js +0 -355
  85. package/lib/public/create-plugin.js +0 -17
  86. package/lib/public/default-config.js +0 -18
  87. package/lib/public/default-theme.js +0 -18
  88. package/lib/public/load-config.js +0 -12
  89. package/lib/public/resolve-config.js +0 -24
  90. package/lib/util/applyImportantSelector.js +0 -36
  91. package/lib/util/bigSign.js +0 -13
  92. package/lib/util/buildMediaQuery.js +0 -27
  93. package/lib/util/cloneDeep.js +0 -22
  94. package/lib/util/cloneNodes.js +0 -54
  95. package/lib/util/color.js +0 -116
  96. package/lib/util/colorNames.js +0 -752
  97. package/lib/util/configurePlugins.js +0 -23
  98. package/lib/util/createPlugin.js +0 -32
  99. package/lib/util/createUtilityPlugin.js +0 -53
  100. package/lib/util/dataTypes.js +0 -415
  101. package/lib/util/defaults.js +0 -27
  102. package/lib/util/escapeClassName.js +0 -24
  103. package/lib/util/escapeCommas.js +0 -13
  104. package/lib/util/flattenColorPalette.js +0 -18
  105. package/lib/util/formatVariantSelector.js +0 -270
  106. package/lib/util/getAllConfigs.js +0 -50
  107. package/lib/util/hashConfig.js +0 -21
  108. package/lib/util/isKeyframeRule.js +0 -13
  109. package/lib/util/isPlainObject.js +0 -17
  110. package/lib/util/isSyntacticallyValidPropertyValue.js +0 -74
  111. package/lib/util/log.js +0 -61
  112. package/lib/util/nameClass.js +0 -49
  113. package/lib/util/negateValue.js +0 -36
  114. package/lib/util/normalizeConfig.js +0 -282
  115. package/lib/util/normalizeScreens.js +0 -178
  116. package/lib/util/parseAnimationValue.js +0 -93
  117. package/lib/util/parseBoxShadowValue.js +0 -88
  118. package/lib/util/parseDependency.js +0 -47
  119. package/lib/util/parseGlob.js +0 -36
  120. package/lib/util/parseObjectStyles.js +0 -36
  121. package/lib/util/pluginUtils.js +0 -289
  122. package/lib/util/prefixSelector.js +0 -39
  123. package/lib/util/pseudoElements.js +0 -212
  124. package/lib/util/removeAlphaVariables.js +0 -31
  125. package/lib/util/resolveConfig.js +0 -256
  126. package/lib/util/resolveConfigPath.js +0 -70
  127. package/lib/util/responsive.js +0 -24
  128. package/lib/util/splitAtTopLevelOnly.js +0 -51
  129. package/lib/util/tap.js +0 -14
  130. package/lib/util/toColorValue.js +0 -13
  131. package/lib/util/toPath.js +0 -32
  132. package/lib/util/transformThemeValue.js +0 -73
  133. package/lib/util/validateConfig.js +0 -37
  134. package/lib/util/validateFormalSyntax.js +0 -26
  135. package/lib/util/withAlphaVariable.js +0 -79
  136. package/lib/value-parser/LICENSE +0 -22
  137. package/lib/value-parser/README.md +0 -3
  138. package/lib/value-parser/index.d.js +0 -2
  139. package/lib/value-parser/index.js +0 -22
  140. package/lib/value-parser/parse.js +0 -259
  141. package/lib/value-parser/stringify.js +0 -38
  142. package/lib/value-parser/unit.js +0 -86
  143. package/lib/value-parser/walk.js +0 -16
  144. package/loadConfig.d.ts +0 -4
  145. package/loadConfig.js +0 -2
  146. package/nesting/index.d.ts +0 -4
  147. package/nesting/index.js +0 -2
  148. package/peers/index.js +0 -96503
  149. package/plugin.d.ts +0 -11
  150. package/plugin.js +0 -2
  151. package/prettier.config.js +0 -19
  152. package/resolveConfig.d.ts +0 -31
  153. package/resolveConfig.js +0 -2
  154. package/screens.css +0 -1
  155. package/scripts/create-plugin-list.js +0 -10
  156. package/scripts/generate-types.js +0 -104
  157. package/scripts/release-channel.js +0 -18
  158. package/scripts/release-notes.js +0 -21
  159. package/scripts/type-utils.js +0 -27
  160. package/src/cli/build/deps.js +0 -56
  161. package/src/cli/build/index.js +0 -49
  162. package/src/cli/build/plugin.js +0 -437
  163. package/src/cli/build/utils.js +0 -76
  164. package/src/cli/build/watching.js +0 -229
  165. package/src/cli/help/index.js +0 -70
  166. package/src/cli/index.js +0 -216
  167. package/src/cli/init/index.js +0 -79
  168. package/src/cli-peer-dependencies.js +0 -15
  169. package/src/cli.js +0 -3
  170. package/src/corePluginList.js +0 -1
  171. package/src/corePlugins.js +0 -2965
  172. package/src/css/LICENSE +0 -25
  173. package/src/css/preflight.css +0 -386
  174. package/src/featureFlags.js +0 -62
  175. package/src/index.js +0 -1
  176. package/src/lib/cacheInvalidation.js +0 -52
  177. package/src/lib/collapseAdjacentRules.js +0 -58
  178. package/src/lib/collapseDuplicateDeclarations.js +0 -93
  179. package/src/lib/content.js +0 -249
  180. package/src/lib/defaultExtractor.js +0 -230
  181. package/src/lib/evaluateTailwindFunctions.js +0 -272
  182. package/src/lib/expandApplyAtRules.js +0 -637
  183. package/src/lib/expandTailwindAtRules.js +0 -282
  184. package/src/lib/findAtConfigPath.js +0 -48
  185. package/src/lib/generateRules.js +0 -951
  186. package/src/lib/getModuleDependencies.js +0 -79
  187. package/src/lib/load-config.ts +0 -44
  188. package/src/lib/normalizeTailwindDirectives.js +0 -84
  189. package/src/lib/offsets.js +0 -432
  190. package/src/lib/partitionApplyAtRules.js +0 -52
  191. package/src/lib/regex.js +0 -74
  192. package/src/lib/remap-bitfield.js +0 -82
  193. package/src/lib/resolveDefaultsAtRules.js +0 -167
  194. package/src/lib/setupContextUtils.js +0 -1371
  195. package/src/lib/setupTrackingContext.js +0 -169
  196. package/src/lib/sharedState.js +0 -57
  197. package/src/lib/substituteScreenAtRules.js +0 -19
  198. package/src/plugin.js +0 -47
  199. package/src/postcss-plugins/nesting/README.md +0 -42
  200. package/src/postcss-plugins/nesting/index.js +0 -13
  201. package/src/postcss-plugins/nesting/plugin.js +0 -80
  202. package/src/processTailwindFeatures.js +0 -56
  203. package/src/public/colors.js +0 -322
  204. package/src/public/create-plugin.js +0 -2
  205. package/src/public/default-config.js +0 -4
  206. package/src/public/default-theme.js +0 -4
  207. package/src/public/load-config.js +0 -2
  208. package/src/public/resolve-config.js +0 -7
  209. package/src/util/applyImportantSelector.js +0 -27
  210. package/src/util/bigSign.js +0 -3
  211. package/src/util/buildMediaQuery.js +0 -22
  212. package/src/util/cloneDeep.js +0 -11
  213. package/src/util/cloneNodes.js +0 -49
  214. package/src/util/color.js +0 -88
  215. package/src/util/colorNames.js +0 -150
  216. package/src/util/configurePlugins.js +0 -23
  217. package/src/util/createPlugin.js +0 -27
  218. package/src/util/createUtilityPlugin.js +0 -37
  219. package/src/util/dataTypes.js +0 -406
  220. package/src/util/defaults.js +0 -17
  221. package/src/util/escapeClassName.js +0 -8
  222. package/src/util/escapeCommas.js +0 -3
  223. package/src/util/flattenColorPalette.js +0 -13
  224. package/src/util/formatVariantSelector.js +0 -324
  225. package/src/util/getAllConfigs.js +0 -38
  226. package/src/util/hashConfig.js +0 -5
  227. package/src/util/isKeyframeRule.js +0 -3
  228. package/src/util/isPlainObject.js +0 -8
  229. package/src/util/isSyntacticallyValidPropertyValue.js +0 -61
  230. package/src/util/log.js +0 -29
  231. package/src/util/nameClass.js +0 -30
  232. package/src/util/negateValue.js +0 -24
  233. package/src/util/normalizeConfig.js +0 -301
  234. package/src/util/normalizeScreens.js +0 -140
  235. package/src/util/parseAnimationValue.js +0 -68
  236. package/src/util/parseBoxShadowValue.js +0 -72
  237. package/src/util/parseDependency.js +0 -44
  238. package/src/util/parseGlob.js +0 -24
  239. package/src/util/parseObjectStyles.js +0 -19
  240. package/src/util/pluginUtils.js +0 -307
  241. package/src/util/prefixSelector.js +0 -33
  242. package/src/util/pseudoElements.js +0 -171
  243. package/src/util/removeAlphaVariables.js +0 -24
  244. package/src/util/resolveConfig.js +0 -277
  245. package/src/util/resolveConfigPath.js +0 -66
  246. package/src/util/responsive.js +0 -10
  247. package/src/util/splitAtTopLevelOnly.js +0 -52
  248. package/src/util/tap.js +0 -4
  249. package/src/util/toColorValue.js +0 -3
  250. package/src/util/toPath.js +0 -26
  251. package/src/util/transformThemeValue.js +0 -62
  252. package/src/util/validateConfig.js +0 -26
  253. package/src/util/validateFormalSyntax.js +0 -34
  254. package/src/util/withAlphaVariable.js +0 -49
  255. package/src/value-parser/LICENSE +0 -22
  256. package/src/value-parser/README.md +0 -3
  257. package/src/value-parser/index.d.ts +0 -177
  258. package/src/value-parser/index.js +0 -28
  259. package/src/value-parser/parse.js +0 -303
  260. package/src/value-parser/stringify.js +0 -41
  261. package/src/value-parser/unit.js +0 -118
  262. package/src/value-parser/walk.js +0 -18
  263. package/stubs/.gitignore +0 -1
  264. package/stubs/.prettierrc.json +0 -6
  265. package/stubs/config.full.js +0 -1062
  266. package/stubs/config.simple.js +0 -7
  267. package/stubs/postcss.config.cjs +0 -6
  268. package/stubs/postcss.config.js +0 -6
  269. package/stubs/tailwind.config.cjs +0 -2
  270. package/stubs/tailwind.config.js +0 -2
  271. package/stubs/tailwind.config.ts +0 -3
  272. package/tailwind.css +0 -5
  273. package/types/config.d.ts +0 -376
  274. package/types/generated/.gitkeep +0 -0
  275. package/types/generated/colors.d.ts +0 -298
  276. package/types/generated/corePluginList.d.ts +0 -1
  277. package/types/generated/default-theme.d.ts +0 -397
  278. package/types/index.d.ts +0 -11
  279. package/variants.css +0 -1
@@ -1,4311 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- variantPlugins: function() {
13
- return variantPlugins;
14
- },
15
- corePlugins: function() {
16
- return corePlugins;
17
- }
18
- });
19
- const _fs = /*#__PURE__*/ _interop_require_default(require("fs"));
20
- const _path = /*#__PURE__*/ _interop_require_wildcard(require("path"));
21
- const _postcss = /*#__PURE__*/ _interop_require_default(require("postcss"));
22
- const _createUtilityPlugin = /*#__PURE__*/ _interop_require_default(require("./util/createUtilityPlugin"));
23
- const _buildMediaQuery = /*#__PURE__*/ _interop_require_default(require("./util/buildMediaQuery"));
24
- const _escapeClassName = /*#__PURE__*/ _interop_require_default(require("./util/escapeClassName"));
25
- const _parseAnimationValue = /*#__PURE__*/ _interop_require_default(require("./util/parseAnimationValue"));
26
- const _flattenColorPalette = /*#__PURE__*/ _interop_require_default(require("./util/flattenColorPalette"));
27
- const _withAlphaVariable = /*#__PURE__*/ _interop_require_wildcard(require("./util/withAlphaVariable"));
28
- const _toColorValue = /*#__PURE__*/ _interop_require_default(require("./util/toColorValue"));
29
- const _isPlainObject = /*#__PURE__*/ _interop_require_default(require("./util/isPlainObject"));
30
- const _transformThemeValue = /*#__PURE__*/ _interop_require_default(require("./util/transformThemeValue"));
31
- const _packagejson = require("../package.json");
32
- const _log = /*#__PURE__*/ _interop_require_default(require("./util/log"));
33
- const _normalizeScreens = require("./util/normalizeScreens");
34
- const _parseBoxShadowValue = require("./util/parseBoxShadowValue");
35
- const _removeAlphaVariables = require("./util/removeAlphaVariables");
36
- const _featureFlags = require("./featureFlags");
37
- const _dataTypes = require("./util/dataTypes");
38
- const _setupContextUtils = require("./lib/setupContextUtils");
39
- function _interop_require_default(obj) {
40
- return obj && obj.__esModule ? obj : {
41
- default: obj
42
- };
43
- }
44
- function _getRequireWildcardCache(nodeInterop) {
45
- if (typeof WeakMap !== "function") return null;
46
- var cacheBabelInterop = new WeakMap();
47
- var cacheNodeInterop = new WeakMap();
48
- return (_getRequireWildcardCache = function(nodeInterop) {
49
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
50
- })(nodeInterop);
51
- }
52
- function _interop_require_wildcard(obj, nodeInterop) {
53
- if (!nodeInterop && obj && obj.__esModule) {
54
- return obj;
55
- }
56
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
57
- return {
58
- default: obj
59
- };
60
- }
61
- var cache = _getRequireWildcardCache(nodeInterop);
62
- if (cache && cache.has(obj)) {
63
- return cache.get(obj);
64
- }
65
- var newObj = {};
66
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
67
- for(var key in obj){
68
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
69
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
70
- if (desc && (desc.get || desc.set)) {
71
- Object.defineProperty(newObj, key, desc);
72
- } else {
73
- newObj[key] = obj[key];
74
- }
75
- }
76
- }
77
- newObj.default = obj;
78
- if (cache) {
79
- cache.set(obj, newObj);
80
- }
81
- return newObj;
82
- }
83
- let variantPlugins = {
84
- childVariant: ({ addVariant })=>{
85
- addVariant("*", "& > *");
86
- },
87
- pseudoElementVariants: ({ addVariant })=>{
88
- addVariant("first-letter", "&::first-letter");
89
- addVariant("first-line", "&::first-line");
90
- addVariant("marker", [
91
- ({ container })=>{
92
- (0, _removeAlphaVariables.removeAlphaVariables)(container, [
93
- "--tw-text-opacity"
94
- ]);
95
- return "& *::marker";
96
- },
97
- ({ container })=>{
98
- (0, _removeAlphaVariables.removeAlphaVariables)(container, [
99
- "--tw-text-opacity"
100
- ]);
101
- return "&::marker";
102
- }
103
- ]);
104
- addVariant("selection", [
105
- "& *::selection",
106
- "&::selection"
107
- ]);
108
- addVariant("file", "&::file-selector-button");
109
- addVariant("placeholder", "&::placeholder");
110
- addVariant("backdrop", "&::backdrop");
111
- addVariant("before", ({ container })=>{
112
- container.walkRules((rule)=>{
113
- let foundContent = false;
114
- rule.walkDecls("content", ()=>{
115
- foundContent = true;
116
- });
117
- if (!foundContent) {
118
- rule.prepend(_postcss.default.decl({
119
- prop: "content",
120
- value: "var(--tw-content)"
121
- }));
122
- }
123
- });
124
- return "&::before";
125
- });
126
- addVariant("after", ({ container })=>{
127
- container.walkRules((rule)=>{
128
- let foundContent = false;
129
- rule.walkDecls("content", ()=>{
130
- foundContent = true;
131
- });
132
- if (!foundContent) {
133
- rule.prepend(_postcss.default.decl({
134
- prop: "content",
135
- value: "var(--tw-content)"
136
- }));
137
- }
138
- });
139
- return "&::after";
140
- });
141
- },
142
- pseudoClassVariants: ({ addVariant , matchVariant , config , prefix })=>{
143
- let pseudoVariants = [
144
- // Positional
145
- [
146
- "first",
147
- "&:first-child"
148
- ],
149
- [
150
- "last",
151
- "&:last-child"
152
- ],
153
- [
154
- "only",
155
- "&:only-child"
156
- ],
157
- [
158
- "odd",
159
- "&:nth-child(odd)"
160
- ],
161
- [
162
- "even",
163
- "&:nth-child(even)"
164
- ],
165
- "first-of-type",
166
- "last-of-type",
167
- "only-of-type",
168
- // State
169
- [
170
- "visited",
171
- ({ container })=>{
172
- (0, _removeAlphaVariables.removeAlphaVariables)(container, [
173
- "--tw-text-opacity",
174
- "--tw-border-opacity",
175
- "--tw-bg-opacity"
176
- ]);
177
- return "&:visited";
178
- }
179
- ],
180
- "target",
181
- [
182
- "open",
183
- "&[open]"
184
- ],
185
- // Forms
186
- "default",
187
- "checked",
188
- "indeterminate",
189
- "placeholder-shown",
190
- "autofill",
191
- "optional",
192
- "required",
193
- "valid",
194
- "invalid",
195
- "in-range",
196
- "out-of-range",
197
- "read-only",
198
- // Content
199
- "empty",
200
- // Interactive
201
- "focus-within",
202
- [
203
- "hover",
204
- !(0, _featureFlags.flagEnabled)(config(), "hoverOnlyWhenSupported") ? "&:hover" : "@media (hover: hover) and (pointer: fine) { &:hover }"
205
- ],
206
- "focus",
207
- "focus-visible",
208
- "active",
209
- "enabled",
210
- "disabled"
211
- ].map((variant)=>Array.isArray(variant) ? variant : [
212
- variant,
213
- `&:${variant}`
214
- ]);
215
- for (let [variantName, state] of pseudoVariants){
216
- addVariant(variantName, (ctx)=>{
217
- let result = typeof state === "function" ? state(ctx) : state;
218
- return result;
219
- });
220
- }
221
- let variants = {
222
- group: (_, { modifier })=>modifier ? [
223
- `:merge(${prefix(".group")}\\/${(0, _escapeClassName.default)(modifier)})`,
224
- " &"
225
- ] : [
226
- `:merge(${prefix(".group")})`,
227
- " &"
228
- ],
229
- peer: (_, { modifier })=>modifier ? [
230
- `:merge(${prefix(".peer")}\\/${(0, _escapeClassName.default)(modifier)})`,
231
- " ~ &"
232
- ] : [
233
- `:merge(${prefix(".peer")})`,
234
- " ~ &"
235
- ]
236
- };
237
- for (let [name, fn] of Object.entries(variants)){
238
- matchVariant(name, (value = "", extra)=>{
239
- let result = (0, _dataTypes.normalize)(typeof value === "function" ? value(extra) : value);
240
- if (!result.includes("&")) result = "&" + result;
241
- let [a, b] = fn("", extra);
242
- let start = null;
243
- let end = null;
244
- let quotes = 0;
245
- for(let i = 0; i < result.length; ++i){
246
- let c = result[i];
247
- if (c === "&") {
248
- start = i;
249
- } else if (c === "'" || c === '"') {
250
- quotes += 1;
251
- } else if (start !== null && c === " " && !quotes) {
252
- end = i;
253
- }
254
- }
255
- if (start !== null && end === null) {
256
- end = result.length;
257
- }
258
- // Basically this but can handle quotes:
259
- // result.replace(/&(\S+)?/g, (_, pseudo = '') => a + pseudo + b)
260
- return result.slice(0, start) + a + result.slice(start + 1, end) + b + result.slice(end);
261
- }, {
262
- values: Object.fromEntries(pseudoVariants),
263
- [_setupContextUtils.INTERNAL_FEATURES]: {
264
- respectPrefix: false
265
- }
266
- });
267
- }
268
- },
269
- directionVariants: ({ addVariant })=>{
270
- addVariant("ltr", '&:where([dir="ltr"], [dir="ltr"] *)');
271
- addVariant("rtl", '&:where([dir="rtl"], [dir="rtl"] *)');
272
- },
273
- reducedMotionVariants: ({ addVariant })=>{
274
- addVariant("motion-safe", "@media (prefers-reduced-motion: no-preference)");
275
- addVariant("motion-reduce", "@media (prefers-reduced-motion: reduce)");
276
- },
277
- darkVariants: ({ config , addVariant })=>{
278
- let [mode, selector = ".dark"] = [].concat(config("darkMode", "media"));
279
- if (mode === false) {
280
- mode = "media";
281
- _log.default.warn("darkmode-false", [
282
- "The `darkMode` option in your Tailwind CSS configuration is set to `false`, which now behaves the same as `media`.",
283
- "Change `darkMode` to `media` or remove it entirely.",
284
- "https://tailwindcss.com/docs/upgrade-guide#remove-dark-mode-configuration"
285
- ]);
286
- }
287
- if (mode === "variant") {
288
- let formats;
289
- if (Array.isArray(selector)) {
290
- formats = selector;
291
- } else if (typeof selector === "function") {
292
- formats = selector;
293
- } else if (typeof selector === "string") {
294
- formats = [
295
- selector
296
- ];
297
- }
298
- // TODO: We could also add these warnings if the user passes a function that returns string | string[]
299
- // But this is an advanced enough use case that it's probably not necessary
300
- if (Array.isArray(formats)) {
301
- for (let format of formats){
302
- if (format === ".dark") {
303
- mode = false;
304
- _log.default.warn("darkmode-variant-without-selector", [
305
- "When using `variant` for `darkMode`, you must provide a selector.",
306
- 'Example: `darkMode: ["variant", ".your-selector &"]`'
307
- ]);
308
- } else if (!format.includes("&")) {
309
- mode = false;
310
- _log.default.warn("darkmode-variant-without-ampersand", [
311
- "When using `variant` for `darkMode`, your selector must contain `&`.",
312
- 'Example `darkMode: ["variant", ".your-selector &"]`'
313
- ]);
314
- }
315
- }
316
- }
317
- selector = formats;
318
- }
319
- if (mode === "selector") {
320
- // New preferred behavior
321
- addVariant("dark", `&:where(${selector}, ${selector} *)`);
322
- } else if (mode === "media") {
323
- addVariant("dark", "@media (prefers-color-scheme: dark)");
324
- } else if (mode === "variant") {
325
- addVariant("dark", selector);
326
- } else if (mode === "class") {
327
- // Old behavior
328
- addVariant("dark", `:is(${selector} &)`);
329
- }
330
- },
331
- printVariant: ({ addVariant })=>{
332
- addVariant("print", "@media print");
333
- },
334
- screenVariants: ({ theme , addVariant , matchVariant })=>{
335
- var _theme;
336
- let rawScreens = (_theme = theme("screens")) !== null && _theme !== void 0 ? _theme : {};
337
- let areSimpleScreens = Object.values(rawScreens).every((v)=>typeof v === "string");
338
- let screens = (0, _normalizeScreens.normalizeScreens)(theme("screens"));
339
- /** @type {Set<string>} */ let unitCache = new Set([]);
340
- /** @param {string} value */ function units(value) {
341
- var _value_match;
342
- var _value_match_;
343
- return (_value_match_ = (_value_match = value.match(/(\D+)$/)) === null || _value_match === void 0 ? void 0 : _value_match[1]) !== null && _value_match_ !== void 0 ? _value_match_ : "(none)";
344
- }
345
- /** @param {string} value */ function recordUnits(value) {
346
- if (value !== undefined) {
347
- unitCache.add(units(value));
348
- }
349
- }
350
- /** @param {string} value */ function canUseUnits(value) {
351
- recordUnits(value);
352
- // If the cache was empty it'll become 1 because we've just added the current unit
353
- // If the cache was not empty and the units are the same the size doesn't change
354
- // Otherwise, if the units are different from what is already known the size will always be > 1
355
- return unitCache.size === 1;
356
- }
357
- for (const screen of screens){
358
- for (const value of screen.values){
359
- recordUnits(value.min);
360
- recordUnits(value.max);
361
- }
362
- }
363
- let screensUseConsistentUnits = unitCache.size <= 1;
364
- /**
365
- * @typedef {import('./util/normalizeScreens').Screen} Screen
366
- */ /**
367
- * @param {'min' | 'max'} type
368
- * @returns {Record<string, Screen>}
369
- */ function buildScreenValues(type) {
370
- return Object.fromEntries(screens.filter((screen)=>(0, _normalizeScreens.isScreenSortable)(screen).result).map((screen)=>{
371
- let { min , max } = screen.values[0];
372
- if (type === "min" && min !== undefined) {
373
- return screen;
374
- } else if (type === "min" && max !== undefined) {
375
- return {
376
- ...screen,
377
- not: !screen.not
378
- };
379
- } else if (type === "max" && max !== undefined) {
380
- return screen;
381
- } else if (type === "max" && min !== undefined) {
382
- return {
383
- ...screen,
384
- not: !screen.not
385
- };
386
- }
387
- }).map((screen)=>[
388
- screen.name,
389
- screen
390
- ]));
391
- }
392
- /**
393
- * @param {'min' | 'max'} type
394
- * @returns {(a: { value: string | Screen }, z: { value: string | Screen }) => number}
395
- */ function buildSort(type) {
396
- return (a, z)=>(0, _normalizeScreens.compareScreens)(type, a.value, z.value);
397
- }
398
- let maxSort = buildSort("max");
399
- let minSort = buildSort("min");
400
- /** @param {'min'|'max'} type */ function buildScreenVariant(type) {
401
- return (value)=>{
402
- if (!areSimpleScreens) {
403
- _log.default.warn("complex-screen-config", [
404
- "The `min-*` and `max-*` variants are not supported with a `screens` configuration containing objects."
405
- ]);
406
- return [];
407
- } else if (!screensUseConsistentUnits) {
408
- _log.default.warn("mixed-screen-units", [
409
- "The `min-*` and `max-*` variants are not supported with a `screens` configuration containing mixed units."
410
- ]);
411
- return [];
412
- } else if (typeof value === "string" && !canUseUnits(value)) {
413
- _log.default.warn("minmax-have-mixed-units", [
414
- "The `min-*` and `max-*` variants are not supported with a `screens` configuration containing mixed units."
415
- ]);
416
- return [];
417
- }
418
- return [
419
- `@media ${(0, _buildMediaQuery.default)((0, _normalizeScreens.toScreen)(value, type))}`
420
- ];
421
- };
422
- }
423
- matchVariant("max", buildScreenVariant("max"), {
424
- sort: maxSort,
425
- values: areSimpleScreens ? buildScreenValues("max") : {}
426
- });
427
- // screens and min-* are sorted together when they can be
428
- let id = "min-screens";
429
- for (let screen of screens){
430
- addVariant(screen.name, `@media ${(0, _buildMediaQuery.default)(screen)}`, {
431
- id,
432
- sort: areSimpleScreens && screensUseConsistentUnits ? minSort : undefined,
433
- value: screen
434
- });
435
- }
436
- matchVariant("min", buildScreenVariant("min"), {
437
- id,
438
- sort: minSort
439
- });
440
- },
441
- supportsVariants: ({ matchVariant , theme })=>{
442
- var _theme;
443
- matchVariant("supports", (value = "")=>{
444
- let check = (0, _dataTypes.normalize)(value);
445
- let isRaw = /^\w*\s*\(/.test(check);
446
- // Chrome has a bug where `(condtion1)or(condition2)` is not valid
447
- // But `(condition1) or (condition2)` is supported.
448
- check = isRaw ? check.replace(/\b(and|or|not)\b/g, " $1 ") : check;
449
- if (isRaw) {
450
- return `@supports ${check}`;
451
- }
452
- if (!check.includes(":")) {
453
- check = `${check}: var(--tw)`;
454
- }
455
- if (!(check.startsWith("(") && check.endsWith(")"))) {
456
- check = `(${check})`;
457
- }
458
- return `@supports ${check}`;
459
- }, {
460
- values: (_theme = theme("supports")) !== null && _theme !== void 0 ? _theme : {}
461
- });
462
- },
463
- hasVariants: ({ matchVariant })=>{
464
- matchVariant("has", (value)=>`&:has(${(0, _dataTypes.normalize)(value)})`, {
465
- values: {}
466
- });
467
- matchVariant("group-has", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier}):has(${(0, _dataTypes.normalize)(value)}) &` : `:merge(.group):has(${(0, _dataTypes.normalize)(value)}) &`, {
468
- values: {}
469
- });
470
- matchVariant("peer-has", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier}):has(${(0, _dataTypes.normalize)(value)}) ~ &` : `:merge(.peer):has(${(0, _dataTypes.normalize)(value)}) ~ &`, {
471
- values: {}
472
- });
473
- },
474
- ariaVariants: ({ matchVariant , theme })=>{
475
- var _theme;
476
- matchVariant("aria", (value)=>`&[aria-${(0, _dataTypes.normalize)(value)}]`, {
477
- values: (_theme = theme("aria")) !== null && _theme !== void 0 ? _theme : {}
478
- });
479
- var _theme1;
480
- matchVariant("group-aria", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier})[aria-${(0, _dataTypes.normalize)(value)}] &` : `:merge(.group)[aria-${(0, _dataTypes.normalize)(value)}] &`, {
481
- values: (_theme1 = theme("aria")) !== null && _theme1 !== void 0 ? _theme1 : {}
482
- });
483
- var _theme2;
484
- matchVariant("peer-aria", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier})[aria-${(0, _dataTypes.normalize)(value)}] ~ &` : `:merge(.peer)[aria-${(0, _dataTypes.normalize)(value)}] ~ &`, {
485
- values: (_theme2 = theme("aria")) !== null && _theme2 !== void 0 ? _theme2 : {}
486
- });
487
- },
488
- dataVariants: ({ matchVariant , theme })=>{
489
- var _theme;
490
- matchVariant("data", (value)=>`&[data-${(0, _dataTypes.normalize)(value)}]`, {
491
- values: (_theme = theme("data")) !== null && _theme !== void 0 ? _theme : {}
492
- });
493
- var _theme1;
494
- matchVariant("group-data", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier})[data-${(0, _dataTypes.normalize)(value)}] &` : `:merge(.group)[data-${(0, _dataTypes.normalize)(value)}] &`, {
495
- values: (_theme1 = theme("data")) !== null && _theme1 !== void 0 ? _theme1 : {}
496
- });
497
- var _theme2;
498
- matchVariant("peer-data", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier})[data-${(0, _dataTypes.normalize)(value)}] ~ &` : `:merge(.peer)[data-${(0, _dataTypes.normalize)(value)}] ~ &`, {
499
- values: (_theme2 = theme("data")) !== null && _theme2 !== void 0 ? _theme2 : {}
500
- });
501
- },
502
- orientationVariants: ({ addVariant })=>{
503
- addVariant("portrait", "@media (orientation: portrait)");
504
- addVariant("landscape", "@media (orientation: landscape)");
505
- },
506
- prefersContrastVariants: ({ addVariant })=>{
507
- addVariant("contrast-more", "@media (prefers-contrast: more)");
508
- addVariant("contrast-less", "@media (prefers-contrast: less)");
509
- },
510
- forcedColorsVariants: ({ addVariant })=>{
511
- addVariant("forced-colors", "@media (forced-colors: active)");
512
- }
513
- };
514
- let cssTransformValue = [
515
- "translate(var(--tw-translate-x), var(--tw-translate-y))",
516
- "rotate(var(--tw-rotate))",
517
- "skewX(var(--tw-skew-x))",
518
- "skewY(var(--tw-skew-y))",
519
- "scaleX(var(--tw-scale-x))",
520
- "scaleY(var(--tw-scale-y))"
521
- ].join(" ");
522
- let cssFilterValue = [
523
- "var(--tw-blur)",
524
- "var(--tw-brightness)",
525
- "var(--tw-contrast)",
526
- "var(--tw-grayscale)",
527
- "var(--tw-hue-rotate)",
528
- "var(--tw-invert)",
529
- "var(--tw-saturate)",
530
- "var(--tw-sepia)",
531
- "var(--tw-drop-shadow)"
532
- ].join(" ");
533
- let cssBackdropFilterValue = [
534
- "var(--tw-backdrop-blur)",
535
- "var(--tw-backdrop-brightness)",
536
- "var(--tw-backdrop-contrast)",
537
- "var(--tw-backdrop-grayscale)",
538
- "var(--tw-backdrop-hue-rotate)",
539
- "var(--tw-backdrop-invert)",
540
- "var(--tw-backdrop-opacity)",
541
- "var(--tw-backdrop-saturate)",
542
- "var(--tw-backdrop-sepia)"
543
- ].join(" ");
544
- let corePlugins = {
545
- preflight: ({ addBase })=>{
546
- let preflightStyles = _postcss.default.parse(_fs.default.readFileSync(_path.join(__dirname, "./css/preflight.css"), "utf8"));
547
- addBase([
548
- _postcss.default.comment({
549
- text: `! tailwindcss v${_packagejson.version} | MIT License | https://tailwindcss.com`
550
- }),
551
- ...preflightStyles.nodes
552
- ]);
553
- },
554
- container: (()=>{
555
- function extractMinWidths(breakpoints = []) {
556
- return breakpoints.flatMap((breakpoint)=>breakpoint.values.map((breakpoint)=>breakpoint.min)).filter((v)=>v !== undefined);
557
- }
558
- function mapMinWidthsToPadding(minWidths, screens, paddings) {
559
- if (typeof paddings === "undefined") {
560
- return [];
561
- }
562
- if (!(typeof paddings === "object" && paddings !== null)) {
563
- return [
564
- {
565
- screen: "DEFAULT",
566
- minWidth: 0,
567
- padding: paddings
568
- }
569
- ];
570
- }
571
- let mapping = [];
572
- if (paddings.DEFAULT) {
573
- mapping.push({
574
- screen: "DEFAULT",
575
- minWidth: 0,
576
- padding: paddings.DEFAULT
577
- });
578
- }
579
- for (let minWidth of minWidths){
580
- for (let screen of screens){
581
- for (let { min } of screen.values){
582
- if (min === minWidth) {
583
- mapping.push({
584
- minWidth,
585
- padding: paddings[screen.name]
586
- });
587
- }
588
- }
589
- }
590
- }
591
- return mapping;
592
- }
593
- return function({ addComponents , theme }) {
594
- let screens = (0, _normalizeScreens.normalizeScreens)(theme("container.screens", theme("screens")));
595
- let minWidths = extractMinWidths(screens);
596
- let paddings = mapMinWidthsToPadding(minWidths, screens, theme("container.padding"));
597
- let generatePaddingFor = (minWidth)=>{
598
- let paddingConfig = paddings.find((padding)=>padding.minWidth === minWidth);
599
- if (!paddingConfig) {
600
- return {};
601
- }
602
- return {
603
- paddingRight: paddingConfig.padding,
604
- paddingLeft: paddingConfig.padding
605
- };
606
- };
607
- let atRules = Array.from(new Set(minWidths.slice().sort((a, z)=>parseInt(a) - parseInt(z)))).map((minWidth)=>({
608
- [`@media (min-width: ${minWidth})`]: {
609
- ".container": {
610
- "max-width": minWidth,
611
- ...generatePaddingFor(minWidth)
612
- }
613
- }
614
- }));
615
- addComponents([
616
- {
617
- ".container": Object.assign({
618
- width: "100%"
619
- }, theme("container.center", false) ? {
620
- marginRight: "auto",
621
- marginLeft: "auto"
622
- } : {}, generatePaddingFor(0))
623
- },
624
- ...atRules
625
- ]);
626
- };
627
- })(),
628
- accessibility: ({ addUtilities })=>{
629
- addUtilities({
630
- ".sr-only": {
631
- position: "absolute",
632
- width: "1px",
633
- height: "1px",
634
- padding: "0",
635
- margin: "-1px",
636
- overflow: "hidden",
637
- clip: "rect(0, 0, 0, 0)",
638
- whiteSpace: "nowrap",
639
- borderWidth: "0"
640
- },
641
- ".not-sr-only": {
642
- position: "static",
643
- width: "auto",
644
- height: "auto",
645
- padding: "0",
646
- margin: "0",
647
- overflow: "visible",
648
- clip: "auto",
649
- whiteSpace: "normal"
650
- }
651
- });
652
- },
653
- pointerEvents: ({ addUtilities })=>{
654
- addUtilities({
655
- ".pointer-events-none": {
656
- "pointer-events": "none"
657
- },
658
- ".pointer-events-auto": {
659
- "pointer-events": "auto"
660
- }
661
- });
662
- },
663
- visibility: ({ addUtilities })=>{
664
- addUtilities({
665
- ".visible": {
666
- visibility: "visible"
667
- },
668
- ".invisible": {
669
- visibility: "hidden"
670
- },
671
- ".collapse": {
672
- visibility: "collapse"
673
- }
674
- });
675
- },
676
- position: ({ addUtilities })=>{
677
- addUtilities({
678
- ".static": {
679
- position: "static"
680
- },
681
- ".fixed": {
682
- position: "fixed"
683
- },
684
- ".absolute": {
685
- position: "absolute"
686
- },
687
- ".relative": {
688
- position: "relative"
689
- },
690
- ".sticky": {
691
- position: "sticky"
692
- }
693
- });
694
- },
695
- inset: (0, _createUtilityPlugin.default)("inset", [
696
- [
697
- "inset",
698
- [
699
- "inset"
700
- ]
701
- ],
702
- [
703
- [
704
- "inset-x",
705
- [
706
- "left",
707
- "right"
708
- ]
709
- ],
710
- [
711
- "inset-y",
712
- [
713
- "top",
714
- "bottom"
715
- ]
716
- ]
717
- ],
718
- [
719
- [
720
- "start",
721
- [
722
- "inset-inline-start"
723
- ]
724
- ],
725
- [
726
- "end",
727
- [
728
- "inset-inline-end"
729
- ]
730
- ],
731
- [
732
- "top",
733
- [
734
- "top"
735
- ]
736
- ],
737
- [
738
- "right",
739
- [
740
- "right"
741
- ]
742
- ],
743
- [
744
- "bottom",
745
- [
746
- "bottom"
747
- ]
748
- ],
749
- [
750
- "left",
751
- [
752
- "left"
753
- ]
754
- ]
755
- ]
756
- ], {
757
- supportsNegativeValues: true
758
- }),
759
- isolation: ({ addUtilities })=>{
760
- addUtilities({
761
- ".isolate": {
762
- isolation: "isolate"
763
- },
764
- ".isolation-auto": {
765
- isolation: "auto"
766
- }
767
- });
768
- },
769
- zIndex: (0, _createUtilityPlugin.default)("zIndex", [
770
- [
771
- "z",
772
- [
773
- "zIndex"
774
- ]
775
- ]
776
- ], {
777
- supportsNegativeValues: true
778
- }),
779
- order: (0, _createUtilityPlugin.default)("order", undefined, {
780
- supportsNegativeValues: true
781
- }),
782
- gridColumn: (0, _createUtilityPlugin.default)("gridColumn", [
783
- [
784
- "col",
785
- [
786
- "gridColumn"
787
- ]
788
- ]
789
- ]),
790
- gridColumnStart: (0, _createUtilityPlugin.default)("gridColumnStart", [
791
- [
792
- "col-start",
793
- [
794
- "gridColumnStart"
795
- ]
796
- ]
797
- ]),
798
- gridColumnEnd: (0, _createUtilityPlugin.default)("gridColumnEnd", [
799
- [
800
- "col-end",
801
- [
802
- "gridColumnEnd"
803
- ]
804
- ]
805
- ]),
806
- gridRow: (0, _createUtilityPlugin.default)("gridRow", [
807
- [
808
- "row",
809
- [
810
- "gridRow"
811
- ]
812
- ]
813
- ]),
814
- gridRowStart: (0, _createUtilityPlugin.default)("gridRowStart", [
815
- [
816
- "row-start",
817
- [
818
- "gridRowStart"
819
- ]
820
- ]
821
- ]),
822
- gridRowEnd: (0, _createUtilityPlugin.default)("gridRowEnd", [
823
- [
824
- "row-end",
825
- [
826
- "gridRowEnd"
827
- ]
828
- ]
829
- ]),
830
- float: ({ addUtilities })=>{
831
- addUtilities({
832
- ".float-start": {
833
- float: "inline-start"
834
- },
835
- ".float-end": {
836
- float: "inline-end"
837
- },
838
- ".float-right": {
839
- float: "right"
840
- },
841
- ".float-left": {
842
- float: "left"
843
- },
844
- ".float-none": {
845
- float: "none"
846
- }
847
- });
848
- },
849
- clear: ({ addUtilities })=>{
850
- addUtilities({
851
- ".clear-start": {
852
- clear: "inline-start"
853
- },
854
- ".clear-end": {
855
- clear: "inline-end"
856
- },
857
- ".clear-left": {
858
- clear: "left"
859
- },
860
- ".clear-right": {
861
- clear: "right"
862
- },
863
- ".clear-both": {
864
- clear: "both"
865
- },
866
- ".clear-none": {
867
- clear: "none"
868
- }
869
- });
870
- },
871
- margin: (0, _createUtilityPlugin.default)("margin", [
872
- [
873
- "m",
874
- [
875
- "margin"
876
- ]
877
- ],
878
- [
879
- [
880
- "mx",
881
- [
882
- "margin-left",
883
- "margin-right"
884
- ]
885
- ],
886
- [
887
- "my",
888
- [
889
- "margin-top",
890
- "margin-bottom"
891
- ]
892
- ]
893
- ],
894
- [
895
- [
896
- "ms",
897
- [
898
- "margin-inline-start"
899
- ]
900
- ],
901
- [
902
- "me",
903
- [
904
- "margin-inline-end"
905
- ]
906
- ],
907
- [
908
- "mt",
909
- [
910
- "margin-top"
911
- ]
912
- ],
913
- [
914
- "mr",
915
- [
916
- "margin-right"
917
- ]
918
- ],
919
- [
920
- "mb",
921
- [
922
- "margin-bottom"
923
- ]
924
- ],
925
- [
926
- "ml",
927
- [
928
- "margin-left"
929
- ]
930
- ]
931
- ]
932
- ], {
933
- supportsNegativeValues: true
934
- }),
935
- boxSizing: ({ addUtilities })=>{
936
- addUtilities({
937
- ".box-border": {
938
- "box-sizing": "border-box"
939
- },
940
- ".box-content": {
941
- "box-sizing": "content-box"
942
- }
943
- });
944
- },
945
- lineClamp: ({ matchUtilities , addUtilities , theme })=>{
946
- matchUtilities({
947
- "line-clamp": (value)=>({
948
- overflow: "hidden",
949
- display: "-webkit-box",
950
- "-webkit-box-orient": "vertical",
951
- "-webkit-line-clamp": `${value}`
952
- })
953
- }, {
954
- values: theme("lineClamp")
955
- });
956
- addUtilities({
957
- ".line-clamp-none": {
958
- overflow: "visible",
959
- display: "block",
960
- "-webkit-box-orient": "horizontal",
961
- "-webkit-line-clamp": "none"
962
- }
963
- });
964
- },
965
- display: ({ addUtilities })=>{
966
- addUtilities({
967
- ".block": {
968
- display: "block"
969
- },
970
- ".inline-block": {
971
- display: "inline-block"
972
- },
973
- ".inline": {
974
- display: "inline"
975
- },
976
- ".flex": {
977
- display: "flex"
978
- },
979
- ".inline-flex": {
980
- display: "inline-flex"
981
- },
982
- ".table": {
983
- display: "table"
984
- },
985
- ".inline-table": {
986
- display: "inline-table"
987
- },
988
- ".table-caption": {
989
- display: "table-caption"
990
- },
991
- ".table-cell": {
992
- display: "table-cell"
993
- },
994
- ".table-column": {
995
- display: "table-column"
996
- },
997
- ".table-column-group": {
998
- display: "table-column-group"
999
- },
1000
- ".table-footer-group": {
1001
- display: "table-footer-group"
1002
- },
1003
- ".table-header-group": {
1004
- display: "table-header-group"
1005
- },
1006
- ".table-row-group": {
1007
- display: "table-row-group"
1008
- },
1009
- ".table-row": {
1010
- display: "table-row"
1011
- },
1012
- ".flow-root": {
1013
- display: "flow-root"
1014
- },
1015
- ".grid": {
1016
- display: "grid"
1017
- },
1018
- ".inline-grid": {
1019
- display: "inline-grid"
1020
- },
1021
- ".contents": {
1022
- display: "contents"
1023
- },
1024
- ".list-item": {
1025
- display: "list-item"
1026
- },
1027
- ".hidden": {
1028
- display: "none"
1029
- }
1030
- });
1031
- },
1032
- aspectRatio: (0, _createUtilityPlugin.default)("aspectRatio", [
1033
- [
1034
- "aspect",
1035
- [
1036
- "aspect-ratio"
1037
- ]
1038
- ]
1039
- ]),
1040
- size: (0, _createUtilityPlugin.default)("size", [
1041
- [
1042
- "size",
1043
- [
1044
- "width",
1045
- "height"
1046
- ]
1047
- ]
1048
- ]),
1049
- height: (0, _createUtilityPlugin.default)("height", [
1050
- [
1051
- "h",
1052
- [
1053
- "height"
1054
- ]
1055
- ]
1056
- ]),
1057
- maxHeight: (0, _createUtilityPlugin.default)("maxHeight", [
1058
- [
1059
- "max-h",
1060
- [
1061
- "maxHeight"
1062
- ]
1063
- ]
1064
- ]),
1065
- minHeight: (0, _createUtilityPlugin.default)("minHeight", [
1066
- [
1067
- "min-h",
1068
- [
1069
- "minHeight"
1070
- ]
1071
- ]
1072
- ]),
1073
- width: (0, _createUtilityPlugin.default)("width", [
1074
- [
1075
- "w",
1076
- [
1077
- "width"
1078
- ]
1079
- ]
1080
- ]),
1081
- minWidth: (0, _createUtilityPlugin.default)("minWidth", [
1082
- [
1083
- "min-w",
1084
- [
1085
- "minWidth"
1086
- ]
1087
- ]
1088
- ]),
1089
- maxWidth: (0, _createUtilityPlugin.default)("maxWidth", [
1090
- [
1091
- "max-w",
1092
- [
1093
- "maxWidth"
1094
- ]
1095
- ]
1096
- ]),
1097
- flex: (0, _createUtilityPlugin.default)("flex"),
1098
- flexShrink: (0, _createUtilityPlugin.default)("flexShrink", [
1099
- [
1100
- "flex-shrink",
1101
- [
1102
- "flex-shrink"
1103
- ]
1104
- ],
1105
- [
1106
- "shrink",
1107
- [
1108
- "flex-shrink"
1109
- ]
1110
- ]
1111
- ]),
1112
- flexGrow: (0, _createUtilityPlugin.default)("flexGrow", [
1113
- [
1114
- "flex-grow",
1115
- [
1116
- "flex-grow"
1117
- ]
1118
- ],
1119
- [
1120
- "grow",
1121
- [
1122
- "flex-grow"
1123
- ]
1124
- ]
1125
- ]),
1126
- flexBasis: (0, _createUtilityPlugin.default)("flexBasis", [
1127
- [
1128
- "basis",
1129
- [
1130
- "flex-basis"
1131
- ]
1132
- ]
1133
- ]),
1134
- tableLayout: ({ addUtilities })=>{
1135
- addUtilities({
1136
- ".table-auto": {
1137
- "table-layout": "auto"
1138
- },
1139
- ".table-fixed": {
1140
- "table-layout": "fixed"
1141
- }
1142
- });
1143
- },
1144
- captionSide: ({ addUtilities })=>{
1145
- addUtilities({
1146
- ".caption-top": {
1147
- "caption-side": "top"
1148
- },
1149
- ".caption-bottom": {
1150
- "caption-side": "bottom"
1151
- }
1152
- });
1153
- },
1154
- borderCollapse: ({ addUtilities })=>{
1155
- addUtilities({
1156
- ".border-collapse": {
1157
- "border-collapse": "collapse"
1158
- },
1159
- ".border-separate": {
1160
- "border-collapse": "separate"
1161
- }
1162
- });
1163
- },
1164
- borderSpacing: ({ addDefaults , matchUtilities , theme })=>{
1165
- addDefaults("border-spacing", {
1166
- "--tw-border-spacing-x": 0,
1167
- "--tw-border-spacing-y": 0
1168
- });
1169
- matchUtilities({
1170
- "border-spacing": (value)=>{
1171
- return {
1172
- "--tw-border-spacing-x": value,
1173
- "--tw-border-spacing-y": value,
1174
- "@defaults border-spacing": {},
1175
- "border-spacing": "var(--tw-border-spacing-x) var(--tw-border-spacing-y)"
1176
- };
1177
- },
1178
- "border-spacing-x": (value)=>{
1179
- return {
1180
- "--tw-border-spacing-x": value,
1181
- "@defaults border-spacing": {},
1182
- "border-spacing": "var(--tw-border-spacing-x) var(--tw-border-spacing-y)"
1183
- };
1184
- },
1185
- "border-spacing-y": (value)=>{
1186
- return {
1187
- "--tw-border-spacing-y": value,
1188
- "@defaults border-spacing": {},
1189
- "border-spacing": "var(--tw-border-spacing-x) var(--tw-border-spacing-y)"
1190
- };
1191
- }
1192
- }, {
1193
- values: theme("borderSpacing")
1194
- });
1195
- },
1196
- transformOrigin: (0, _createUtilityPlugin.default)("transformOrigin", [
1197
- [
1198
- "origin",
1199
- [
1200
- "transformOrigin"
1201
- ]
1202
- ]
1203
- ]),
1204
- translate: (0, _createUtilityPlugin.default)("translate", [
1205
- [
1206
- [
1207
- "translate-x",
1208
- [
1209
- [
1210
- "@defaults transform",
1211
- {}
1212
- ],
1213
- "--tw-translate-x",
1214
- [
1215
- "transform",
1216
- cssTransformValue
1217
- ]
1218
- ]
1219
- ],
1220
- [
1221
- "translate-y",
1222
- [
1223
- [
1224
- "@defaults transform",
1225
- {}
1226
- ],
1227
- "--tw-translate-y",
1228
- [
1229
- "transform",
1230
- cssTransformValue
1231
- ]
1232
- ]
1233
- ]
1234
- ]
1235
- ], {
1236
- supportsNegativeValues: true
1237
- }),
1238
- rotate: (0, _createUtilityPlugin.default)("rotate", [
1239
- [
1240
- "rotate",
1241
- [
1242
- [
1243
- "@defaults transform",
1244
- {}
1245
- ],
1246
- "--tw-rotate",
1247
- [
1248
- "transform",
1249
- cssTransformValue
1250
- ]
1251
- ]
1252
- ]
1253
- ], {
1254
- supportsNegativeValues: true
1255
- }),
1256
- skew: (0, _createUtilityPlugin.default)("skew", [
1257
- [
1258
- [
1259
- "skew-x",
1260
- [
1261
- [
1262
- "@defaults transform",
1263
- {}
1264
- ],
1265
- "--tw-skew-x",
1266
- [
1267
- "transform",
1268
- cssTransformValue
1269
- ]
1270
- ]
1271
- ],
1272
- [
1273
- "skew-y",
1274
- [
1275
- [
1276
- "@defaults transform",
1277
- {}
1278
- ],
1279
- "--tw-skew-y",
1280
- [
1281
- "transform",
1282
- cssTransformValue
1283
- ]
1284
- ]
1285
- ]
1286
- ]
1287
- ], {
1288
- supportsNegativeValues: true
1289
- }),
1290
- scale: (0, _createUtilityPlugin.default)("scale", [
1291
- [
1292
- "scale",
1293
- [
1294
- [
1295
- "@defaults transform",
1296
- {}
1297
- ],
1298
- "--tw-scale-x",
1299
- "--tw-scale-y",
1300
- [
1301
- "transform",
1302
- cssTransformValue
1303
- ]
1304
- ]
1305
- ],
1306
- [
1307
- [
1308
- "scale-x",
1309
- [
1310
- [
1311
- "@defaults transform",
1312
- {}
1313
- ],
1314
- "--tw-scale-x",
1315
- [
1316
- "transform",
1317
- cssTransformValue
1318
- ]
1319
- ]
1320
- ],
1321
- [
1322
- "scale-y",
1323
- [
1324
- [
1325
- "@defaults transform",
1326
- {}
1327
- ],
1328
- "--tw-scale-y",
1329
- [
1330
- "transform",
1331
- cssTransformValue
1332
- ]
1333
- ]
1334
- ]
1335
- ]
1336
- ], {
1337
- supportsNegativeValues: true
1338
- }),
1339
- transform: ({ addDefaults , addUtilities })=>{
1340
- addDefaults("transform", {
1341
- "--tw-translate-x": "0",
1342
- "--tw-translate-y": "0",
1343
- "--tw-rotate": "0",
1344
- "--tw-skew-x": "0",
1345
- "--tw-skew-y": "0",
1346
- "--tw-scale-x": "1",
1347
- "--tw-scale-y": "1"
1348
- });
1349
- addUtilities({
1350
- ".transform": {
1351
- "@defaults transform": {},
1352
- transform: cssTransformValue
1353
- },
1354
- ".transform-cpu": {
1355
- transform: cssTransformValue
1356
- },
1357
- ".transform-gpu": {
1358
- transform: cssTransformValue.replace("translate(var(--tw-translate-x), var(--tw-translate-y))", "translate3d(var(--tw-translate-x), var(--tw-translate-y), 0)")
1359
- },
1360
- ".transform-none": {
1361
- transform: "none"
1362
- }
1363
- });
1364
- },
1365
- animation: ({ matchUtilities , theme , config })=>{
1366
- let prefixName = (name)=>(0, _escapeClassName.default)(config("prefix") + name);
1367
- var _theme;
1368
- let keyframes = Object.fromEntries(Object.entries((_theme = theme("keyframes")) !== null && _theme !== void 0 ? _theme : {}).map(([key, value])=>{
1369
- return [
1370
- key,
1371
- {
1372
- [`@keyframes ${prefixName(key)}`]: value
1373
- }
1374
- ];
1375
- }));
1376
- matchUtilities({
1377
- animate: (value)=>{
1378
- let animations = (0, _parseAnimationValue.default)(value);
1379
- return [
1380
- ...animations.flatMap((animation)=>keyframes[animation.name]),
1381
- {
1382
- animation: animations.map(({ name , value })=>{
1383
- if (name === undefined || keyframes[name] === undefined) {
1384
- return value;
1385
- }
1386
- return value.replace(name, prefixName(name));
1387
- }).join(", ")
1388
- }
1389
- ];
1390
- }
1391
- }, {
1392
- values: theme("animation")
1393
- });
1394
- },
1395
- cursor: (0, _createUtilityPlugin.default)("cursor"),
1396
- touchAction: ({ addDefaults , addUtilities })=>{
1397
- addDefaults("touch-action", {
1398
- "--tw-pan-x": " ",
1399
- "--tw-pan-y": " ",
1400
- "--tw-pinch-zoom": " "
1401
- });
1402
- let cssTouchActionValue = "var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)";
1403
- addUtilities({
1404
- ".touch-auto": {
1405
- "touch-action": "auto"
1406
- },
1407
- ".touch-none": {
1408
- "touch-action": "none"
1409
- },
1410
- ".touch-pan-x": {
1411
- "@defaults touch-action": {},
1412
- "--tw-pan-x": "pan-x",
1413
- "touch-action": cssTouchActionValue
1414
- },
1415
- ".touch-pan-left": {
1416
- "@defaults touch-action": {},
1417
- "--tw-pan-x": "pan-left",
1418
- "touch-action": cssTouchActionValue
1419
- },
1420
- ".touch-pan-right": {
1421
- "@defaults touch-action": {},
1422
- "--tw-pan-x": "pan-right",
1423
- "touch-action": cssTouchActionValue
1424
- },
1425
- ".touch-pan-y": {
1426
- "@defaults touch-action": {},
1427
- "--tw-pan-y": "pan-y",
1428
- "touch-action": cssTouchActionValue
1429
- },
1430
- ".touch-pan-up": {
1431
- "@defaults touch-action": {},
1432
- "--tw-pan-y": "pan-up",
1433
- "touch-action": cssTouchActionValue
1434
- },
1435
- ".touch-pan-down": {
1436
- "@defaults touch-action": {},
1437
- "--tw-pan-y": "pan-down",
1438
- "touch-action": cssTouchActionValue
1439
- },
1440
- ".touch-pinch-zoom": {
1441
- "@defaults touch-action": {},
1442
- "--tw-pinch-zoom": "pinch-zoom",
1443
- "touch-action": cssTouchActionValue
1444
- },
1445
- ".touch-manipulation": {
1446
- "touch-action": "manipulation"
1447
- }
1448
- });
1449
- },
1450
- userSelect: ({ addUtilities })=>{
1451
- addUtilities({
1452
- ".select-none": {
1453
- "user-select": "none"
1454
- },
1455
- ".select-text": {
1456
- "user-select": "text"
1457
- },
1458
- ".select-all": {
1459
- "user-select": "all"
1460
- },
1461
- ".select-auto": {
1462
- "user-select": "auto"
1463
- }
1464
- });
1465
- },
1466
- resize: ({ addUtilities })=>{
1467
- addUtilities({
1468
- ".resize-none": {
1469
- resize: "none"
1470
- },
1471
- ".resize-y": {
1472
- resize: "vertical"
1473
- },
1474
- ".resize-x": {
1475
- resize: "horizontal"
1476
- },
1477
- ".resize": {
1478
- resize: "both"
1479
- }
1480
- });
1481
- },
1482
- scrollSnapType: ({ addDefaults , addUtilities })=>{
1483
- addDefaults("scroll-snap-type", {
1484
- "--tw-scroll-snap-strictness": "proximity"
1485
- });
1486
- addUtilities({
1487
- ".snap-none": {
1488
- "scroll-snap-type": "none"
1489
- },
1490
- ".snap-x": {
1491
- "@defaults scroll-snap-type": {},
1492
- "scroll-snap-type": "x var(--tw-scroll-snap-strictness)"
1493
- },
1494
- ".snap-y": {
1495
- "@defaults scroll-snap-type": {},
1496
- "scroll-snap-type": "y var(--tw-scroll-snap-strictness)"
1497
- },
1498
- ".snap-both": {
1499
- "@defaults scroll-snap-type": {},
1500
- "scroll-snap-type": "both var(--tw-scroll-snap-strictness)"
1501
- },
1502
- ".snap-mandatory": {
1503
- "--tw-scroll-snap-strictness": "mandatory"
1504
- },
1505
- ".snap-proximity": {
1506
- "--tw-scroll-snap-strictness": "proximity"
1507
- }
1508
- });
1509
- },
1510
- scrollSnapAlign: ({ addUtilities })=>{
1511
- addUtilities({
1512
- ".snap-start": {
1513
- "scroll-snap-align": "start"
1514
- },
1515
- ".snap-end": {
1516
- "scroll-snap-align": "end"
1517
- },
1518
- ".snap-center": {
1519
- "scroll-snap-align": "center"
1520
- },
1521
- ".snap-align-none": {
1522
- "scroll-snap-align": "none"
1523
- }
1524
- });
1525
- },
1526
- scrollSnapStop: ({ addUtilities })=>{
1527
- addUtilities({
1528
- ".snap-normal": {
1529
- "scroll-snap-stop": "normal"
1530
- },
1531
- ".snap-always": {
1532
- "scroll-snap-stop": "always"
1533
- }
1534
- });
1535
- },
1536
- scrollMargin: (0, _createUtilityPlugin.default)("scrollMargin", [
1537
- [
1538
- "scroll-m",
1539
- [
1540
- "scroll-margin"
1541
- ]
1542
- ],
1543
- [
1544
- [
1545
- "scroll-mx",
1546
- [
1547
- "scroll-margin-left",
1548
- "scroll-margin-right"
1549
- ]
1550
- ],
1551
- [
1552
- "scroll-my",
1553
- [
1554
- "scroll-margin-top",
1555
- "scroll-margin-bottom"
1556
- ]
1557
- ]
1558
- ],
1559
- [
1560
- [
1561
- "scroll-ms",
1562
- [
1563
- "scroll-margin-inline-start"
1564
- ]
1565
- ],
1566
- [
1567
- "scroll-me",
1568
- [
1569
- "scroll-margin-inline-end"
1570
- ]
1571
- ],
1572
- [
1573
- "scroll-mt",
1574
- [
1575
- "scroll-margin-top"
1576
- ]
1577
- ],
1578
- [
1579
- "scroll-mr",
1580
- [
1581
- "scroll-margin-right"
1582
- ]
1583
- ],
1584
- [
1585
- "scroll-mb",
1586
- [
1587
- "scroll-margin-bottom"
1588
- ]
1589
- ],
1590
- [
1591
- "scroll-ml",
1592
- [
1593
- "scroll-margin-left"
1594
- ]
1595
- ]
1596
- ]
1597
- ], {
1598
- supportsNegativeValues: true
1599
- }),
1600
- scrollPadding: (0, _createUtilityPlugin.default)("scrollPadding", [
1601
- [
1602
- "scroll-p",
1603
- [
1604
- "scroll-padding"
1605
- ]
1606
- ],
1607
- [
1608
- [
1609
- "scroll-px",
1610
- [
1611
- "scroll-padding-left",
1612
- "scroll-padding-right"
1613
- ]
1614
- ],
1615
- [
1616
- "scroll-py",
1617
- [
1618
- "scroll-padding-top",
1619
- "scroll-padding-bottom"
1620
- ]
1621
- ]
1622
- ],
1623
- [
1624
- [
1625
- "scroll-ps",
1626
- [
1627
- "scroll-padding-inline-start"
1628
- ]
1629
- ],
1630
- [
1631
- "scroll-pe",
1632
- [
1633
- "scroll-padding-inline-end"
1634
- ]
1635
- ],
1636
- [
1637
- "scroll-pt",
1638
- [
1639
- "scroll-padding-top"
1640
- ]
1641
- ],
1642
- [
1643
- "scroll-pr",
1644
- [
1645
- "scroll-padding-right"
1646
- ]
1647
- ],
1648
- [
1649
- "scroll-pb",
1650
- [
1651
- "scroll-padding-bottom"
1652
- ]
1653
- ],
1654
- [
1655
- "scroll-pl",
1656
- [
1657
- "scroll-padding-left"
1658
- ]
1659
- ]
1660
- ]
1661
- ]),
1662
- listStylePosition: ({ addUtilities })=>{
1663
- addUtilities({
1664
- ".list-inside": {
1665
- "list-style-position": "inside"
1666
- },
1667
- ".list-outside": {
1668
- "list-style-position": "outside"
1669
- }
1670
- });
1671
- },
1672
- listStyleType: (0, _createUtilityPlugin.default)("listStyleType", [
1673
- [
1674
- "list",
1675
- [
1676
- "listStyleType"
1677
- ]
1678
- ]
1679
- ]),
1680
- listStyleImage: (0, _createUtilityPlugin.default)("listStyleImage", [
1681
- [
1682
- "list-image",
1683
- [
1684
- "listStyleImage"
1685
- ]
1686
- ]
1687
- ]),
1688
- appearance: ({ addUtilities })=>{
1689
- addUtilities({
1690
- ".appearance-none": {
1691
- appearance: "none"
1692
- },
1693
- ".appearance-auto": {
1694
- appearance: "auto"
1695
- }
1696
- });
1697
- },
1698
- columns: (0, _createUtilityPlugin.default)("columns", [
1699
- [
1700
- "columns",
1701
- [
1702
- "columns"
1703
- ]
1704
- ]
1705
- ]),
1706
- breakBefore: ({ addUtilities })=>{
1707
- addUtilities({
1708
- ".break-before-auto": {
1709
- "break-before": "auto"
1710
- },
1711
- ".break-before-avoid": {
1712
- "break-before": "avoid"
1713
- },
1714
- ".break-before-all": {
1715
- "break-before": "all"
1716
- },
1717
- ".break-before-avoid-page": {
1718
- "break-before": "avoid-page"
1719
- },
1720
- ".break-before-page": {
1721
- "break-before": "page"
1722
- },
1723
- ".break-before-left": {
1724
- "break-before": "left"
1725
- },
1726
- ".break-before-right": {
1727
- "break-before": "right"
1728
- },
1729
- ".break-before-column": {
1730
- "break-before": "column"
1731
- }
1732
- });
1733
- },
1734
- breakInside: ({ addUtilities })=>{
1735
- addUtilities({
1736
- ".break-inside-auto": {
1737
- "break-inside": "auto"
1738
- },
1739
- ".break-inside-avoid": {
1740
- "break-inside": "avoid"
1741
- },
1742
- ".break-inside-avoid-page": {
1743
- "break-inside": "avoid-page"
1744
- },
1745
- ".break-inside-avoid-column": {
1746
- "break-inside": "avoid-column"
1747
- }
1748
- });
1749
- },
1750
- breakAfter: ({ addUtilities })=>{
1751
- addUtilities({
1752
- ".break-after-auto": {
1753
- "break-after": "auto"
1754
- },
1755
- ".break-after-avoid": {
1756
- "break-after": "avoid"
1757
- },
1758
- ".break-after-all": {
1759
- "break-after": "all"
1760
- },
1761
- ".break-after-avoid-page": {
1762
- "break-after": "avoid-page"
1763
- },
1764
- ".break-after-page": {
1765
- "break-after": "page"
1766
- },
1767
- ".break-after-left": {
1768
- "break-after": "left"
1769
- },
1770
- ".break-after-right": {
1771
- "break-after": "right"
1772
- },
1773
- ".break-after-column": {
1774
- "break-after": "column"
1775
- }
1776
- });
1777
- },
1778
- gridAutoColumns: (0, _createUtilityPlugin.default)("gridAutoColumns", [
1779
- [
1780
- "auto-cols",
1781
- [
1782
- "gridAutoColumns"
1783
- ]
1784
- ]
1785
- ]),
1786
- gridAutoFlow: ({ addUtilities })=>{
1787
- addUtilities({
1788
- ".grid-flow-row": {
1789
- gridAutoFlow: "row"
1790
- },
1791
- ".grid-flow-col": {
1792
- gridAutoFlow: "column"
1793
- },
1794
- ".grid-flow-dense": {
1795
- gridAutoFlow: "dense"
1796
- },
1797
- ".grid-flow-row-dense": {
1798
- gridAutoFlow: "row dense"
1799
- },
1800
- ".grid-flow-col-dense": {
1801
- gridAutoFlow: "column dense"
1802
- }
1803
- });
1804
- },
1805
- gridAutoRows: (0, _createUtilityPlugin.default)("gridAutoRows", [
1806
- [
1807
- "auto-rows",
1808
- [
1809
- "gridAutoRows"
1810
- ]
1811
- ]
1812
- ]),
1813
- gridTemplateColumns: (0, _createUtilityPlugin.default)("gridTemplateColumns", [
1814
- [
1815
- "grid-cols",
1816
- [
1817
- "gridTemplateColumns"
1818
- ]
1819
- ]
1820
- ]),
1821
- gridTemplateRows: (0, _createUtilityPlugin.default)("gridTemplateRows", [
1822
- [
1823
- "grid-rows",
1824
- [
1825
- "gridTemplateRows"
1826
- ]
1827
- ]
1828
- ]),
1829
- flexDirection: ({ addUtilities })=>{
1830
- addUtilities({
1831
- ".flex-row": {
1832
- "flex-direction": "row"
1833
- },
1834
- ".flex-row-reverse": {
1835
- "flex-direction": "row-reverse"
1836
- },
1837
- ".flex-col": {
1838
- "flex-direction": "column"
1839
- },
1840
- ".flex-col-reverse": {
1841
- "flex-direction": "column-reverse"
1842
- }
1843
- });
1844
- },
1845
- flexWrap: ({ addUtilities })=>{
1846
- addUtilities({
1847
- ".flex-wrap": {
1848
- "flex-wrap": "wrap"
1849
- },
1850
- ".flex-wrap-reverse": {
1851
- "flex-wrap": "wrap-reverse"
1852
- },
1853
- ".flex-nowrap": {
1854
- "flex-wrap": "nowrap"
1855
- }
1856
- });
1857
- },
1858
- placeContent: ({ addUtilities })=>{
1859
- addUtilities({
1860
- ".place-content-center": {
1861
- "place-content": "center"
1862
- },
1863
- ".place-content-start": {
1864
- "place-content": "start"
1865
- },
1866
- ".place-content-end": {
1867
- "place-content": "end"
1868
- },
1869
- ".place-content-between": {
1870
- "place-content": "space-between"
1871
- },
1872
- ".place-content-around": {
1873
- "place-content": "space-around"
1874
- },
1875
- ".place-content-evenly": {
1876
- "place-content": "space-evenly"
1877
- },
1878
- ".place-content-baseline": {
1879
- "place-content": "baseline"
1880
- },
1881
- ".place-content-stretch": {
1882
- "place-content": "stretch"
1883
- }
1884
- });
1885
- },
1886
- placeItems: ({ addUtilities })=>{
1887
- addUtilities({
1888
- ".place-items-start": {
1889
- "place-items": "start"
1890
- },
1891
- ".place-items-end": {
1892
- "place-items": "end"
1893
- },
1894
- ".place-items-center": {
1895
- "place-items": "center"
1896
- },
1897
- ".place-items-baseline": {
1898
- "place-items": "baseline"
1899
- },
1900
- ".place-items-stretch": {
1901
- "place-items": "stretch"
1902
- }
1903
- });
1904
- },
1905
- alignContent: ({ addUtilities })=>{
1906
- addUtilities({
1907
- ".content-normal": {
1908
- "align-content": "normal"
1909
- },
1910
- ".content-center": {
1911
- "align-content": "center"
1912
- },
1913
- ".content-start": {
1914
- "align-content": "flex-start"
1915
- },
1916
- ".content-end": {
1917
- "align-content": "flex-end"
1918
- },
1919
- ".content-between": {
1920
- "align-content": "space-between"
1921
- },
1922
- ".content-around": {
1923
- "align-content": "space-around"
1924
- },
1925
- ".content-evenly": {
1926
- "align-content": "space-evenly"
1927
- },
1928
- ".content-baseline": {
1929
- "align-content": "baseline"
1930
- },
1931
- ".content-stretch": {
1932
- "align-content": "stretch"
1933
- }
1934
- });
1935
- },
1936
- alignItems: ({ addUtilities })=>{
1937
- addUtilities({
1938
- ".items-start": {
1939
- "align-items": "flex-start"
1940
- },
1941
- ".items-end": {
1942
- "align-items": "flex-end"
1943
- },
1944
- ".items-center": {
1945
- "align-items": "center"
1946
- },
1947
- ".items-baseline": {
1948
- "align-items": "baseline"
1949
- },
1950
- ".items-stretch": {
1951
- "align-items": "stretch"
1952
- }
1953
- });
1954
- },
1955
- justifyContent: ({ addUtilities })=>{
1956
- addUtilities({
1957
- ".justify-normal": {
1958
- "justify-content": "normal"
1959
- },
1960
- ".justify-start": {
1961
- "justify-content": "flex-start"
1962
- },
1963
- ".justify-end": {
1964
- "justify-content": "flex-end"
1965
- },
1966
- ".justify-center": {
1967
- "justify-content": "center"
1968
- },
1969
- ".justify-between": {
1970
- "justify-content": "space-between"
1971
- },
1972
- ".justify-around": {
1973
- "justify-content": "space-around"
1974
- },
1975
- ".justify-evenly": {
1976
- "justify-content": "space-evenly"
1977
- },
1978
- ".justify-stretch": {
1979
- "justify-content": "stretch"
1980
- }
1981
- });
1982
- },
1983
- justifyItems: ({ addUtilities })=>{
1984
- addUtilities({
1985
- ".justify-items-start": {
1986
- "justify-items": "start"
1987
- },
1988
- ".justify-items-end": {
1989
- "justify-items": "end"
1990
- },
1991
- ".justify-items-center": {
1992
- "justify-items": "center"
1993
- },
1994
- ".justify-items-stretch": {
1995
- "justify-items": "stretch"
1996
- }
1997
- });
1998
- },
1999
- gap: (0, _createUtilityPlugin.default)("gap", [
2000
- [
2001
- "gap",
2002
- [
2003
- "gap"
2004
- ]
2005
- ],
2006
- [
2007
- [
2008
- "gap-x",
2009
- [
2010
- "columnGap"
2011
- ]
2012
- ],
2013
- [
2014
- "gap-y",
2015
- [
2016
- "rowGap"
2017
- ]
2018
- ]
2019
- ]
2020
- ]),
2021
- space: ({ matchUtilities , addUtilities , theme })=>{
2022
- matchUtilities({
2023
- "space-x": (value)=>{
2024
- value = value === "0" ? "0px" : value;
2025
- return {
2026
- "& > :not([hidden]) ~ :not([hidden])": {
2027
- "--tw-space-x-reverse": "0",
2028
- "margin-right": `calc(${value} * var(--tw-space-x-reverse))`,
2029
- "margin-left": `calc(${value} * calc(1 - var(--tw-space-x-reverse)))`
2030
- }
2031
- };
2032
- },
2033
- "space-y": (value)=>{
2034
- value = value === "0" ? "0px" : value;
2035
- return {
2036
- "& > :not([hidden]) ~ :not([hidden])": {
2037
- "--tw-space-y-reverse": "0",
2038
- "margin-top": `calc(${value} * calc(1 - var(--tw-space-y-reverse)))`,
2039
- "margin-bottom": `calc(${value} * var(--tw-space-y-reverse))`
2040
- }
2041
- };
2042
- }
2043
- }, {
2044
- values: theme("space"),
2045
- supportsNegativeValues: true
2046
- });
2047
- addUtilities({
2048
- ".space-y-reverse > :not([hidden]) ~ :not([hidden])": {
2049
- "--tw-space-y-reverse": "1"
2050
- },
2051
- ".space-x-reverse > :not([hidden]) ~ :not([hidden])": {
2052
- "--tw-space-x-reverse": "1"
2053
- }
2054
- });
2055
- },
2056
- divideWidth: ({ matchUtilities , addUtilities , theme })=>{
2057
- matchUtilities({
2058
- "divide-x": (value)=>{
2059
- value = value === "0" ? "0px" : value;
2060
- return {
2061
- "& > :not([hidden]) ~ :not([hidden])": {
2062
- "@defaults border-width": {},
2063
- "--tw-divide-x-reverse": "0",
2064
- "border-right-width": `calc(${value} * var(--tw-divide-x-reverse))`,
2065
- "border-left-width": `calc(${value} * calc(1 - var(--tw-divide-x-reverse)))`
2066
- }
2067
- };
2068
- },
2069
- "divide-y": (value)=>{
2070
- value = value === "0" ? "0px" : value;
2071
- return {
2072
- "& > :not([hidden]) ~ :not([hidden])": {
2073
- "@defaults border-width": {},
2074
- "--tw-divide-y-reverse": "0",
2075
- "border-top-width": `calc(${value} * calc(1 - var(--tw-divide-y-reverse)))`,
2076
- "border-bottom-width": `calc(${value} * var(--tw-divide-y-reverse))`
2077
- }
2078
- };
2079
- }
2080
- }, {
2081
- values: theme("divideWidth"),
2082
- type: [
2083
- "line-width",
2084
- "length",
2085
- "any"
2086
- ]
2087
- });
2088
- addUtilities({
2089
- ".divide-y-reverse > :not([hidden]) ~ :not([hidden])": {
2090
- "@defaults border-width": {},
2091
- "--tw-divide-y-reverse": "1"
2092
- },
2093
- ".divide-x-reverse > :not([hidden]) ~ :not([hidden])": {
2094
- "@defaults border-width": {},
2095
- "--tw-divide-x-reverse": "1"
2096
- }
2097
- });
2098
- },
2099
- divideStyle: ({ addUtilities })=>{
2100
- addUtilities({
2101
- ".divide-solid > :not([hidden]) ~ :not([hidden])": {
2102
- "border-style": "solid"
2103
- },
2104
- ".divide-dashed > :not([hidden]) ~ :not([hidden])": {
2105
- "border-style": "dashed"
2106
- },
2107
- ".divide-dotted > :not([hidden]) ~ :not([hidden])": {
2108
- "border-style": "dotted"
2109
- },
2110
- ".divide-double > :not([hidden]) ~ :not([hidden])": {
2111
- "border-style": "double"
2112
- },
2113
- ".divide-none > :not([hidden]) ~ :not([hidden])": {
2114
- "border-style": "none"
2115
- }
2116
- });
2117
- },
2118
- divideColor: ({ matchUtilities , theme , corePlugins })=>{
2119
- matchUtilities({
2120
- divide: (value)=>{
2121
- if (!corePlugins("divideOpacity")) {
2122
- return {
2123
- ["& > :not([hidden]) ~ :not([hidden])"]: {
2124
- "border-color": (0, _toColorValue.default)(value)
2125
- }
2126
- };
2127
- }
2128
- return {
2129
- ["& > :not([hidden]) ~ :not([hidden])"]: (0, _withAlphaVariable.default)({
2130
- color: value,
2131
- property: "border-color",
2132
- variable: "--tw-divide-opacity"
2133
- })
2134
- };
2135
- }
2136
- }, {
2137
- values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("divideColor"))),
2138
- type: [
2139
- "color",
2140
- "any"
2141
- ]
2142
- });
2143
- },
2144
- divideOpacity: ({ matchUtilities , theme })=>{
2145
- matchUtilities({
2146
- "divide-opacity": (value)=>{
2147
- return {
2148
- [`& > :not([hidden]) ~ :not([hidden])`]: {
2149
- "--tw-divide-opacity": value
2150
- }
2151
- };
2152
- }
2153
- }, {
2154
- values: theme("divideOpacity")
2155
- });
2156
- },
2157
- placeSelf: ({ addUtilities })=>{
2158
- addUtilities({
2159
- ".place-self-auto": {
2160
- "place-self": "auto"
2161
- },
2162
- ".place-self-start": {
2163
- "place-self": "start"
2164
- },
2165
- ".place-self-end": {
2166
- "place-self": "end"
2167
- },
2168
- ".place-self-center": {
2169
- "place-self": "center"
2170
- },
2171
- ".place-self-stretch": {
2172
- "place-self": "stretch"
2173
- }
2174
- });
2175
- },
2176
- alignSelf: ({ addUtilities })=>{
2177
- addUtilities({
2178
- ".self-auto": {
2179
- "align-self": "auto"
2180
- },
2181
- ".self-start": {
2182
- "align-self": "flex-start"
2183
- },
2184
- ".self-end": {
2185
- "align-self": "flex-end"
2186
- },
2187
- ".self-center": {
2188
- "align-self": "center"
2189
- },
2190
- ".self-stretch": {
2191
- "align-self": "stretch"
2192
- },
2193
- ".self-baseline": {
2194
- "align-self": "baseline"
2195
- }
2196
- });
2197
- },
2198
- justifySelf: ({ addUtilities })=>{
2199
- addUtilities({
2200
- ".justify-self-auto": {
2201
- "justify-self": "auto"
2202
- },
2203
- ".justify-self-start": {
2204
- "justify-self": "start"
2205
- },
2206
- ".justify-self-end": {
2207
- "justify-self": "end"
2208
- },
2209
- ".justify-self-center": {
2210
- "justify-self": "center"
2211
- },
2212
- ".justify-self-stretch": {
2213
- "justify-self": "stretch"
2214
- }
2215
- });
2216
- },
2217
- overflow: ({ addUtilities })=>{
2218
- addUtilities({
2219
- ".overflow-auto": {
2220
- overflow: "auto"
2221
- },
2222
- ".overflow-hidden": {
2223
- overflow: "hidden"
2224
- },
2225
- ".overflow-clip": {
2226
- overflow: "clip"
2227
- },
2228
- ".overflow-visible": {
2229
- overflow: "visible"
2230
- },
2231
- ".overflow-scroll": {
2232
- overflow: "scroll"
2233
- },
2234
- ".overflow-x-auto": {
2235
- "overflow-x": "auto"
2236
- },
2237
- ".overflow-y-auto": {
2238
- "overflow-y": "auto"
2239
- },
2240
- ".overflow-x-hidden": {
2241
- "overflow-x": "hidden"
2242
- },
2243
- ".overflow-y-hidden": {
2244
- "overflow-y": "hidden"
2245
- },
2246
- ".overflow-x-clip": {
2247
- "overflow-x": "clip"
2248
- },
2249
- ".overflow-y-clip": {
2250
- "overflow-y": "clip"
2251
- },
2252
- ".overflow-x-visible": {
2253
- "overflow-x": "visible"
2254
- },
2255
- ".overflow-y-visible": {
2256
- "overflow-y": "visible"
2257
- },
2258
- ".overflow-x-scroll": {
2259
- "overflow-x": "scroll"
2260
- },
2261
- ".overflow-y-scroll": {
2262
- "overflow-y": "scroll"
2263
- }
2264
- });
2265
- },
2266
- overscrollBehavior: ({ addUtilities })=>{
2267
- addUtilities({
2268
- ".overscroll-auto": {
2269
- "overscroll-behavior": "auto"
2270
- },
2271
- ".overscroll-contain": {
2272
- "overscroll-behavior": "contain"
2273
- },
2274
- ".overscroll-none": {
2275
- "overscroll-behavior": "none"
2276
- },
2277
- ".overscroll-y-auto": {
2278
- "overscroll-behavior-y": "auto"
2279
- },
2280
- ".overscroll-y-contain": {
2281
- "overscroll-behavior-y": "contain"
2282
- },
2283
- ".overscroll-y-none": {
2284
- "overscroll-behavior-y": "none"
2285
- },
2286
- ".overscroll-x-auto": {
2287
- "overscroll-behavior-x": "auto"
2288
- },
2289
- ".overscroll-x-contain": {
2290
- "overscroll-behavior-x": "contain"
2291
- },
2292
- ".overscroll-x-none": {
2293
- "overscroll-behavior-x": "none"
2294
- }
2295
- });
2296
- },
2297
- scrollBehavior: ({ addUtilities })=>{
2298
- addUtilities({
2299
- ".scroll-auto": {
2300
- "scroll-behavior": "auto"
2301
- },
2302
- ".scroll-smooth": {
2303
- "scroll-behavior": "smooth"
2304
- }
2305
- });
2306
- },
2307
- textOverflow: ({ addUtilities })=>{
2308
- addUtilities({
2309
- ".truncate": {
2310
- overflow: "hidden",
2311
- "text-overflow": "ellipsis",
2312
- "white-space": "nowrap"
2313
- },
2314
- ".overflow-ellipsis": {
2315
- "text-overflow": "ellipsis"
2316
- },
2317
- ".text-ellipsis": {
2318
- "text-overflow": "ellipsis"
2319
- },
2320
- ".text-clip": {
2321
- "text-overflow": "clip"
2322
- }
2323
- });
2324
- },
2325
- hyphens: ({ addUtilities })=>{
2326
- addUtilities({
2327
- ".hyphens-none": {
2328
- hyphens: "none"
2329
- },
2330
- ".hyphens-manual": {
2331
- hyphens: "manual"
2332
- },
2333
- ".hyphens-auto": {
2334
- hyphens: "auto"
2335
- }
2336
- });
2337
- },
2338
- whitespace: ({ addUtilities })=>{
2339
- addUtilities({
2340
- ".whitespace-normal": {
2341
- "white-space": "normal"
2342
- },
2343
- ".whitespace-nowrap": {
2344
- "white-space": "nowrap"
2345
- },
2346
- ".whitespace-pre": {
2347
- "white-space": "pre"
2348
- },
2349
- ".whitespace-pre-line": {
2350
- "white-space": "pre-line"
2351
- },
2352
- ".whitespace-pre-wrap": {
2353
- "white-space": "pre-wrap"
2354
- },
2355
- ".whitespace-break-spaces": {
2356
- "white-space": "break-spaces"
2357
- }
2358
- });
2359
- },
2360
- textWrap: ({ addUtilities })=>{
2361
- addUtilities({
2362
- ".text-wrap": {
2363
- "text-wrap": "wrap"
2364
- },
2365
- ".text-nowrap": {
2366
- "text-wrap": "nowrap"
2367
- },
2368
- ".text-balance": {
2369
- "text-wrap": "balance"
2370
- },
2371
- ".text-pretty": {
2372
- "text-wrap": "pretty"
2373
- }
2374
- });
2375
- },
2376
- wordBreak: ({ addUtilities })=>{
2377
- addUtilities({
2378
- ".break-normal": {
2379
- "overflow-wrap": "normal",
2380
- "word-break": "normal"
2381
- },
2382
- ".break-words": {
2383
- "overflow-wrap": "break-word"
2384
- },
2385
- ".break-all": {
2386
- "word-break": "break-all"
2387
- },
2388
- ".break-keep": {
2389
- "word-break": "keep-all"
2390
- }
2391
- });
2392
- },
2393
- borderRadius: (0, _createUtilityPlugin.default)("borderRadius", [
2394
- [
2395
- "rounded",
2396
- [
2397
- "border-radius"
2398
- ]
2399
- ],
2400
- [
2401
- [
2402
- "rounded-s",
2403
- [
2404
- "border-start-start-radius",
2405
- "border-end-start-radius"
2406
- ]
2407
- ],
2408
- [
2409
- "rounded-e",
2410
- [
2411
- "border-start-end-radius",
2412
- "border-end-end-radius"
2413
- ]
2414
- ],
2415
- [
2416
- "rounded-t",
2417
- [
2418
- "border-top-left-radius",
2419
- "border-top-right-radius"
2420
- ]
2421
- ],
2422
- [
2423
- "rounded-r",
2424
- [
2425
- "border-top-right-radius",
2426
- "border-bottom-right-radius"
2427
- ]
2428
- ],
2429
- [
2430
- "rounded-b",
2431
- [
2432
- "border-bottom-right-radius",
2433
- "border-bottom-left-radius"
2434
- ]
2435
- ],
2436
- [
2437
- "rounded-l",
2438
- [
2439
- "border-top-left-radius",
2440
- "border-bottom-left-radius"
2441
- ]
2442
- ]
2443
- ],
2444
- [
2445
- [
2446
- "rounded-ss",
2447
- [
2448
- "border-start-start-radius"
2449
- ]
2450
- ],
2451
- [
2452
- "rounded-se",
2453
- [
2454
- "border-start-end-radius"
2455
- ]
2456
- ],
2457
- [
2458
- "rounded-ee",
2459
- [
2460
- "border-end-end-radius"
2461
- ]
2462
- ],
2463
- [
2464
- "rounded-es",
2465
- [
2466
- "border-end-start-radius"
2467
- ]
2468
- ],
2469
- [
2470
- "rounded-tl",
2471
- [
2472
- "border-top-left-radius"
2473
- ]
2474
- ],
2475
- [
2476
- "rounded-tr",
2477
- [
2478
- "border-top-right-radius"
2479
- ]
2480
- ],
2481
- [
2482
- "rounded-br",
2483
- [
2484
- "border-bottom-right-radius"
2485
- ]
2486
- ],
2487
- [
2488
- "rounded-bl",
2489
- [
2490
- "border-bottom-left-radius"
2491
- ]
2492
- ]
2493
- ]
2494
- ]),
2495
- borderWidth: (0, _createUtilityPlugin.default)("borderWidth", [
2496
- [
2497
- "border",
2498
- [
2499
- [
2500
- "@defaults border-width",
2501
- {}
2502
- ],
2503
- "border-width"
2504
- ]
2505
- ],
2506
- [
2507
- [
2508
- "border-x",
2509
- [
2510
- [
2511
- "@defaults border-width",
2512
- {}
2513
- ],
2514
- "border-left-width",
2515
- "border-right-width"
2516
- ]
2517
- ],
2518
- [
2519
- "border-y",
2520
- [
2521
- [
2522
- "@defaults border-width",
2523
- {}
2524
- ],
2525
- "border-top-width",
2526
- "border-bottom-width"
2527
- ]
2528
- ]
2529
- ],
2530
- [
2531
- [
2532
- "border-s",
2533
- [
2534
- [
2535
- "@defaults border-width",
2536
- {}
2537
- ],
2538
- "border-inline-start-width"
2539
- ]
2540
- ],
2541
- [
2542
- "border-e",
2543
- [
2544
- [
2545
- "@defaults border-width",
2546
- {}
2547
- ],
2548
- "border-inline-end-width"
2549
- ]
2550
- ],
2551
- [
2552
- "border-t",
2553
- [
2554
- [
2555
- "@defaults border-width",
2556
- {}
2557
- ],
2558
- "border-top-width"
2559
- ]
2560
- ],
2561
- [
2562
- "border-r",
2563
- [
2564
- [
2565
- "@defaults border-width",
2566
- {}
2567
- ],
2568
- "border-right-width"
2569
- ]
2570
- ],
2571
- [
2572
- "border-b",
2573
- [
2574
- [
2575
- "@defaults border-width",
2576
- {}
2577
- ],
2578
- "border-bottom-width"
2579
- ]
2580
- ],
2581
- [
2582
- "border-l",
2583
- [
2584
- [
2585
- "@defaults border-width",
2586
- {}
2587
- ],
2588
- "border-left-width"
2589
- ]
2590
- ]
2591
- ]
2592
- ], {
2593
- type: [
2594
- "line-width",
2595
- "length"
2596
- ]
2597
- }),
2598
- borderStyle: ({ addUtilities })=>{
2599
- addUtilities({
2600
- ".border-solid": {
2601
- "border-style": "solid"
2602
- },
2603
- ".border-dashed": {
2604
- "border-style": "dashed"
2605
- },
2606
- ".border-dotted": {
2607
- "border-style": "dotted"
2608
- },
2609
- ".border-double": {
2610
- "border-style": "double"
2611
- },
2612
- ".border-hidden": {
2613
- "border-style": "hidden"
2614
- },
2615
- ".border-none": {
2616
- "border-style": "none"
2617
- }
2618
- });
2619
- },
2620
- borderColor: ({ matchUtilities , theme , corePlugins })=>{
2621
- matchUtilities({
2622
- border: (value)=>{
2623
- if (!corePlugins("borderOpacity")) {
2624
- return {
2625
- "border-color": (0, _toColorValue.default)(value)
2626
- };
2627
- }
2628
- return (0, _withAlphaVariable.default)({
2629
- color: value,
2630
- property: "border-color",
2631
- variable: "--tw-border-opacity"
2632
- });
2633
- }
2634
- }, {
2635
- values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("borderColor"))),
2636
- type: [
2637
- "color",
2638
- "any"
2639
- ]
2640
- });
2641
- matchUtilities({
2642
- "border-x": (value)=>{
2643
- if (!corePlugins("borderOpacity")) {
2644
- return {
2645
- "border-left-color": (0, _toColorValue.default)(value),
2646
- "border-right-color": (0, _toColorValue.default)(value)
2647
- };
2648
- }
2649
- return (0, _withAlphaVariable.default)({
2650
- color: value,
2651
- property: [
2652
- "border-left-color",
2653
- "border-right-color"
2654
- ],
2655
- variable: "--tw-border-opacity"
2656
- });
2657
- },
2658
- "border-y": (value)=>{
2659
- if (!corePlugins("borderOpacity")) {
2660
- return {
2661
- "border-top-color": (0, _toColorValue.default)(value),
2662
- "border-bottom-color": (0, _toColorValue.default)(value)
2663
- };
2664
- }
2665
- return (0, _withAlphaVariable.default)({
2666
- color: value,
2667
- property: [
2668
- "border-top-color",
2669
- "border-bottom-color"
2670
- ],
2671
- variable: "--tw-border-opacity"
2672
- });
2673
- }
2674
- }, {
2675
- values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("borderColor"))),
2676
- type: [
2677
- "color",
2678
- "any"
2679
- ]
2680
- });
2681
- matchUtilities({
2682
- "border-s": (value)=>{
2683
- if (!corePlugins("borderOpacity")) {
2684
- return {
2685
- "border-inline-start-color": (0, _toColorValue.default)(value)
2686
- };
2687
- }
2688
- return (0, _withAlphaVariable.default)({
2689
- color: value,
2690
- property: "border-inline-start-color",
2691
- variable: "--tw-border-opacity"
2692
- });
2693
- },
2694
- "border-e": (value)=>{
2695
- if (!corePlugins("borderOpacity")) {
2696
- return {
2697
- "border-inline-end-color": (0, _toColorValue.default)(value)
2698
- };
2699
- }
2700
- return (0, _withAlphaVariable.default)({
2701
- color: value,
2702
- property: "border-inline-end-color",
2703
- variable: "--tw-border-opacity"
2704
- });
2705
- },
2706
- "border-t": (value)=>{
2707
- if (!corePlugins("borderOpacity")) {
2708
- return {
2709
- "border-top-color": (0, _toColorValue.default)(value)
2710
- };
2711
- }
2712
- return (0, _withAlphaVariable.default)({
2713
- color: value,
2714
- property: "border-top-color",
2715
- variable: "--tw-border-opacity"
2716
- });
2717
- },
2718
- "border-r": (value)=>{
2719
- if (!corePlugins("borderOpacity")) {
2720
- return {
2721
- "border-right-color": (0, _toColorValue.default)(value)
2722
- };
2723
- }
2724
- return (0, _withAlphaVariable.default)({
2725
- color: value,
2726
- property: "border-right-color",
2727
- variable: "--tw-border-opacity"
2728
- });
2729
- },
2730
- "border-b": (value)=>{
2731
- if (!corePlugins("borderOpacity")) {
2732
- return {
2733
- "border-bottom-color": (0, _toColorValue.default)(value)
2734
- };
2735
- }
2736
- return (0, _withAlphaVariable.default)({
2737
- color: value,
2738
- property: "border-bottom-color",
2739
- variable: "--tw-border-opacity"
2740
- });
2741
- },
2742
- "border-l": (value)=>{
2743
- if (!corePlugins("borderOpacity")) {
2744
- return {
2745
- "border-left-color": (0, _toColorValue.default)(value)
2746
- };
2747
- }
2748
- return (0, _withAlphaVariable.default)({
2749
- color: value,
2750
- property: "border-left-color",
2751
- variable: "--tw-border-opacity"
2752
- });
2753
- }
2754
- }, {
2755
- values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("borderColor"))),
2756
- type: [
2757
- "color",
2758
- "any"
2759
- ]
2760
- });
2761
- },
2762
- borderOpacity: (0, _createUtilityPlugin.default)("borderOpacity", [
2763
- [
2764
- "border-opacity",
2765
- [
2766
- "--tw-border-opacity"
2767
- ]
2768
- ]
2769
- ]),
2770
- backgroundColor: ({ matchUtilities , theme , corePlugins })=>{
2771
- matchUtilities({
2772
- bg: (value)=>{
2773
- if (!corePlugins("backgroundOpacity")) {
2774
- return {
2775
- "background-color": (0, _toColorValue.default)(value)
2776
- };
2777
- }
2778
- return (0, _withAlphaVariable.default)({
2779
- color: value,
2780
- property: "background-color",
2781
- variable: "--tw-bg-opacity"
2782
- });
2783
- }
2784
- }, {
2785
- values: (0, _flattenColorPalette.default)(theme("backgroundColor")),
2786
- type: [
2787
- "color",
2788
- "any"
2789
- ]
2790
- });
2791
- },
2792
- backgroundOpacity: (0, _createUtilityPlugin.default)("backgroundOpacity", [
2793
- [
2794
- "bg-opacity",
2795
- [
2796
- "--tw-bg-opacity"
2797
- ]
2798
- ]
2799
- ]),
2800
- backgroundImage: (0, _createUtilityPlugin.default)("backgroundImage", [
2801
- [
2802
- "bg",
2803
- [
2804
- "background-image"
2805
- ]
2806
- ]
2807
- ], {
2808
- type: [
2809
- "lookup",
2810
- "image",
2811
- "url"
2812
- ]
2813
- }),
2814
- gradientColorStops: (()=>{
2815
- function transparentTo(value) {
2816
- return (0, _withAlphaVariable.withAlphaValue)(value, 0, "rgb(255 255 255 / 0)");
2817
- }
2818
- return function({ matchUtilities , theme , addDefaults }) {
2819
- addDefaults("gradient-color-stops", {
2820
- "--tw-gradient-from-position": " ",
2821
- "--tw-gradient-via-position": " ",
2822
- "--tw-gradient-to-position": " "
2823
- });
2824
- let options = {
2825
- values: (0, _flattenColorPalette.default)(theme("gradientColorStops")),
2826
- type: [
2827
- "color",
2828
- "any"
2829
- ]
2830
- };
2831
- let positionOptions = {
2832
- values: theme("gradientColorStopPositions"),
2833
- type: [
2834
- "length",
2835
- "percentage"
2836
- ]
2837
- };
2838
- matchUtilities({
2839
- from: (value)=>{
2840
- let transparentToValue = transparentTo(value);
2841
- return {
2842
- "@defaults gradient-color-stops": {},
2843
- "--tw-gradient-from": `${(0, _toColorValue.default)(value)} var(--tw-gradient-from-position)`,
2844
- "--tw-gradient-to": `${transparentToValue} var(--tw-gradient-to-position)`,
2845
- "--tw-gradient-stops": `var(--tw-gradient-from), var(--tw-gradient-to)`
2846
- };
2847
- }
2848
- }, options);
2849
- matchUtilities({
2850
- from: (value)=>{
2851
- return {
2852
- "--tw-gradient-from-position": value
2853
- };
2854
- }
2855
- }, positionOptions);
2856
- matchUtilities({
2857
- via: (value)=>{
2858
- let transparentToValue = transparentTo(value);
2859
- return {
2860
- "@defaults gradient-color-stops": {},
2861
- "--tw-gradient-to": `${transparentToValue} var(--tw-gradient-to-position)`,
2862
- "--tw-gradient-stops": `var(--tw-gradient-from), ${(0, _toColorValue.default)(value)} var(--tw-gradient-via-position), var(--tw-gradient-to)`
2863
- };
2864
- }
2865
- }, options);
2866
- matchUtilities({
2867
- via: (value)=>{
2868
- return {
2869
- "--tw-gradient-via-position": value
2870
- };
2871
- }
2872
- }, positionOptions);
2873
- matchUtilities({
2874
- to: (value)=>({
2875
- "@defaults gradient-color-stops": {},
2876
- "--tw-gradient-to": `${(0, _toColorValue.default)(value)} var(--tw-gradient-to-position)`
2877
- })
2878
- }, options);
2879
- matchUtilities({
2880
- to: (value)=>{
2881
- return {
2882
- "--tw-gradient-to-position": value
2883
- };
2884
- }
2885
- }, positionOptions);
2886
- };
2887
- })(),
2888
- boxDecorationBreak: ({ addUtilities })=>{
2889
- addUtilities({
2890
- ".decoration-slice": {
2891
- "box-decoration-break": "slice"
2892
- },
2893
- ".decoration-clone": {
2894
- "box-decoration-break": "clone"
2895
- },
2896
- ".box-decoration-slice": {
2897
- "box-decoration-break": "slice"
2898
- },
2899
- ".box-decoration-clone": {
2900
- "box-decoration-break": "clone"
2901
- }
2902
- });
2903
- },
2904
- backgroundSize: (0, _createUtilityPlugin.default)("backgroundSize", [
2905
- [
2906
- "bg",
2907
- [
2908
- "background-size"
2909
- ]
2910
- ]
2911
- ], {
2912
- type: [
2913
- "lookup",
2914
- "length",
2915
- "percentage",
2916
- "size"
2917
- ]
2918
- }),
2919
- backgroundAttachment: ({ addUtilities })=>{
2920
- addUtilities({
2921
- ".bg-fixed": {
2922
- "background-attachment": "fixed"
2923
- },
2924
- ".bg-local": {
2925
- "background-attachment": "local"
2926
- },
2927
- ".bg-scroll": {
2928
- "background-attachment": "scroll"
2929
- }
2930
- });
2931
- },
2932
- backgroundClip: ({ addUtilities })=>{
2933
- addUtilities({
2934
- ".bg-clip-border": {
2935
- "background-clip": "border-box"
2936
- },
2937
- ".bg-clip-padding": {
2938
- "background-clip": "padding-box"
2939
- },
2940
- ".bg-clip-content": {
2941
- "background-clip": "content-box"
2942
- },
2943
- ".bg-clip-text": {
2944
- "background-clip": "text"
2945
- }
2946
- });
2947
- },
2948
- backgroundPosition: (0, _createUtilityPlugin.default)("backgroundPosition", [
2949
- [
2950
- "bg",
2951
- [
2952
- "background-position"
2953
- ]
2954
- ]
2955
- ], {
2956
- type: [
2957
- "lookup",
2958
- [
2959
- "position",
2960
- {
2961
- preferOnConflict: true
2962
- }
2963
- ]
2964
- ]
2965
- }),
2966
- backgroundRepeat: ({ addUtilities })=>{
2967
- addUtilities({
2968
- ".bg-repeat": {
2969
- "background-repeat": "repeat"
2970
- },
2971
- ".bg-no-repeat": {
2972
- "background-repeat": "no-repeat"
2973
- },
2974
- ".bg-repeat-x": {
2975
- "background-repeat": "repeat-x"
2976
- },
2977
- ".bg-repeat-y": {
2978
- "background-repeat": "repeat-y"
2979
- },
2980
- ".bg-repeat-round": {
2981
- "background-repeat": "round"
2982
- },
2983
- ".bg-repeat-space": {
2984
- "background-repeat": "space"
2985
- }
2986
- });
2987
- },
2988
- backgroundOrigin: ({ addUtilities })=>{
2989
- addUtilities({
2990
- ".bg-origin-border": {
2991
- "background-origin": "border-box"
2992
- },
2993
- ".bg-origin-padding": {
2994
- "background-origin": "padding-box"
2995
- },
2996
- ".bg-origin-content": {
2997
- "background-origin": "content-box"
2998
- }
2999
- });
3000
- },
3001
- fill: ({ matchUtilities , theme })=>{
3002
- matchUtilities({
3003
- fill: (value)=>{
3004
- return {
3005
- fill: (0, _toColorValue.default)(value)
3006
- };
3007
- }
3008
- }, {
3009
- values: (0, _flattenColorPalette.default)(theme("fill")),
3010
- type: [
3011
- "color",
3012
- "any"
3013
- ]
3014
- });
3015
- },
3016
- stroke: ({ matchUtilities , theme })=>{
3017
- matchUtilities({
3018
- stroke: (value)=>{
3019
- return {
3020
- stroke: (0, _toColorValue.default)(value)
3021
- };
3022
- }
3023
- }, {
3024
- values: (0, _flattenColorPalette.default)(theme("stroke")),
3025
- type: [
3026
- "color",
3027
- "url",
3028
- "any"
3029
- ]
3030
- });
3031
- },
3032
- strokeWidth: (0, _createUtilityPlugin.default)("strokeWidth", [
3033
- [
3034
- "stroke",
3035
- [
3036
- "stroke-width"
3037
- ]
3038
- ]
3039
- ], {
3040
- type: [
3041
- "length",
3042
- "number",
3043
- "percentage"
3044
- ]
3045
- }),
3046
- objectFit: ({ addUtilities })=>{
3047
- addUtilities({
3048
- ".object-contain": {
3049
- "object-fit": "contain"
3050
- },
3051
- ".object-cover": {
3052
- "object-fit": "cover"
3053
- },
3054
- ".object-fill": {
3055
- "object-fit": "fill"
3056
- },
3057
- ".object-none": {
3058
- "object-fit": "none"
3059
- },
3060
- ".object-scale-down": {
3061
- "object-fit": "scale-down"
3062
- }
3063
- });
3064
- },
3065
- objectPosition: (0, _createUtilityPlugin.default)("objectPosition", [
3066
- [
3067
- "object",
3068
- [
3069
- "object-position"
3070
- ]
3071
- ]
3072
- ]),
3073
- padding: (0, _createUtilityPlugin.default)("padding", [
3074
- [
3075
- "p",
3076
- [
3077
- "padding"
3078
- ]
3079
- ],
3080
- [
3081
- [
3082
- "px",
3083
- [
3084
- "padding-left",
3085
- "padding-right"
3086
- ]
3087
- ],
3088
- [
3089
- "py",
3090
- [
3091
- "padding-top",
3092
- "padding-bottom"
3093
- ]
3094
- ]
3095
- ],
3096
- [
3097
- [
3098
- "ps",
3099
- [
3100
- "padding-inline-start"
3101
- ]
3102
- ],
3103
- [
3104
- "pe",
3105
- [
3106
- "padding-inline-end"
3107
- ]
3108
- ],
3109
- [
3110
- "pt",
3111
- [
3112
- "padding-top"
3113
- ]
3114
- ],
3115
- [
3116
- "pr",
3117
- [
3118
- "padding-right"
3119
- ]
3120
- ],
3121
- [
3122
- "pb",
3123
- [
3124
- "padding-bottom"
3125
- ]
3126
- ],
3127
- [
3128
- "pl",
3129
- [
3130
- "padding-left"
3131
- ]
3132
- ]
3133
- ]
3134
- ]),
3135
- textAlign: ({ addUtilities })=>{
3136
- addUtilities({
3137
- ".text-left": {
3138
- "text-align": "left"
3139
- },
3140
- ".text-center": {
3141
- "text-align": "center"
3142
- },
3143
- ".text-right": {
3144
- "text-align": "right"
3145
- },
3146
- ".text-justify": {
3147
- "text-align": "justify"
3148
- },
3149
- ".text-start": {
3150
- "text-align": "start"
3151
- },
3152
- ".text-end": {
3153
- "text-align": "end"
3154
- }
3155
- });
3156
- },
3157
- textIndent: (0, _createUtilityPlugin.default)("textIndent", [
3158
- [
3159
- "indent",
3160
- [
3161
- "text-indent"
3162
- ]
3163
- ]
3164
- ], {
3165
- supportsNegativeValues: true
3166
- }),
3167
- verticalAlign: ({ addUtilities , matchUtilities })=>{
3168
- addUtilities({
3169
- ".align-baseline": {
3170
- "vertical-align": "baseline"
3171
- },
3172
- ".align-top": {
3173
- "vertical-align": "top"
3174
- },
3175
- ".align-middle": {
3176
- "vertical-align": "middle"
3177
- },
3178
- ".align-bottom": {
3179
- "vertical-align": "bottom"
3180
- },
3181
- ".align-text-top": {
3182
- "vertical-align": "text-top"
3183
- },
3184
- ".align-text-bottom": {
3185
- "vertical-align": "text-bottom"
3186
- },
3187
- ".align-sub": {
3188
- "vertical-align": "sub"
3189
- },
3190
- ".align-super": {
3191
- "vertical-align": "super"
3192
- }
3193
- });
3194
- matchUtilities({
3195
- align: (value)=>({
3196
- "vertical-align": value
3197
- })
3198
- });
3199
- },
3200
- fontFamily: ({ matchUtilities , theme })=>{
3201
- matchUtilities({
3202
- font: (value)=>{
3203
- let [families, options = {}] = Array.isArray(value) && (0, _isPlainObject.default)(value[1]) ? value : [
3204
- value
3205
- ];
3206
- let { fontFeatureSettings , fontVariationSettings } = options;
3207
- return {
3208
- "font-family": Array.isArray(families) ? families.join(", ") : families,
3209
- ...fontFeatureSettings === undefined ? {} : {
3210
- "font-feature-settings": fontFeatureSettings
3211
- },
3212
- ...fontVariationSettings === undefined ? {} : {
3213
- "font-variation-settings": fontVariationSettings
3214
- }
3215
- };
3216
- }
3217
- }, {
3218
- values: theme("fontFamily"),
3219
- type: [
3220
- "lookup",
3221
- "generic-name",
3222
- "family-name"
3223
- ]
3224
- });
3225
- },
3226
- fontSize: ({ matchUtilities , theme })=>{
3227
- matchUtilities({
3228
- text: (value, { modifier })=>{
3229
- let [fontSize, options] = Array.isArray(value) ? value : [
3230
- value
3231
- ];
3232
- if (modifier) {
3233
- return {
3234
- "font-size": fontSize,
3235
- "line-height": modifier
3236
- };
3237
- }
3238
- let { lineHeight , letterSpacing , fontWeight } = (0, _isPlainObject.default)(options) ? options : {
3239
- lineHeight: options
3240
- };
3241
- return {
3242
- "font-size": fontSize,
3243
- ...lineHeight === undefined ? {} : {
3244
- "line-height": lineHeight
3245
- },
3246
- ...letterSpacing === undefined ? {} : {
3247
- "letter-spacing": letterSpacing
3248
- },
3249
- ...fontWeight === undefined ? {} : {
3250
- "font-weight": fontWeight
3251
- }
3252
- };
3253
- }
3254
- }, {
3255
- values: theme("fontSize"),
3256
- modifiers: theme("lineHeight"),
3257
- type: [
3258
- "absolute-size",
3259
- "relative-size",
3260
- "length",
3261
- "percentage"
3262
- ]
3263
- });
3264
- },
3265
- fontWeight: (0, _createUtilityPlugin.default)("fontWeight", [
3266
- [
3267
- "font",
3268
- [
3269
- "fontWeight"
3270
- ]
3271
- ]
3272
- ], {
3273
- type: [
3274
- "lookup",
3275
- "number",
3276
- "any"
3277
- ]
3278
- }),
3279
- textTransform: ({ addUtilities })=>{
3280
- addUtilities({
3281
- ".uppercase": {
3282
- "text-transform": "uppercase"
3283
- },
3284
- ".lowercase": {
3285
- "text-transform": "lowercase"
3286
- },
3287
- ".capitalize": {
3288
- "text-transform": "capitalize"
3289
- },
3290
- ".normal-case": {
3291
- "text-transform": "none"
3292
- }
3293
- });
3294
- },
3295
- fontStyle: ({ addUtilities })=>{
3296
- addUtilities({
3297
- ".italic": {
3298
- "font-style": "italic"
3299
- },
3300
- ".not-italic": {
3301
- "font-style": "normal"
3302
- }
3303
- });
3304
- },
3305
- fontVariantNumeric: ({ addDefaults , addUtilities })=>{
3306
- let cssFontVariantNumericValue = "var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)";
3307
- addDefaults("font-variant-numeric", {
3308
- "--tw-ordinal": " ",
3309
- "--tw-slashed-zero": " ",
3310
- "--tw-numeric-figure": " ",
3311
- "--tw-numeric-spacing": " ",
3312
- "--tw-numeric-fraction": " "
3313
- });
3314
- addUtilities({
3315
- ".normal-nums": {
3316
- "font-variant-numeric": "normal"
3317
- },
3318
- ".ordinal": {
3319
- "@defaults font-variant-numeric": {},
3320
- "--tw-ordinal": "ordinal",
3321
- "font-variant-numeric": cssFontVariantNumericValue
3322
- },
3323
- ".slashed-zero": {
3324
- "@defaults font-variant-numeric": {},
3325
- "--tw-slashed-zero": "slashed-zero",
3326
- "font-variant-numeric": cssFontVariantNumericValue
3327
- },
3328
- ".lining-nums": {
3329
- "@defaults font-variant-numeric": {},
3330
- "--tw-numeric-figure": "lining-nums",
3331
- "font-variant-numeric": cssFontVariantNumericValue
3332
- },
3333
- ".oldstyle-nums": {
3334
- "@defaults font-variant-numeric": {},
3335
- "--tw-numeric-figure": "oldstyle-nums",
3336
- "font-variant-numeric": cssFontVariantNumericValue
3337
- },
3338
- ".proportional-nums": {
3339
- "@defaults font-variant-numeric": {},
3340
- "--tw-numeric-spacing": "proportional-nums",
3341
- "font-variant-numeric": cssFontVariantNumericValue
3342
- },
3343
- ".tabular-nums": {
3344
- "@defaults font-variant-numeric": {},
3345
- "--tw-numeric-spacing": "tabular-nums",
3346
- "font-variant-numeric": cssFontVariantNumericValue
3347
- },
3348
- ".diagonal-fractions": {
3349
- "@defaults font-variant-numeric": {},
3350
- "--tw-numeric-fraction": "diagonal-fractions",
3351
- "font-variant-numeric": cssFontVariantNumericValue
3352
- },
3353
- ".stacked-fractions": {
3354
- "@defaults font-variant-numeric": {},
3355
- "--tw-numeric-fraction": "stacked-fractions",
3356
- "font-variant-numeric": cssFontVariantNumericValue
3357
- }
3358
- });
3359
- },
3360
- lineHeight: (0, _createUtilityPlugin.default)("lineHeight", [
3361
- [
3362
- "leading",
3363
- [
3364
- "lineHeight"
3365
- ]
3366
- ]
3367
- ]),
3368
- letterSpacing: (0, _createUtilityPlugin.default)("letterSpacing", [
3369
- [
3370
- "tracking",
3371
- [
3372
- "letterSpacing"
3373
- ]
3374
- ]
3375
- ], {
3376
- supportsNegativeValues: true
3377
- }),
3378
- textColor: ({ matchUtilities , theme , corePlugins })=>{
3379
- matchUtilities({
3380
- text: (value)=>{
3381
- if (!corePlugins("textOpacity")) {
3382
- return {
3383
- color: (0, _toColorValue.default)(value)
3384
- };
3385
- }
3386
- return (0, _withAlphaVariable.default)({
3387
- color: value,
3388
- property: "color",
3389
- variable: "--tw-text-opacity"
3390
- });
3391
- }
3392
- }, {
3393
- values: (0, _flattenColorPalette.default)(theme("textColor")),
3394
- type: [
3395
- "color",
3396
- "any"
3397
- ]
3398
- });
3399
- },
3400
- textOpacity: (0, _createUtilityPlugin.default)("textOpacity", [
3401
- [
3402
- "text-opacity",
3403
- [
3404
- "--tw-text-opacity"
3405
- ]
3406
- ]
3407
- ]),
3408
- textDecoration: ({ addUtilities })=>{
3409
- addUtilities({
3410
- ".underline": {
3411
- "text-decoration-line": "underline"
3412
- },
3413
- ".overline": {
3414
- "text-decoration-line": "overline"
3415
- },
3416
- ".line-through": {
3417
- "text-decoration-line": "line-through"
3418
- },
3419
- ".no-underline": {
3420
- "text-decoration-line": "none"
3421
- }
3422
- });
3423
- },
3424
- textDecorationColor: ({ matchUtilities , theme })=>{
3425
- matchUtilities({
3426
- decoration: (value)=>{
3427
- return {
3428
- "text-decoration-color": (0, _toColorValue.default)(value)
3429
- };
3430
- }
3431
- }, {
3432
- values: (0, _flattenColorPalette.default)(theme("textDecorationColor")),
3433
- type: [
3434
- "color",
3435
- "any"
3436
- ]
3437
- });
3438
- },
3439
- textDecorationStyle: ({ addUtilities })=>{
3440
- addUtilities({
3441
- ".decoration-solid": {
3442
- "text-decoration-style": "solid"
3443
- },
3444
- ".decoration-double": {
3445
- "text-decoration-style": "double"
3446
- },
3447
- ".decoration-dotted": {
3448
- "text-decoration-style": "dotted"
3449
- },
3450
- ".decoration-dashed": {
3451
- "text-decoration-style": "dashed"
3452
- },
3453
- ".decoration-wavy": {
3454
- "text-decoration-style": "wavy"
3455
- }
3456
- });
3457
- },
3458
- textDecorationThickness: (0, _createUtilityPlugin.default)("textDecorationThickness", [
3459
- [
3460
- "decoration",
3461
- [
3462
- "text-decoration-thickness"
3463
- ]
3464
- ]
3465
- ], {
3466
- type: [
3467
- "length",
3468
- "percentage"
3469
- ]
3470
- }),
3471
- textUnderlineOffset: (0, _createUtilityPlugin.default)("textUnderlineOffset", [
3472
- [
3473
- "underline-offset",
3474
- [
3475
- "text-underline-offset"
3476
- ]
3477
- ]
3478
- ], {
3479
- type: [
3480
- "length",
3481
- "percentage",
3482
- "any"
3483
- ]
3484
- }),
3485
- fontSmoothing: ({ addUtilities })=>{
3486
- addUtilities({
3487
- ".antialiased": {
3488
- "-webkit-font-smoothing": "antialiased",
3489
- "-moz-osx-font-smoothing": "grayscale"
3490
- },
3491
- ".subpixel-antialiased": {
3492
- "-webkit-font-smoothing": "auto",
3493
- "-moz-osx-font-smoothing": "auto"
3494
- }
3495
- });
3496
- },
3497
- placeholderColor: ({ matchUtilities , theme , corePlugins })=>{
3498
- matchUtilities({
3499
- placeholder: (value)=>{
3500
- if (!corePlugins("placeholderOpacity")) {
3501
- return {
3502
- "&::placeholder": {
3503
- color: (0, _toColorValue.default)(value)
3504
- }
3505
- };
3506
- }
3507
- return {
3508
- "&::placeholder": (0, _withAlphaVariable.default)({
3509
- color: value,
3510
- property: "color",
3511
- variable: "--tw-placeholder-opacity"
3512
- })
3513
- };
3514
- }
3515
- }, {
3516
- values: (0, _flattenColorPalette.default)(theme("placeholderColor")),
3517
- type: [
3518
- "color",
3519
- "any"
3520
- ]
3521
- });
3522
- },
3523
- placeholderOpacity: ({ matchUtilities , theme })=>{
3524
- matchUtilities({
3525
- "placeholder-opacity": (value)=>{
3526
- return {
3527
- ["&::placeholder"]: {
3528
- "--tw-placeholder-opacity": value
3529
- }
3530
- };
3531
- }
3532
- }, {
3533
- values: theme("placeholderOpacity")
3534
- });
3535
- },
3536
- caretColor: ({ matchUtilities , theme })=>{
3537
- matchUtilities({
3538
- caret: (value)=>{
3539
- return {
3540
- "caret-color": (0, _toColorValue.default)(value)
3541
- };
3542
- }
3543
- }, {
3544
- values: (0, _flattenColorPalette.default)(theme("caretColor")),
3545
- type: [
3546
- "color",
3547
- "any"
3548
- ]
3549
- });
3550
- },
3551
- accentColor: ({ matchUtilities , theme })=>{
3552
- matchUtilities({
3553
- accent: (value)=>{
3554
- return {
3555
- "accent-color": (0, _toColorValue.default)(value)
3556
- };
3557
- }
3558
- }, {
3559
- values: (0, _flattenColorPalette.default)(theme("accentColor")),
3560
- type: [
3561
- "color",
3562
- "any"
3563
- ]
3564
- });
3565
- },
3566
- opacity: (0, _createUtilityPlugin.default)("opacity", [
3567
- [
3568
- "opacity",
3569
- [
3570
- "opacity"
3571
- ]
3572
- ]
3573
- ]),
3574
- backgroundBlendMode: ({ addUtilities })=>{
3575
- addUtilities({
3576
- ".bg-blend-normal": {
3577
- "background-blend-mode": "normal"
3578
- },
3579
- ".bg-blend-multiply": {
3580
- "background-blend-mode": "multiply"
3581
- },
3582
- ".bg-blend-screen": {
3583
- "background-blend-mode": "screen"
3584
- },
3585
- ".bg-blend-overlay": {
3586
- "background-blend-mode": "overlay"
3587
- },
3588
- ".bg-blend-darken": {
3589
- "background-blend-mode": "darken"
3590
- },
3591
- ".bg-blend-lighten": {
3592
- "background-blend-mode": "lighten"
3593
- },
3594
- ".bg-blend-color-dodge": {
3595
- "background-blend-mode": "color-dodge"
3596
- },
3597
- ".bg-blend-color-burn": {
3598
- "background-blend-mode": "color-burn"
3599
- },
3600
- ".bg-blend-hard-light": {
3601
- "background-blend-mode": "hard-light"
3602
- },
3603
- ".bg-blend-soft-light": {
3604
- "background-blend-mode": "soft-light"
3605
- },
3606
- ".bg-blend-difference": {
3607
- "background-blend-mode": "difference"
3608
- },
3609
- ".bg-blend-exclusion": {
3610
- "background-blend-mode": "exclusion"
3611
- },
3612
- ".bg-blend-hue": {
3613
- "background-blend-mode": "hue"
3614
- },
3615
- ".bg-blend-saturation": {
3616
- "background-blend-mode": "saturation"
3617
- },
3618
- ".bg-blend-color": {
3619
- "background-blend-mode": "color"
3620
- },
3621
- ".bg-blend-luminosity": {
3622
- "background-blend-mode": "luminosity"
3623
- }
3624
- });
3625
- },
3626
- mixBlendMode: ({ addUtilities })=>{
3627
- addUtilities({
3628
- ".mix-blend-normal": {
3629
- "mix-blend-mode": "normal"
3630
- },
3631
- ".mix-blend-multiply": {
3632
- "mix-blend-mode": "multiply"
3633
- },
3634
- ".mix-blend-screen": {
3635
- "mix-blend-mode": "screen"
3636
- },
3637
- ".mix-blend-overlay": {
3638
- "mix-blend-mode": "overlay"
3639
- },
3640
- ".mix-blend-darken": {
3641
- "mix-blend-mode": "darken"
3642
- },
3643
- ".mix-blend-lighten": {
3644
- "mix-blend-mode": "lighten"
3645
- },
3646
- ".mix-blend-color-dodge": {
3647
- "mix-blend-mode": "color-dodge"
3648
- },
3649
- ".mix-blend-color-burn": {
3650
- "mix-blend-mode": "color-burn"
3651
- },
3652
- ".mix-blend-hard-light": {
3653
- "mix-blend-mode": "hard-light"
3654
- },
3655
- ".mix-blend-soft-light": {
3656
- "mix-blend-mode": "soft-light"
3657
- },
3658
- ".mix-blend-difference": {
3659
- "mix-blend-mode": "difference"
3660
- },
3661
- ".mix-blend-exclusion": {
3662
- "mix-blend-mode": "exclusion"
3663
- },
3664
- ".mix-blend-hue": {
3665
- "mix-blend-mode": "hue"
3666
- },
3667
- ".mix-blend-saturation": {
3668
- "mix-blend-mode": "saturation"
3669
- },
3670
- ".mix-blend-color": {
3671
- "mix-blend-mode": "color"
3672
- },
3673
- ".mix-blend-luminosity": {
3674
- "mix-blend-mode": "luminosity"
3675
- },
3676
- ".mix-blend-plus-darker": {
3677
- "mix-blend-mode": "plus-darker"
3678
- },
3679
- ".mix-blend-plus-lighter": {
3680
- "mix-blend-mode": "plus-lighter"
3681
- }
3682
- });
3683
- },
3684
- boxShadow: (()=>{
3685
- let transformValue = (0, _transformThemeValue.default)("boxShadow");
3686
- let defaultBoxShadow = [
3687
- `var(--tw-ring-offset-shadow, 0 0 #0000)`,
3688
- `var(--tw-ring-shadow, 0 0 #0000)`,
3689
- `var(--tw-shadow)`
3690
- ].join(", ");
3691
- return function({ matchUtilities , addDefaults , theme }) {
3692
- addDefaults("box-shadow", {
3693
- "--tw-ring-offset-shadow": "0 0 #0000",
3694
- "--tw-ring-shadow": "0 0 #0000",
3695
- "--tw-shadow": "0 0 #0000",
3696
- "--tw-shadow-colored": "0 0 #0000"
3697
- });
3698
- matchUtilities({
3699
- shadow: (value)=>{
3700
- value = transformValue(value);
3701
- let ast = (0, _parseBoxShadowValue.parseBoxShadowValue)(value);
3702
- for (let shadow of ast){
3703
- // Don't override color if the whole shadow is a variable
3704
- if (!shadow.valid) {
3705
- continue;
3706
- }
3707
- shadow.color = "var(--tw-shadow-color)";
3708
- }
3709
- return {
3710
- "@defaults box-shadow": {},
3711
- "--tw-shadow": value === "none" ? "0 0 #0000" : value,
3712
- "--tw-shadow-colored": value === "none" ? "0 0 #0000" : (0, _parseBoxShadowValue.formatBoxShadowValue)(ast),
3713
- "box-shadow": defaultBoxShadow
3714
- };
3715
- }
3716
- }, {
3717
- values: theme("boxShadow"),
3718
- type: [
3719
- "shadow"
3720
- ]
3721
- });
3722
- };
3723
- })(),
3724
- boxShadowColor: ({ matchUtilities , theme })=>{
3725
- matchUtilities({
3726
- shadow: (value)=>{
3727
- return {
3728
- "--tw-shadow-color": (0, _toColorValue.default)(value),
3729
- "--tw-shadow": "var(--tw-shadow-colored)"
3730
- };
3731
- }
3732
- }, {
3733
- values: (0, _flattenColorPalette.default)(theme("boxShadowColor")),
3734
- type: [
3735
- "color",
3736
- "any"
3737
- ]
3738
- });
3739
- },
3740
- outlineStyle: ({ addUtilities })=>{
3741
- addUtilities({
3742
- ".outline-none": {
3743
- outline: "2px solid transparent",
3744
- "outline-offset": "2px"
3745
- },
3746
- ".outline": {
3747
- "outline-style": "solid"
3748
- },
3749
- ".outline-dashed": {
3750
- "outline-style": "dashed"
3751
- },
3752
- ".outline-dotted": {
3753
- "outline-style": "dotted"
3754
- },
3755
- ".outline-double": {
3756
- "outline-style": "double"
3757
- }
3758
- });
3759
- },
3760
- outlineWidth: (0, _createUtilityPlugin.default)("outlineWidth", [
3761
- [
3762
- "outline",
3763
- [
3764
- "outline-width"
3765
- ]
3766
- ]
3767
- ], {
3768
- type: [
3769
- "length",
3770
- "number",
3771
- "percentage"
3772
- ]
3773
- }),
3774
- outlineOffset: (0, _createUtilityPlugin.default)("outlineOffset", [
3775
- [
3776
- "outline-offset",
3777
- [
3778
- "outline-offset"
3779
- ]
3780
- ]
3781
- ], {
3782
- type: [
3783
- "length",
3784
- "number",
3785
- "percentage",
3786
- "any"
3787
- ],
3788
- supportsNegativeValues: true
3789
- }),
3790
- outlineColor: ({ matchUtilities , theme })=>{
3791
- matchUtilities({
3792
- outline: (value)=>{
3793
- return {
3794
- "outline-color": (0, _toColorValue.default)(value)
3795
- };
3796
- }
3797
- }, {
3798
- values: (0, _flattenColorPalette.default)(theme("outlineColor")),
3799
- type: [
3800
- "color",
3801
- "any"
3802
- ]
3803
- });
3804
- },
3805
- ringWidth: ({ matchUtilities , addDefaults , addUtilities , theme , config })=>{
3806
- let ringColorDefault = (()=>{
3807
- var _theme, _theme1;
3808
- if ((0, _featureFlags.flagEnabled)(config(), "respectDefaultRingColorOpacity")) {
3809
- return theme("ringColor.DEFAULT");
3810
- }
3811
- let ringOpacityDefault = theme("ringOpacity.DEFAULT", "0.5");
3812
- if (!((_theme = theme("ringColor")) === null || _theme === void 0 ? void 0 : _theme.DEFAULT)) {
3813
- return `rgb(147 197 253 / ${ringOpacityDefault})`;
3814
- }
3815
- return (0, _withAlphaVariable.withAlphaValue)((_theme1 = theme("ringColor")) === null || _theme1 === void 0 ? void 0 : _theme1.DEFAULT, ringOpacityDefault, `rgb(147 197 253 / ${ringOpacityDefault})`);
3816
- })();
3817
- addDefaults("ring-width", {
3818
- "--tw-ring-inset": " ",
3819
- "--tw-ring-offset-width": theme("ringOffsetWidth.DEFAULT", "0px"),
3820
- "--tw-ring-offset-color": theme("ringOffsetColor.DEFAULT", "#fff"),
3821
- "--tw-ring-color": ringColorDefault,
3822
- "--tw-ring-offset-shadow": "0 0 #0000",
3823
- "--tw-ring-shadow": "0 0 #0000",
3824
- "--tw-shadow": "0 0 #0000",
3825
- "--tw-shadow-colored": "0 0 #0000"
3826
- });
3827
- matchUtilities({
3828
- ring: (value)=>{
3829
- return {
3830
- "@defaults ring-width": {},
3831
- "--tw-ring-offset-shadow": `var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`,
3832
- "--tw-ring-shadow": `var(--tw-ring-inset) 0 0 0 calc(${value} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,
3833
- "box-shadow": [
3834
- `var(--tw-ring-offset-shadow)`,
3835
- `var(--tw-ring-shadow)`,
3836
- `var(--tw-shadow, 0 0 #0000)`
3837
- ].join(", ")
3838
- };
3839
- }
3840
- }, {
3841
- values: theme("ringWidth"),
3842
- type: "length"
3843
- });
3844
- addUtilities({
3845
- ".ring-inset": {
3846
- "@defaults ring-width": {},
3847
- "--tw-ring-inset": "inset"
3848
- }
3849
- });
3850
- },
3851
- ringColor: ({ matchUtilities , theme , corePlugins })=>{
3852
- matchUtilities({
3853
- ring: (value)=>{
3854
- if (!corePlugins("ringOpacity")) {
3855
- return {
3856
- "--tw-ring-color": (0, _toColorValue.default)(value)
3857
- };
3858
- }
3859
- return (0, _withAlphaVariable.default)({
3860
- color: value,
3861
- property: "--tw-ring-color",
3862
- variable: "--tw-ring-opacity"
3863
- });
3864
- }
3865
- }, {
3866
- values: Object.fromEntries(Object.entries((0, _flattenColorPalette.default)(theme("ringColor"))).filter(([modifier])=>modifier !== "DEFAULT")),
3867
- type: [
3868
- "color",
3869
- "any"
3870
- ]
3871
- });
3872
- },
3873
- ringOpacity: (helpers)=>{
3874
- let { config } = helpers;
3875
- return (0, _createUtilityPlugin.default)("ringOpacity", [
3876
- [
3877
- "ring-opacity",
3878
- [
3879
- "--tw-ring-opacity"
3880
- ]
3881
- ]
3882
- ], {
3883
- filterDefault: !(0, _featureFlags.flagEnabled)(config(), "respectDefaultRingColorOpacity")
3884
- })(helpers);
3885
- },
3886
- ringOffsetWidth: (0, _createUtilityPlugin.default)("ringOffsetWidth", [
3887
- [
3888
- "ring-offset",
3889
- [
3890
- "--tw-ring-offset-width"
3891
- ]
3892
- ]
3893
- ], {
3894
- type: "length"
3895
- }),
3896
- ringOffsetColor: ({ matchUtilities , theme })=>{
3897
- matchUtilities({
3898
- "ring-offset": (value)=>{
3899
- return {
3900
- "--tw-ring-offset-color": (0, _toColorValue.default)(value)
3901
- };
3902
- }
3903
- }, {
3904
- values: (0, _flattenColorPalette.default)(theme("ringOffsetColor")),
3905
- type: [
3906
- "color",
3907
- "any"
3908
- ]
3909
- });
3910
- },
3911
- blur: ({ matchUtilities , theme })=>{
3912
- matchUtilities({
3913
- blur: (value)=>{
3914
- return {
3915
- "--tw-blur": `blur(${value})`,
3916
- "@defaults filter": {},
3917
- filter: cssFilterValue
3918
- };
3919
- }
3920
- }, {
3921
- values: theme("blur")
3922
- });
3923
- },
3924
- brightness: ({ matchUtilities , theme })=>{
3925
- matchUtilities({
3926
- brightness: (value)=>{
3927
- return {
3928
- "--tw-brightness": `brightness(${value})`,
3929
- "@defaults filter": {},
3930
- filter: cssFilterValue
3931
- };
3932
- }
3933
- }, {
3934
- values: theme("brightness")
3935
- });
3936
- },
3937
- contrast: ({ matchUtilities , theme })=>{
3938
- matchUtilities({
3939
- contrast: (value)=>{
3940
- return {
3941
- "--tw-contrast": `contrast(${value})`,
3942
- "@defaults filter": {},
3943
- filter: cssFilterValue
3944
- };
3945
- }
3946
- }, {
3947
- values: theme("contrast")
3948
- });
3949
- },
3950
- dropShadow: ({ matchUtilities , theme })=>{
3951
- matchUtilities({
3952
- "drop-shadow": (value)=>{
3953
- return {
3954
- "--tw-drop-shadow": Array.isArray(value) ? value.map((v)=>`drop-shadow(${v})`).join(" ") : `drop-shadow(${value})`,
3955
- "@defaults filter": {},
3956
- filter: cssFilterValue
3957
- };
3958
- }
3959
- }, {
3960
- values: theme("dropShadow")
3961
- });
3962
- },
3963
- grayscale: ({ matchUtilities , theme })=>{
3964
- matchUtilities({
3965
- grayscale: (value)=>{
3966
- return {
3967
- "--tw-grayscale": `grayscale(${value})`,
3968
- "@defaults filter": {},
3969
- filter: cssFilterValue
3970
- };
3971
- }
3972
- }, {
3973
- values: theme("grayscale")
3974
- });
3975
- },
3976
- hueRotate: ({ matchUtilities , theme })=>{
3977
- matchUtilities({
3978
- "hue-rotate": (value)=>{
3979
- return {
3980
- "--tw-hue-rotate": `hue-rotate(${value})`,
3981
- "@defaults filter": {},
3982
- filter: cssFilterValue
3983
- };
3984
- }
3985
- }, {
3986
- values: theme("hueRotate"),
3987
- supportsNegativeValues: true
3988
- });
3989
- },
3990
- invert: ({ matchUtilities , theme })=>{
3991
- matchUtilities({
3992
- invert: (value)=>{
3993
- return {
3994
- "--tw-invert": `invert(${value})`,
3995
- "@defaults filter": {},
3996
- filter: cssFilterValue
3997
- };
3998
- }
3999
- }, {
4000
- values: theme("invert")
4001
- });
4002
- },
4003
- saturate: ({ matchUtilities , theme })=>{
4004
- matchUtilities({
4005
- saturate: (value)=>{
4006
- return {
4007
- "--tw-saturate": `saturate(${value})`,
4008
- "@defaults filter": {},
4009
- filter: cssFilterValue
4010
- };
4011
- }
4012
- }, {
4013
- values: theme("saturate")
4014
- });
4015
- },
4016
- sepia: ({ matchUtilities , theme })=>{
4017
- matchUtilities({
4018
- sepia: (value)=>{
4019
- return {
4020
- "--tw-sepia": `sepia(${value})`,
4021
- "@defaults filter": {},
4022
- filter: cssFilterValue
4023
- };
4024
- }
4025
- }, {
4026
- values: theme("sepia")
4027
- });
4028
- },
4029
- filter: ({ addDefaults , addUtilities })=>{
4030
- addDefaults("filter", {
4031
- "--tw-blur": " ",
4032
- "--tw-brightness": " ",
4033
- "--tw-contrast": " ",
4034
- "--tw-grayscale": " ",
4035
- "--tw-hue-rotate": " ",
4036
- "--tw-invert": " ",
4037
- "--tw-saturate": " ",
4038
- "--tw-sepia": " ",
4039
- "--tw-drop-shadow": " "
4040
- });
4041
- addUtilities({
4042
- ".filter": {
4043
- "@defaults filter": {},
4044
- filter: cssFilterValue
4045
- },
4046
- ".filter-none": {
4047
- filter: "none"
4048
- }
4049
- });
4050
- },
4051
- backdropBlur: ({ matchUtilities , theme })=>{
4052
- matchUtilities({
4053
- "backdrop-blur": (value)=>{
4054
- return {
4055
- "--tw-backdrop-blur": `blur(${value})`,
4056
- "@defaults backdrop-filter": {},
4057
- "backdrop-filter": cssBackdropFilterValue
4058
- };
4059
- }
4060
- }, {
4061
- values: theme("backdropBlur")
4062
- });
4063
- },
4064
- backdropBrightness: ({ matchUtilities , theme })=>{
4065
- matchUtilities({
4066
- "backdrop-brightness": (value)=>{
4067
- return {
4068
- "--tw-backdrop-brightness": `brightness(${value})`,
4069
- "@defaults backdrop-filter": {},
4070
- "backdrop-filter": cssBackdropFilterValue
4071
- };
4072
- }
4073
- }, {
4074
- values: theme("backdropBrightness")
4075
- });
4076
- },
4077
- backdropContrast: ({ matchUtilities , theme })=>{
4078
- matchUtilities({
4079
- "backdrop-contrast": (value)=>{
4080
- return {
4081
- "--tw-backdrop-contrast": `contrast(${value})`,
4082
- "@defaults backdrop-filter": {},
4083
- "backdrop-filter": cssBackdropFilterValue
4084
- };
4085
- }
4086
- }, {
4087
- values: theme("backdropContrast")
4088
- });
4089
- },
4090
- backdropGrayscale: ({ matchUtilities , theme })=>{
4091
- matchUtilities({
4092
- "backdrop-grayscale": (value)=>{
4093
- return {
4094
- "--tw-backdrop-grayscale": `grayscale(${value})`,
4095
- "@defaults backdrop-filter": {},
4096
- "backdrop-filter": cssBackdropFilterValue
4097
- };
4098
- }
4099
- }, {
4100
- values: theme("backdropGrayscale")
4101
- });
4102
- },
4103
- backdropHueRotate: ({ matchUtilities , theme })=>{
4104
- matchUtilities({
4105
- "backdrop-hue-rotate": (value)=>{
4106
- return {
4107
- "--tw-backdrop-hue-rotate": `hue-rotate(${value})`,
4108
- "@defaults backdrop-filter": {},
4109
- "backdrop-filter": cssBackdropFilterValue
4110
- };
4111
- }
4112
- }, {
4113
- values: theme("backdropHueRotate"),
4114
- supportsNegativeValues: true
4115
- });
4116
- },
4117
- backdropInvert: ({ matchUtilities , theme })=>{
4118
- matchUtilities({
4119
- "backdrop-invert": (value)=>{
4120
- return {
4121
- "--tw-backdrop-invert": `invert(${value})`,
4122
- "@defaults backdrop-filter": {},
4123
- "backdrop-filter": cssBackdropFilterValue
4124
- };
4125
- }
4126
- }, {
4127
- values: theme("backdropInvert")
4128
- });
4129
- },
4130
- backdropOpacity: ({ matchUtilities , theme })=>{
4131
- matchUtilities({
4132
- "backdrop-opacity": (value)=>{
4133
- return {
4134
- "--tw-backdrop-opacity": `opacity(${value})`,
4135
- "@defaults backdrop-filter": {},
4136
- "backdrop-filter": cssBackdropFilterValue
4137
- };
4138
- }
4139
- }, {
4140
- values: theme("backdropOpacity")
4141
- });
4142
- },
4143
- backdropSaturate: ({ matchUtilities , theme })=>{
4144
- matchUtilities({
4145
- "backdrop-saturate": (value)=>{
4146
- return {
4147
- "--tw-backdrop-saturate": `saturate(${value})`,
4148
- "@defaults backdrop-filter": {},
4149
- "backdrop-filter": cssBackdropFilterValue
4150
- };
4151
- }
4152
- }, {
4153
- values: theme("backdropSaturate")
4154
- });
4155
- },
4156
- backdropSepia: ({ matchUtilities , theme })=>{
4157
- matchUtilities({
4158
- "backdrop-sepia": (value)=>{
4159
- return {
4160
- "--tw-backdrop-sepia": `sepia(${value})`,
4161
- "@defaults backdrop-filter": {},
4162
- "backdrop-filter": cssBackdropFilterValue
4163
- };
4164
- }
4165
- }, {
4166
- values: theme("backdropSepia")
4167
- });
4168
- },
4169
- backdropFilter: ({ addDefaults , addUtilities })=>{
4170
- addDefaults("backdrop-filter", {
4171
- "--tw-backdrop-blur": " ",
4172
- "--tw-backdrop-brightness": " ",
4173
- "--tw-backdrop-contrast": " ",
4174
- "--tw-backdrop-grayscale": " ",
4175
- "--tw-backdrop-hue-rotate": " ",
4176
- "--tw-backdrop-invert": " ",
4177
- "--tw-backdrop-opacity": " ",
4178
- "--tw-backdrop-saturate": " ",
4179
- "--tw-backdrop-sepia": " "
4180
- });
4181
- addUtilities({
4182
- ".backdrop-filter": {
4183
- "@defaults backdrop-filter": {},
4184
- "backdrop-filter": cssBackdropFilterValue
4185
- },
4186
- ".backdrop-filter-none": {
4187
- "backdrop-filter": "none"
4188
- }
4189
- });
4190
- },
4191
- transitionProperty: ({ matchUtilities , theme })=>{
4192
- let defaultTimingFunction = theme("transitionTimingFunction.DEFAULT");
4193
- let defaultDuration = theme("transitionDuration.DEFAULT");
4194
- matchUtilities({
4195
- transition: (value)=>{
4196
- return {
4197
- "transition-property": value,
4198
- ...value === "none" ? {} : {
4199
- "transition-timing-function": defaultTimingFunction,
4200
- "transition-duration": defaultDuration
4201
- }
4202
- };
4203
- }
4204
- }, {
4205
- values: theme("transitionProperty")
4206
- });
4207
- },
4208
- transitionDelay: (0, _createUtilityPlugin.default)("transitionDelay", [
4209
- [
4210
- "delay",
4211
- [
4212
- "transitionDelay"
4213
- ]
4214
- ]
4215
- ]),
4216
- transitionDuration: (0, _createUtilityPlugin.default)("transitionDuration", [
4217
- [
4218
- "duration",
4219
- [
4220
- "transitionDuration"
4221
- ]
4222
- ]
4223
- ], {
4224
- filterDefault: true
4225
- }),
4226
- transitionTimingFunction: (0, _createUtilityPlugin.default)("transitionTimingFunction", [
4227
- [
4228
- "ease",
4229
- [
4230
- "transitionTimingFunction"
4231
- ]
4232
- ]
4233
- ], {
4234
- filterDefault: true
4235
- }),
4236
- willChange: (0, _createUtilityPlugin.default)("willChange", [
4237
- [
4238
- "will-change",
4239
- [
4240
- "will-change"
4241
- ]
4242
- ]
4243
- ]),
4244
- contain: ({ addDefaults , addUtilities })=>{
4245
- let cssContainValue = "var(--tw-contain-size) var(--tw-contain-layout) var(--tw-contain-paint) var(--tw-contain-style)";
4246
- addDefaults("contain", {
4247
- "--tw-contain-size": " ",
4248
- "--tw-contain-layout": " ",
4249
- "--tw-contain-paint": " ",
4250
- "--tw-contain-style": " "
4251
- });
4252
- addUtilities({
4253
- ".contain-none": {
4254
- contain: "none"
4255
- },
4256
- ".contain-content": {
4257
- contain: "content"
4258
- },
4259
- ".contain-strict": {
4260
- contain: "strict"
4261
- },
4262
- ".contain-size": {
4263
- "@defaults contain": {},
4264
- "--tw-contain-size": "size",
4265
- contain: cssContainValue
4266
- },
4267
- ".contain-inline-size": {
4268
- "@defaults contain": {},
4269
- "--tw-contain-size": "inline-size",
4270
- contain: cssContainValue
4271
- },
4272
- ".contain-layout": {
4273
- "@defaults contain": {},
4274
- "--tw-contain-layout": "layout",
4275
- contain: cssContainValue
4276
- },
4277
- ".contain-paint": {
4278
- "@defaults contain": {},
4279
- "--tw-contain-paint": "paint",
4280
- contain: cssContainValue
4281
- },
4282
- ".contain-style": {
4283
- "@defaults contain": {},
4284
- "--tw-contain-style": "style",
4285
- contain: cssContainValue
4286
- }
4287
- });
4288
- },
4289
- content: (0, _createUtilityPlugin.default)("content", [
4290
- [
4291
- "content",
4292
- [
4293
- "--tw-content",
4294
- [
4295
- "content",
4296
- "var(--tw-content)"
4297
- ]
4298
- ]
4299
- ]
4300
- ]),
4301
- forcedColorAdjust: ({ addUtilities })=>{
4302
- addUtilities({
4303
- ".forced-color-adjust-auto": {
4304
- "forced-color-adjust": "auto"
4305
- },
4306
- ".forced-color-adjust-none": {
4307
- "forced-color-adjust": "none"
4308
- }
4309
- });
4310
- }
4311
- };