tailwindcss 0.0.0-insiders.ff2c25f → 0.0.0-internal.b2586d4e

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 (248) hide show
  1. package/README.md +5 -6
  2. package/dist/lib.d.mts +339 -0
  3. package/dist/lib.d.ts +339 -0
  4. package/dist/lib.js +17 -0
  5. package/dist/lib.mjs +17 -0
  6. package/index.css +5 -0
  7. package/package.json +36 -107
  8. package/preflight.css +334 -0
  9. package/theme.css +463 -0
  10. package/base.css +0 -1
  11. package/colors.d.ts +0 -3
  12. package/colors.js +0 -2
  13. package/components.css +0 -1
  14. package/defaultConfig.d.ts +0 -3
  15. package/defaultConfig.js +0 -2
  16. package/defaultTheme.d.ts +0 -4
  17. package/defaultTheme.js +0 -2
  18. package/lib/cli/build/deps.js +0 -54
  19. package/lib/cli/build/index.js +0 -48
  20. package/lib/cli/build/plugin.js +0 -367
  21. package/lib/cli/build/utils.js +0 -78
  22. package/lib/cli/build/watching.js +0 -178
  23. package/lib/cli/help/index.js +0 -71
  24. package/lib/cli/index.js +0 -239
  25. package/lib/cli/init/index.js +0 -46
  26. package/lib/cli-peer-dependencies.js +0 -28
  27. package/lib/cli.js +0 -7
  28. package/lib/constants.js +0 -44
  29. package/lib/corePluginList.js +0 -181
  30. package/lib/corePlugins.js +0 -4062
  31. package/lib/css/LICENSE +0 -25
  32. package/lib/css/preflight.css +0 -367
  33. package/lib/featureFlags.js +0 -71
  34. package/lib/index.js +0 -6
  35. package/lib/lib/cacheInvalidation.js +0 -90
  36. package/lib/lib/collapseAdjacentRules.js +0 -59
  37. package/lib/lib/collapseDuplicateDeclarations.js +0 -83
  38. package/lib/lib/content.js +0 -177
  39. package/lib/lib/defaultExtractor.js +0 -241
  40. package/lib/lib/detectNesting.js +0 -43
  41. package/lib/lib/evaluateTailwindFunctions.js +0 -234
  42. package/lib/lib/expandApplyAtRules.js +0 -526
  43. package/lib/lib/expandTailwindAtRules.js +0 -273
  44. package/lib/lib/findAtConfigPath.js +0 -44
  45. package/lib/lib/generateRules.js +0 -866
  46. package/lib/lib/getModuleDependencies.js +0 -51
  47. package/lib/lib/normalizeTailwindDirectives.js +0 -87
  48. package/lib/lib/offsets.js +0 -299
  49. package/lib/lib/partitionApplyAtRules.js +0 -56
  50. package/lib/lib/regex.js +0 -60
  51. package/lib/lib/remap-bitfield.js +0 -87
  52. package/lib/lib/resolveDefaultsAtRules.js +0 -161
  53. package/lib/lib/setupContextUtils.js +0 -1218
  54. package/lib/lib/setupTrackingContext.js +0 -163
  55. package/lib/lib/sharedState.js +0 -78
  56. package/lib/lib/substituteScreenAtRules.js +0 -29
  57. package/lib/oxide/cli/build/deps.js +0 -81
  58. package/lib/oxide/cli/build/index.js +0 -47
  59. package/lib/oxide/cli/build/plugin.js +0 -364
  60. package/lib/oxide/cli/build/utils.js +0 -77
  61. package/lib/oxide/cli/build/watching.js +0 -177
  62. package/lib/oxide/cli/help/index.js +0 -70
  63. package/lib/oxide/cli/index.js +0 -220
  64. package/lib/oxide/cli/init/index.js +0 -35
  65. package/lib/oxide/cli.js +0 -5
  66. package/lib/oxide/postcss-plugin.js +0 -2
  67. package/lib/plugin.js +0 -48
  68. package/lib/postcss-plugins/nesting/README.md +0 -42
  69. package/lib/postcss-plugins/nesting/index.js +0 -19
  70. package/lib/postcss-plugins/nesting/plugin.js +0 -87
  71. package/lib/processTailwindFeatures.js +0 -62
  72. package/lib/public/colors.js +0 -331
  73. package/lib/public/create-plugin.js +0 -15
  74. package/lib/public/default-config.js +0 -16
  75. package/lib/public/default-theme.js +0 -16
  76. package/lib/public/resolve-config.js +0 -22
  77. package/lib/util/bigSign.js +0 -11
  78. package/lib/util/buildMediaQuery.js +0 -25
  79. package/lib/util/cloneDeep.js +0 -20
  80. package/lib/util/cloneNodes.js +0 -32
  81. package/lib/util/color.js +0 -98
  82. package/lib/util/configurePlugins.js +0 -21
  83. package/lib/util/createPlugin.js +0 -30
  84. package/lib/util/createUtilityPlugin.js +0 -51
  85. package/lib/util/dataTypes.js +0 -266
  86. package/lib/util/defaults.js +0 -25
  87. package/lib/util/escapeClassName.js +0 -22
  88. package/lib/util/escapeCommas.js +0 -11
  89. package/lib/util/flattenColorPalette.js +0 -16
  90. package/lib/util/formatVariantSelector.js +0 -351
  91. package/lib/util/getAllConfigs.js +0 -48
  92. package/lib/util/hashConfig.js +0 -19
  93. package/lib/util/isKeyframeRule.js +0 -11
  94. package/lib/util/isPlainObject.js +0 -15
  95. package/lib/util/isSyntacticallyValidPropertyValue.js +0 -72
  96. package/lib/util/log.js +0 -57
  97. package/lib/util/nameClass.js +0 -43
  98. package/lib/util/negateValue.js +0 -34
  99. package/lib/util/normalizeConfig.js +0 -281
  100. package/lib/util/normalizeScreens.js +0 -170
  101. package/lib/util/parseAnimationValue.js +0 -91
  102. package/lib/util/parseBoxShadowValue.js +0 -84
  103. package/lib/util/parseDependency.js +0 -45
  104. package/lib/util/parseGlob.js +0 -34
  105. package/lib/util/parseObjectStyles.js +0 -34
  106. package/lib/util/pluginUtils.js +0 -283
  107. package/lib/util/prefixSelector.js +0 -37
  108. package/lib/util/removeAlphaVariables.js +0 -29
  109. package/lib/util/resolveConfig.js +0 -254
  110. package/lib/util/resolveConfigPath.js +0 -54
  111. package/lib/util/responsive.js +0 -22
  112. package/lib/util/splitAtTopLevelOnly.js +0 -43
  113. package/lib/util/tap.js +0 -12
  114. package/lib/util/toColorValue.js +0 -11
  115. package/lib/util/toPath.js +0 -30
  116. package/lib/util/transformThemeValue.js +0 -71
  117. package/lib/util/validateConfig.js +0 -24
  118. package/lib/util/validateFormalSyntax.js +0 -24
  119. package/lib/util/withAlphaVariable.js +0 -75
  120. package/nesting/index.js +0 -2
  121. package/oxide-node-api-shim/index.js +0 -21
  122. package/oxide-node-api-shim/package.json +0 -5
  123. package/peers/index.js +0 -79461
  124. package/plugin.d.ts +0 -11
  125. package/plugin.js +0 -2
  126. package/prettier.config.js +0 -19
  127. package/resolveConfig.d.ts +0 -12
  128. package/resolveConfig.js +0 -2
  129. package/screens.css +0 -1
  130. package/scripts/create-plugin-list.js +0 -10
  131. package/scripts/generate-types.js +0 -105
  132. package/scripts/release-channel.js +0 -18
  133. package/scripts/release-notes.js +0 -21
  134. package/scripts/swap-engines.js +0 -40
  135. package/scripts/type-utils.js +0 -27
  136. package/src/cli/build/deps.js +0 -56
  137. package/src/cli/build/index.js +0 -49
  138. package/src/cli/build/plugin.js +0 -439
  139. package/src/cli/build/utils.js +0 -76
  140. package/src/cli/build/watching.js +0 -227
  141. package/src/cli/help/index.js +0 -70
  142. package/src/cli/index.js +0 -234
  143. package/src/cli/init/index.js +0 -50
  144. package/src/cli-peer-dependencies.js +0 -15
  145. package/src/cli.js +0 -7
  146. package/src/constants.js +0 -17
  147. package/src/corePluginList.js +0 -1
  148. package/src/corePlugins.js +0 -2744
  149. package/src/css/LICENSE +0 -25
  150. package/src/css/preflight.css +0 -367
  151. package/src/featureFlags.js +0 -64
  152. package/src/index.js +0 -5
  153. package/src/lib/cacheInvalidation.js +0 -52
  154. package/src/lib/collapseAdjacentRules.js +0 -58
  155. package/src/lib/collapseDuplicateDeclarations.js +0 -93
  156. package/src/lib/content.js +0 -208
  157. package/src/lib/defaultExtractor.js +0 -217
  158. package/src/lib/detectNesting.js +0 -47
  159. package/src/lib/evaluateTailwindFunctions.js +0 -269
  160. package/src/lib/expandApplyAtRules.js +0 -606
  161. package/src/lib/expandTailwindAtRules.js +0 -285
  162. package/src/lib/findAtConfigPath.js +0 -48
  163. package/src/lib/generateRules.js +0 -899
  164. package/src/lib/getModuleDependencies.js +0 -39
  165. package/src/lib/normalizeTailwindDirectives.js +0 -84
  166. package/src/lib/offsets.js +0 -367
  167. package/src/lib/partitionApplyAtRules.js +0 -52
  168. package/src/lib/regex.js +0 -74
  169. package/src/lib/remap-bitfield.js +0 -82
  170. package/src/lib/resolveDefaultsAtRules.js +0 -163
  171. package/src/lib/setupContextUtils.js +0 -1308
  172. package/src/lib/setupTrackingContext.js +0 -171
  173. package/src/lib/sharedState.js +0 -67
  174. package/src/lib/substituteScreenAtRules.js +0 -19
  175. package/src/oxide/cli/build/deps.ts +0 -91
  176. package/src/oxide/cli/build/index.ts +0 -47
  177. package/src/oxide/cli/build/plugin.ts +0 -436
  178. package/src/oxide/cli/build/utils.ts +0 -74
  179. package/src/oxide/cli/build/watching.ts +0 -225
  180. package/src/oxide/cli/help/index.ts +0 -69
  181. package/src/oxide/cli/index.ts +0 -212
  182. package/src/oxide/cli/init/index.ts +0 -32
  183. package/src/oxide/cli.ts +0 -1
  184. package/src/oxide/postcss-plugin.ts +0 -1
  185. package/src/plugin.js +0 -47
  186. package/src/postcss-plugins/nesting/README.md +0 -42
  187. package/src/postcss-plugins/nesting/index.js +0 -13
  188. package/src/postcss-plugins/nesting/plugin.js +0 -80
  189. package/src/processTailwindFeatures.js +0 -58
  190. package/src/public/colors.js +0 -300
  191. package/src/public/create-plugin.js +0 -2
  192. package/src/public/default-config.js +0 -4
  193. package/src/public/default-theme.js +0 -4
  194. package/src/public/resolve-config.js +0 -7
  195. package/src/util/bigSign.js +0 -3
  196. package/src/util/buildMediaQuery.js +0 -22
  197. package/src/util/cloneDeep.js +0 -11
  198. package/src/util/cloneNodes.js +0 -28
  199. package/src/util/color.js +0 -73
  200. package/src/util/configurePlugins.js +0 -23
  201. package/src/util/createPlugin.js +0 -27
  202. package/src/util/createUtilityPlugin.js +0 -37
  203. package/src/util/dataTypes.js +0 -281
  204. package/src/util/defaults.js +0 -17
  205. package/src/util/escapeClassName.js +0 -8
  206. package/src/util/escapeCommas.js +0 -3
  207. package/src/util/flattenColorPalette.js +0 -13
  208. package/src/util/formatVariantSelector.js +0 -412
  209. package/src/util/getAllConfigs.js +0 -38
  210. package/src/util/hashConfig.js +0 -5
  211. package/src/util/isKeyframeRule.js +0 -3
  212. package/src/util/isPlainObject.js +0 -8
  213. package/src/util/isSyntacticallyValidPropertyValue.js +0 -61
  214. package/src/util/log.js +0 -29
  215. package/src/util/nameClass.js +0 -30
  216. package/src/util/negateValue.js +0 -24
  217. package/src/util/normalizeConfig.js +0 -300
  218. package/src/util/normalizeScreens.js +0 -140
  219. package/src/util/parseAnimationValue.js +0 -68
  220. package/src/util/parseBoxShadowValue.js +0 -72
  221. package/src/util/parseDependency.js +0 -44
  222. package/src/util/parseGlob.js +0 -24
  223. package/src/util/parseObjectStyles.js +0 -19
  224. package/src/util/pluginUtils.js +0 -314
  225. package/src/util/prefixSelector.js +0 -32
  226. package/src/util/removeAlphaVariables.js +0 -24
  227. package/src/util/resolveConfig.js +0 -277
  228. package/src/util/resolveConfigPath.js +0 -55
  229. package/src/util/responsive.js +0 -10
  230. package/src/util/splitAtTopLevelOnly.js +0 -45
  231. package/src/util/tap.js +0 -4
  232. package/src/util/toColorValue.js +0 -3
  233. package/src/util/toPath.js +0 -26
  234. package/src/util/transformThemeValue.js +0 -62
  235. package/src/util/validateConfig.js +0 -13
  236. package/src/util/validateFormalSyntax.js +0 -34
  237. package/src/util/withAlphaVariable.js +0 -49
  238. package/stubs/defaultConfig.stub.js +0 -956
  239. package/stubs/defaultPostCssConfig.stub.js +0 -6
  240. package/stubs/simpleConfig.stub.js +0 -8
  241. package/tailwind.css +0 -5
  242. package/types/config.d.ts +0 -367
  243. package/types/generated/.gitkeep +0 -0
  244. package/types/generated/colors.d.ts +0 -276
  245. package/types/generated/corePluginList.d.ts +0 -1
  246. package/types/generated/default-theme.d.ts +0 -345
  247. package/types/index.d.ts +0 -7
  248. package/variants.css +0 -1
@@ -1,331 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: ()=>_default
8
- });
9
- const _log = /*#__PURE__*/ _interopRequireDefault(require("../util/log"));
10
- function _interopRequireDefault(obj) {
11
- return obj && obj.__esModule ? obj : {
12
- default: obj
13
- };
14
- }
15
- function warn({ version , from , to }) {
16
- _log.default.warn(`${from}-color-renamed`, [
17
- `As of Tailwind CSS ${version}, \`${from}\` has been renamed to \`${to}\`.`,
18
- "Update your configuration file to silence this warning."
19
- ]);
20
- }
21
- const _default = {
22
- inherit: "inherit",
23
- current: "currentColor",
24
- transparent: "transparent",
25
- black: "#000",
26
- white: "#fff",
27
- slate: {
28
- 50: "#f8fafc",
29
- 100: "#f1f5f9",
30
- 200: "#e2e8f0",
31
- 300: "#cbd5e1",
32
- 400: "#94a3b8",
33
- 500: "#64748b",
34
- 600: "#475569",
35
- 700: "#334155",
36
- 800: "#1e293b",
37
- 900: "#0f172a"
38
- },
39
- gray: {
40
- 50: "#f9fafb",
41
- 100: "#f3f4f6",
42
- 200: "#e5e7eb",
43
- 300: "#d1d5db",
44
- 400: "#9ca3af",
45
- 500: "#6b7280",
46
- 600: "#4b5563",
47
- 700: "#374151",
48
- 800: "#1f2937",
49
- 900: "#111827"
50
- },
51
- zinc: {
52
- 50: "#fafafa",
53
- 100: "#f4f4f5",
54
- 200: "#e4e4e7",
55
- 300: "#d4d4d8",
56
- 400: "#a1a1aa",
57
- 500: "#71717a",
58
- 600: "#52525b",
59
- 700: "#3f3f46",
60
- 800: "#27272a",
61
- 900: "#18181b"
62
- },
63
- neutral: {
64
- 50: "#fafafa",
65
- 100: "#f5f5f5",
66
- 200: "#e5e5e5",
67
- 300: "#d4d4d4",
68
- 400: "#a3a3a3",
69
- 500: "#737373",
70
- 600: "#525252",
71
- 700: "#404040",
72
- 800: "#262626",
73
- 900: "#171717"
74
- },
75
- stone: {
76
- 50: "#fafaf9",
77
- 100: "#f5f5f4",
78
- 200: "#e7e5e4",
79
- 300: "#d6d3d1",
80
- 400: "#a8a29e",
81
- 500: "#78716c",
82
- 600: "#57534e",
83
- 700: "#44403c",
84
- 800: "#292524",
85
- 900: "#1c1917"
86
- },
87
- red: {
88
- 50: "#fef2f2",
89
- 100: "#fee2e2",
90
- 200: "#fecaca",
91
- 300: "#fca5a5",
92
- 400: "#f87171",
93
- 500: "#ef4444",
94
- 600: "#dc2626",
95
- 700: "#b91c1c",
96
- 800: "#991b1b",
97
- 900: "#7f1d1d"
98
- },
99
- orange: {
100
- 50: "#fff7ed",
101
- 100: "#ffedd5",
102
- 200: "#fed7aa",
103
- 300: "#fdba74",
104
- 400: "#fb923c",
105
- 500: "#f97316",
106
- 600: "#ea580c",
107
- 700: "#c2410c",
108
- 800: "#9a3412",
109
- 900: "#7c2d12"
110
- },
111
- amber: {
112
- 50: "#fffbeb",
113
- 100: "#fef3c7",
114
- 200: "#fde68a",
115
- 300: "#fcd34d",
116
- 400: "#fbbf24",
117
- 500: "#f59e0b",
118
- 600: "#d97706",
119
- 700: "#b45309",
120
- 800: "#92400e",
121
- 900: "#78350f"
122
- },
123
- yellow: {
124
- 50: "#fefce8",
125
- 100: "#fef9c3",
126
- 200: "#fef08a",
127
- 300: "#fde047",
128
- 400: "#facc15",
129
- 500: "#eab308",
130
- 600: "#ca8a04",
131
- 700: "#a16207",
132
- 800: "#854d0e",
133
- 900: "#713f12"
134
- },
135
- lime: {
136
- 50: "#f7fee7",
137
- 100: "#ecfccb",
138
- 200: "#d9f99d",
139
- 300: "#bef264",
140
- 400: "#a3e635",
141
- 500: "#84cc16",
142
- 600: "#65a30d",
143
- 700: "#4d7c0f",
144
- 800: "#3f6212",
145
- 900: "#365314"
146
- },
147
- green: {
148
- 50: "#f0fdf4",
149
- 100: "#dcfce7",
150
- 200: "#bbf7d0",
151
- 300: "#86efac",
152
- 400: "#4ade80",
153
- 500: "#22c55e",
154
- 600: "#16a34a",
155
- 700: "#15803d",
156
- 800: "#166534",
157
- 900: "#14532d"
158
- },
159
- emerald: {
160
- 50: "#ecfdf5",
161
- 100: "#d1fae5",
162
- 200: "#a7f3d0",
163
- 300: "#6ee7b7",
164
- 400: "#34d399",
165
- 500: "#10b981",
166
- 600: "#059669",
167
- 700: "#047857",
168
- 800: "#065f46",
169
- 900: "#064e3b"
170
- },
171
- teal: {
172
- 50: "#f0fdfa",
173
- 100: "#ccfbf1",
174
- 200: "#99f6e4",
175
- 300: "#5eead4",
176
- 400: "#2dd4bf",
177
- 500: "#14b8a6",
178
- 600: "#0d9488",
179
- 700: "#0f766e",
180
- 800: "#115e59",
181
- 900: "#134e4a"
182
- },
183
- cyan: {
184
- 50: "#ecfeff",
185
- 100: "#cffafe",
186
- 200: "#a5f3fc",
187
- 300: "#67e8f9",
188
- 400: "#22d3ee",
189
- 500: "#06b6d4",
190
- 600: "#0891b2",
191
- 700: "#0e7490",
192
- 800: "#155e75",
193
- 900: "#164e63"
194
- },
195
- sky: {
196
- 50: "#f0f9ff",
197
- 100: "#e0f2fe",
198
- 200: "#bae6fd",
199
- 300: "#7dd3fc",
200
- 400: "#38bdf8",
201
- 500: "#0ea5e9",
202
- 600: "#0284c7",
203
- 700: "#0369a1",
204
- 800: "#075985",
205
- 900: "#0c4a6e"
206
- },
207
- blue: {
208
- 50: "#eff6ff",
209
- 100: "#dbeafe",
210
- 200: "#bfdbfe",
211
- 300: "#93c5fd",
212
- 400: "#60a5fa",
213
- 500: "#3b82f6",
214
- 600: "#2563eb",
215
- 700: "#1d4ed8",
216
- 800: "#1e40af",
217
- 900: "#1e3a8a"
218
- },
219
- indigo: {
220
- 50: "#eef2ff",
221
- 100: "#e0e7ff",
222
- 200: "#c7d2fe",
223
- 300: "#a5b4fc",
224
- 400: "#818cf8",
225
- 500: "#6366f1",
226
- 600: "#4f46e5",
227
- 700: "#4338ca",
228
- 800: "#3730a3",
229
- 900: "#312e81"
230
- },
231
- violet: {
232
- 50: "#f5f3ff",
233
- 100: "#ede9fe",
234
- 200: "#ddd6fe",
235
- 300: "#c4b5fd",
236
- 400: "#a78bfa",
237
- 500: "#8b5cf6",
238
- 600: "#7c3aed",
239
- 700: "#6d28d9",
240
- 800: "#5b21b6",
241
- 900: "#4c1d95"
242
- },
243
- purple: {
244
- 50: "#faf5ff",
245
- 100: "#f3e8ff",
246
- 200: "#e9d5ff",
247
- 300: "#d8b4fe",
248
- 400: "#c084fc",
249
- 500: "#a855f7",
250
- 600: "#9333ea",
251
- 700: "#7e22ce",
252
- 800: "#6b21a8",
253
- 900: "#581c87"
254
- },
255
- fuchsia: {
256
- 50: "#fdf4ff",
257
- 100: "#fae8ff",
258
- 200: "#f5d0fe",
259
- 300: "#f0abfc",
260
- 400: "#e879f9",
261
- 500: "#d946ef",
262
- 600: "#c026d3",
263
- 700: "#a21caf",
264
- 800: "#86198f",
265
- 900: "#701a75"
266
- },
267
- pink: {
268
- 50: "#fdf2f8",
269
- 100: "#fce7f3",
270
- 200: "#fbcfe8",
271
- 300: "#f9a8d4",
272
- 400: "#f472b6",
273
- 500: "#ec4899",
274
- 600: "#db2777",
275
- 700: "#be185d",
276
- 800: "#9d174d",
277
- 900: "#831843"
278
- },
279
- rose: {
280
- 50: "#fff1f2",
281
- 100: "#ffe4e6",
282
- 200: "#fecdd3",
283
- 300: "#fda4af",
284
- 400: "#fb7185",
285
- 500: "#f43f5e",
286
- 600: "#e11d48",
287
- 700: "#be123c",
288
- 800: "#9f1239",
289
- 900: "#881337"
290
- },
291
- get lightBlue () {
292
- warn({
293
- version: "v2.2",
294
- from: "lightBlue",
295
- to: "sky"
296
- });
297
- return this.sky;
298
- },
299
- get warmGray () {
300
- warn({
301
- version: "v3.0",
302
- from: "warmGray",
303
- to: "stone"
304
- });
305
- return this.stone;
306
- },
307
- get trueGray () {
308
- warn({
309
- version: "v3.0",
310
- from: "trueGray",
311
- to: "neutral"
312
- });
313
- return this.neutral;
314
- },
315
- get coolGray () {
316
- warn({
317
- version: "v3.0",
318
- from: "coolGray",
319
- to: "gray"
320
- });
321
- return this.gray;
322
- },
323
- get blueGray () {
324
- warn({
325
- version: "v3.0",
326
- from: "blueGray",
327
- to: "slate"
328
- });
329
- return this.slate;
330
- }
331
- };
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: ()=>_default
8
- });
9
- const _createPlugin = /*#__PURE__*/ _interopRequireDefault(require("../util/createPlugin"));
10
- function _interopRequireDefault(obj) {
11
- return obj && obj.__esModule ? obj : {
12
- default: obj
13
- };
14
- }
15
- const _default = _createPlugin.default;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: ()=>_default
8
- });
9
- const _cloneDeep = require("../util/cloneDeep");
10
- const _defaultConfigStub = /*#__PURE__*/ _interopRequireDefault(require("../../stubs/defaultConfig.stub"));
11
- function _interopRequireDefault(obj) {
12
- return obj && obj.__esModule ? obj : {
13
- default: obj
14
- };
15
- }
16
- const _default = (0, _cloneDeep.cloneDeep)(_defaultConfigStub.default);
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: ()=>_default
8
- });
9
- const _cloneDeep = require("../util/cloneDeep");
10
- const _defaultConfigStub = /*#__PURE__*/ _interopRequireDefault(require("../../stubs/defaultConfig.stub"));
11
- function _interopRequireDefault(obj) {
12
- return obj && obj.__esModule ? obj : {
13
- default: obj
14
- };
15
- }
16
- const _default = (0, _cloneDeep.cloneDeep)(_defaultConfigStub.default.theme);
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: ()=>resolveConfig
8
- });
9
- const _resolveConfig = /*#__PURE__*/ _interopRequireDefault(require("../util/resolveConfig"));
10
- const _getAllConfigs = /*#__PURE__*/ _interopRequireDefault(require("../util/getAllConfigs"));
11
- function _interopRequireDefault(obj) {
12
- return obj && obj.__esModule ? obj : {
13
- default: obj
14
- };
15
- }
16
- function resolveConfig(...configs) {
17
- let [, ...defaultConfigs] = (0, _getAllConfigs.default)(configs[0]);
18
- return (0, _resolveConfig.default)([
19
- ...configs,
20
- ...defaultConfigs
21
- ]);
22
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: ()=>bigSign
8
- });
9
- function bigSign(bigIntValue) {
10
- return (bigIntValue > 0n) - (bigIntValue < 0n);
11
- }
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: ()=>buildMediaQuery
8
- });
9
- function buildMediaQuery(screens) {
10
- screens = Array.isArray(screens) ? screens : [
11
- screens
12
- ];
13
- return screens.map((screen)=>{
14
- let values = screen.values.map((screen)=>{
15
- if (screen.raw !== undefined) {
16
- return screen.raw;
17
- }
18
- return [
19
- screen.min && `(min-width: ${screen.min})`,
20
- screen.max && `(max-width: ${screen.max})`
21
- ].filter(Boolean).join(" and ");
22
- });
23
- return screen.not ? `not all and ${values}` : values;
24
- }).join(", ");
25
- }
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "cloneDeep", {
6
- enumerable: true,
7
- get: ()=>cloneDeep
8
- });
9
- function cloneDeep(value) {
10
- if (Array.isArray(value)) {
11
- return value.map((child)=>cloneDeep(child));
12
- }
13
- if (typeof value === "object" && value !== null) {
14
- return Object.fromEntries(Object.entries(value).map(([k, v])=>[
15
- k,
16
- cloneDeep(v)
17
- ]));
18
- }
19
- return value;
20
- }
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: ()=>cloneNodes
8
- });
9
- function cloneNodes(nodes, source = undefined, raws = undefined) {
10
- return nodes.map((node)=>{
11
- var _node_raws_tailwind;
12
- let cloned = node.clone();
13
- // We always want override the source map
14
- // except when explicitly told not to
15
- let shouldOverwriteSource = ((_node_raws_tailwind = node.raws.tailwind) === null || _node_raws_tailwind === void 0 ? void 0 : _node_raws_tailwind.preserveSource) !== true || !cloned.source;
16
- if (source !== undefined && shouldOverwriteSource) {
17
- cloned.source = source;
18
- if ("walk" in cloned) {
19
- cloned.walk((child)=>{
20
- child.source = source;
21
- });
22
- }
23
- }
24
- if (raws !== undefined) {
25
- cloned.raws.tailwind = {
26
- ...cloned.raws.tailwind,
27
- ...raws
28
- };
29
- }
30
- return cloned;
31
- });
32
- }
package/lib/util/color.js DELETED
@@ -1,98 +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
- parseColor: ()=>parseColor,
13
- formatColor: ()=>formatColor
14
- });
15
- const _colorName = /*#__PURE__*/ _interopRequireDefault(require("color-name"));
16
- function _interopRequireDefault(obj) {
17
- return obj && obj.__esModule ? obj : {
18
- default: obj
19
- };
20
- }
21
- let HEX = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;
22
- let SHORT_HEX = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i;
23
- let VALUE = /(?:\d+|\d*\.\d+)%?/;
24
- let SEP = /(?:\s*,\s*|\s+)/;
25
- let ALPHA_SEP = /\s*[,/]\s*/;
26
- let CUSTOM_PROPERTY = /var\(--(?:[^ )]*?)\)/;
27
- let RGB = new RegExp(`^(rgb)a?\\(\\s*(${VALUE.source}|${CUSTOM_PROPERTY.source})(?:${SEP.source}(${VALUE.source}|${CUSTOM_PROPERTY.source}))?(?:${SEP.source}(${VALUE.source}|${CUSTOM_PROPERTY.source}))?(?:${ALPHA_SEP.source}(${VALUE.source}|${CUSTOM_PROPERTY.source}))?\\s*\\)$`);
28
- let HSL = new RegExp(`^(hsl)a?\\(\\s*((?:${VALUE.source})(?:deg|rad|grad|turn)?|${CUSTOM_PROPERTY.source})(?:${SEP.source}(${VALUE.source}|${CUSTOM_PROPERTY.source}))?(?:${SEP.source}(${VALUE.source}|${CUSTOM_PROPERTY.source}))?(?:${ALPHA_SEP.source}(${VALUE.source}|${CUSTOM_PROPERTY.source}))?\\s*\\)$`);
29
- function parseColor(value, { loose =false } = {}) {
30
- var _match_, _match__toString;
31
- if (typeof value !== "string") {
32
- return null;
33
- }
34
- value = value.trim();
35
- if (value === "transparent") {
36
- return {
37
- mode: "rgb",
38
- color: [
39
- "0",
40
- "0",
41
- "0"
42
- ],
43
- alpha: "0"
44
- };
45
- }
46
- if (value in _colorName.default) {
47
- return {
48
- mode: "rgb",
49
- color: _colorName.default[value].map((v)=>v.toString())
50
- };
51
- }
52
- let hex = value.replace(SHORT_HEX, (_, r, g, b, a)=>[
53
- "#",
54
- r,
55
- r,
56
- g,
57
- g,
58
- b,
59
- b,
60
- a ? a + a : ""
61
- ].join("")).match(HEX);
62
- if (hex !== null) {
63
- return {
64
- mode: "rgb",
65
- color: [
66
- parseInt(hex[1], 16),
67
- parseInt(hex[2], 16),
68
- parseInt(hex[3], 16)
69
- ].map((v)=>v.toString()),
70
- alpha: hex[4] ? (parseInt(hex[4], 16) / 255).toString() : undefined
71
- };
72
- }
73
- var _value_match;
74
- let match = (_value_match = value.match(RGB)) !== null && _value_match !== void 0 ? _value_match : value.match(HSL);
75
- if (match === null) {
76
- return null;
77
- }
78
- let color = [
79
- match[2],
80
- match[3],
81
- match[4]
82
- ].filter(Boolean).map((v)=>v.toString());
83
- if (!loose && color.length !== 3) {
84
- return null;
85
- }
86
- if (color.length < 3 && !color.some((part)=>/^var\(.*?\)$/.test(part))) {
87
- return null;
88
- }
89
- return {
90
- mode: match[1],
91
- color,
92
- alpha: (_match_ = match[5]) === null || _match_ === void 0 ? void 0 : (_match__toString = _match_.toString) === null || _match__toString === void 0 ? void 0 : _match__toString.call(_match_)
93
- };
94
- }
95
- function formatColor({ mode , color , alpha }) {
96
- let hasAlpha = alpha !== undefined;
97
- return `${mode}(${color.join(" ")}${hasAlpha ? ` / ${alpha}` : ""})`;
98
- }
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: ()=>_default
8
- });
9
- function _default(pluginConfig, plugins) {
10
- if (pluginConfig === undefined) {
11
- return plugins;
12
- }
13
- const pluginNames = Array.isArray(pluginConfig) ? pluginConfig : [
14
- ...new Set(plugins.filter((pluginName)=>{
15
- return pluginConfig !== false && pluginConfig[pluginName] !== false;
16
- }).concat(Object.keys(pluginConfig).filter((pluginName)=>{
17
- return pluginConfig[pluginName] !== false;
18
- })))
19
- ];
20
- return pluginNames;
21
- }
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: ()=>_default
8
- });
9
- function createPlugin(plugin, config) {
10
- return {
11
- handler: plugin,
12
- config
13
- };
14
- }
15
- createPlugin.withOptions = function(pluginFunction, configFunction = ()=>({})) {
16
- const optionsFunction = function(options) {
17
- return {
18
- __options: options,
19
- handler: pluginFunction(options),
20
- config: configFunction(options)
21
- };
22
- };
23
- optionsFunction.__isOptionsFunction = true;
24
- // Expose plugin dependencies so that `object-hash` returns a different
25
- // value if anything here changes, to ensure a rebuild is triggered.
26
- optionsFunction.__pluginFunction = pluginFunction;
27
- optionsFunction.__configFunction = configFunction;
28
- return optionsFunction;
29
- };
30
- const _default = createPlugin;
@@ -1,51 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: ()=>createUtilityPlugin
8
- });
9
- const _transformThemeValue = /*#__PURE__*/ _interopRequireDefault(require("./transformThemeValue"));
10
- function _interopRequireDefault(obj) {
11
- return obj && obj.__esModule ? obj : {
12
- default: obj
13
- };
14
- }
15
- function createUtilityPlugin(themeKey, utilityVariations = [
16
- [
17
- themeKey,
18
- [
19
- themeKey
20
- ]
21
- ]
22
- ], { filterDefault =false , ...options } = {}) {
23
- let transformValue = (0, _transformThemeValue.default)(themeKey);
24
- return function({ matchUtilities , theme }) {
25
- for (let utilityVariation of utilityVariations){
26
- let group = Array.isArray(utilityVariation[0]) ? utilityVariation : [
27
- utilityVariation
28
- ];
29
- var _theme;
30
- matchUtilities(group.reduce((obj, [classPrefix, properties])=>{
31
- return Object.assign(obj, {
32
- [classPrefix]: (value)=>{
33
- return properties.reduce((obj, name)=>{
34
- if (Array.isArray(name)) {
35
- return Object.assign(obj, {
36
- [name[0]]: name[1]
37
- });
38
- }
39
- return Object.assign(obj, {
40
- [name]: transformValue(value)
41
- });
42
- }, {});
43
- }
44
- });
45
- }, {}), {
46
- ...options,
47
- values: filterDefault ? Object.fromEntries(Object.entries((_theme = theme(themeKey)) !== null && _theme !== void 0 ? _theme : {}).filter(([modifier])=>modifier !== "DEFAULT")) : theme(themeKey)
48
- });
49
- }
50
- };
51
- }