tailwindcss 0.0.0-insiders.fda68f7 → 0.0.0-oxide.6bf5e56

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 (195) hide show
  1. package/CHANGELOG.md +603 -2
  2. package/LICENSE +1 -2
  3. package/README.md +14 -6
  4. package/colors.d.ts +3 -0
  5. package/colors.js +2 -304
  6. package/defaultConfig.d.ts +3 -0
  7. package/defaultConfig.js +2 -4
  8. package/defaultTheme.d.ts +4 -0
  9. package/defaultTheme.js +2 -4
  10. package/lib/cli/build/deps.js +54 -0
  11. package/lib/cli/build/index.js +48 -0
  12. package/lib/cli/build/plugin.js +367 -0
  13. package/lib/cli/build/utils.js +78 -0
  14. package/lib/cli/build/watching.js +178 -0
  15. package/lib/cli/help/index.js +71 -0
  16. package/lib/cli/index.js +18 -0
  17. package/lib/cli/init/index.js +46 -0
  18. package/lib/cli/shared.js +13 -0
  19. package/lib/cli-peer-dependencies.js +22 -14
  20. package/lib/cli.js +217 -743
  21. package/lib/constants.js +41 -34
  22. package/lib/corePluginList.js +178 -5
  23. package/lib/corePlugins.js +3879 -2941
  24. package/lib/css/preflight.css +22 -9
  25. package/lib/featureFlags.js +61 -50
  26. package/lib/index.js +45 -28
  27. package/lib/lib/cacheInvalidation.js +90 -0
  28. package/lib/lib/collapseAdjacentRules.js +52 -36
  29. package/lib/lib/collapseDuplicateDeclarations.js +83 -0
  30. package/lib/lib/content.js +176 -0
  31. package/lib/lib/defaultExtractor.js +236 -0
  32. package/lib/lib/detectNesting.js +37 -0
  33. package/lib/lib/evaluateTailwindFunctions.js +203 -161
  34. package/lib/lib/expandApplyAtRules.js +502 -221
  35. package/lib/lib/expandTailwindAtRules.js +258 -243
  36. package/lib/lib/findAtConfigPath.js +44 -0
  37. package/lib/lib/generateRules.js +775 -320
  38. package/lib/lib/getModuleDependencies.js +44 -46
  39. package/lib/lib/normalizeTailwindDirectives.js +79 -60
  40. package/lib/lib/offsets.js +217 -0
  41. package/lib/lib/partitionApplyAtRules.js +56 -0
  42. package/lib/lib/regex.js +60 -0
  43. package/lib/lib/resolveDefaultsAtRules.js +150 -94
  44. package/lib/lib/setupContextUtils.js +1146 -599
  45. package/lib/lib/setupTrackingContext.js +129 -177
  46. package/lib/lib/sharedState.js +53 -21
  47. package/lib/lib/substituteScreenAtRules.js +26 -28
  48. package/{nesting → lib/postcss-plugins/nesting}/README.md +2 -2
  49. package/lib/postcss-plugins/nesting/index.js +19 -0
  50. package/lib/postcss-plugins/nesting/plugin.js +87 -0
  51. package/lib/processTailwindFeatures.js +58 -53
  52. package/lib/public/colors.js +331 -0
  53. package/lib/public/create-plugin.js +15 -0
  54. package/lib/public/default-config.js +16 -0
  55. package/lib/public/default-theme.js +16 -0
  56. package/lib/public/resolve-config.js +22 -0
  57. package/lib/util/bigSign.js +7 -6
  58. package/lib/util/buildMediaQuery.js +21 -32
  59. package/lib/util/cloneDeep.js +16 -14
  60. package/lib/util/cloneNodes.js +29 -15
  61. package/lib/util/color.js +90 -66
  62. package/lib/util/configurePlugins.js +17 -15
  63. package/lib/util/createPlugin.js +23 -26
  64. package/lib/util/createUtilityPlugin.js +46 -46
  65. package/lib/util/dataTypes.js +242 -0
  66. package/lib/util/defaults.js +20 -15
  67. package/lib/util/escapeClassName.js +18 -17
  68. package/lib/util/escapeCommas.js +7 -6
  69. package/lib/util/flattenColorPalette.js +13 -12
  70. package/lib/util/formatVariantSelector.js +285 -0
  71. package/lib/util/getAllConfigs.js +44 -18
  72. package/lib/util/hashConfig.js +15 -12
  73. package/lib/util/isKeyframeRule.js +7 -6
  74. package/lib/util/isPlainObject.js +11 -11
  75. package/lib/util/isSyntacticallyValidPropertyValue.js +72 -0
  76. package/lib/util/log.js +52 -33
  77. package/lib/util/nameClass.js +37 -26
  78. package/lib/util/negateValue.js +31 -17
  79. package/lib/util/normalizeConfig.js +281 -0
  80. package/lib/util/normalizeScreens.js +170 -0
  81. package/lib/util/parseAnimationValue.js +85 -54
  82. package/lib/util/parseBoxShadowValue.js +84 -0
  83. package/lib/util/parseDependency.js +41 -70
  84. package/lib/util/parseGlob.js +34 -0
  85. package/lib/util/parseObjectStyles.js +30 -24
  86. package/lib/util/pluginUtils.js +252 -287
  87. package/lib/util/prefixSelector.js +20 -20
  88. package/lib/util/removeAlphaVariables.js +29 -0
  89. package/lib/util/resolveConfig.js +221 -256
  90. package/lib/util/resolveConfigPath.js +43 -48
  91. package/lib/util/responsive.js +18 -14
  92. package/lib/util/splitAtTopLevelOnly.js +43 -0
  93. package/lib/util/tap.js +8 -7
  94. package/lib/util/toColorValue.js +7 -6
  95. package/lib/util/toPath.js +27 -8
  96. package/lib/util/transformThemeValue.js +67 -28
  97. package/lib/util/validateConfig.js +24 -0
  98. package/lib/util/validateFormalSyntax.js +24 -0
  99. package/lib/util/withAlphaVariable.js +67 -57
  100. package/nesting/index.js +2 -12
  101. package/package.json +60 -65
  102. package/peers/index.js +76445 -84221
  103. package/plugin.d.ts +11 -0
  104. package/plugin.js +1 -2
  105. package/resolveConfig.d.ts +12 -0
  106. package/resolveConfig.js +2 -7
  107. package/scripts/create-plugin-list.js +2 -2
  108. package/scripts/generate-types.js +105 -0
  109. package/scripts/release-channel.js +18 -0
  110. package/scripts/release-notes.js +21 -0
  111. package/scripts/type-utils.js +27 -0
  112. package/src/cli/build/deps.js +56 -0
  113. package/src/cli/build/index.js +49 -0
  114. package/src/cli/build/plugin.js +439 -0
  115. package/src/cli/build/utils.js +76 -0
  116. package/src/cli/build/watching.js +227 -0
  117. package/src/cli/help/index.js +70 -0
  118. package/src/cli/index.js +3 -0
  119. package/src/cli/init/index.js +50 -0
  120. package/src/cli/shared.js +6 -0
  121. package/src/cli-peer-dependencies.js +7 -1
  122. package/src/cli.js +50 -575
  123. package/src/corePluginList.js +1 -1
  124. package/src/corePlugins.js +2405 -1948
  125. package/src/css/preflight.css +22 -9
  126. package/src/featureFlags.js +26 -10
  127. package/src/index.js +19 -6
  128. package/src/lib/cacheInvalidation.js +52 -0
  129. package/src/lib/collapseAdjacentRules.js +21 -2
  130. package/src/lib/collapseDuplicateDeclarations.js +93 -0
  131. package/src/lib/content.js +212 -0
  132. package/src/lib/defaultExtractor.js +211 -0
  133. package/src/lib/detectNesting.js +39 -0
  134. package/src/lib/evaluateTailwindFunctions.js +84 -10
  135. package/src/lib/expandApplyAtRules.js +508 -153
  136. package/src/lib/expandTailwindAtRules.js +130 -104
  137. package/src/lib/findAtConfigPath.js +48 -0
  138. package/src/lib/generateRules.js +596 -70
  139. package/src/lib/normalizeTailwindDirectives.js +10 -3
  140. package/src/lib/offsets.js +270 -0
  141. package/src/lib/partitionApplyAtRules.js +52 -0
  142. package/src/lib/regex.js +74 -0
  143. package/src/lib/resolveDefaultsAtRules.js +105 -47
  144. package/src/lib/setupContextUtils.js +828 -196
  145. package/src/lib/setupTrackingContext.js +19 -54
  146. package/src/lib/sharedState.js +45 -7
  147. package/src/lib/substituteScreenAtRules.js +6 -3
  148. package/src/postcss-plugins/nesting/README.md +42 -0
  149. package/src/postcss-plugins/nesting/index.js +13 -0
  150. package/src/postcss-plugins/nesting/plugin.js +80 -0
  151. package/src/processTailwindFeatures.js +19 -2
  152. package/src/public/colors.js +300 -0
  153. package/src/public/create-plugin.js +2 -0
  154. package/src/public/default-config.js +4 -0
  155. package/src/public/default-theme.js +4 -0
  156. package/src/public/resolve-config.js +7 -0
  157. package/src/util/buildMediaQuery.js +14 -16
  158. package/src/util/cloneNodes.js +19 -2
  159. package/src/util/color.js +31 -14
  160. package/src/util/createUtilityPlugin.js +2 -11
  161. package/src/util/dataTypes.js +256 -0
  162. package/src/util/defaults.js +6 -0
  163. package/src/util/formatVariantSelector.js +319 -0
  164. package/src/util/getAllConfigs.js +19 -0
  165. package/src/util/isSyntacticallyValidPropertyValue.js +61 -0
  166. package/src/util/log.js +23 -22
  167. package/src/util/nameClass.js +14 -6
  168. package/src/util/negateValue.js +15 -5
  169. package/src/util/normalizeConfig.js +300 -0
  170. package/src/util/normalizeScreens.js +140 -0
  171. package/src/util/parseAnimationValue.js +7 -1
  172. package/src/util/parseBoxShadowValue.js +72 -0
  173. package/src/util/parseDependency.js +37 -38
  174. package/src/util/parseGlob.js +24 -0
  175. package/src/util/pluginUtils.js +216 -197
  176. package/src/util/prefixSelector.js +7 -8
  177. package/src/util/removeAlphaVariables.js +24 -0
  178. package/src/util/resolveConfig.js +86 -91
  179. package/src/util/splitAtTopLevelOnly.js +45 -0
  180. package/src/util/toPath.js +23 -1
  181. package/src/util/transformThemeValue.js +33 -8
  182. package/src/util/validateConfig.js +13 -0
  183. package/src/util/validateFormalSyntax.js +34 -0
  184. package/src/util/withAlphaVariable.js +14 -9
  185. package/stubs/defaultConfig.stub.js +186 -117
  186. package/stubs/simpleConfig.stub.js +1 -1
  187. package/types/config.d.ts +362 -0
  188. package/types/generated/.gitkeep +0 -0
  189. package/types/generated/colors.d.ts +276 -0
  190. package/types/generated/corePluginList.d.ts +1 -0
  191. package/types/generated/default-theme.d.ts +342 -0
  192. package/types/index.d.ts +7 -0
  193. package/lib/lib/setupWatchingContext.js +0 -331
  194. package/nesting/plugin.js +0 -41
  195. package/src/lib/setupWatchingContext.js +0 -306
@@ -1,57 +1,62 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
6
- exports.default = processTailwindFeatures;
7
-
8
- var _normalizeTailwindDirectives = _interopRequireDefault(require("./lib/normalizeTailwindDirectives"));
9
-
10
- var _expandTailwindAtRules = _interopRequireDefault(require("./lib/expandTailwindAtRules"));
11
-
12
- var _expandApplyAtRules = _interopRequireDefault(require("./lib/expandApplyAtRules"));
13
-
14
- var _evaluateTailwindFunctions = _interopRequireDefault(require("./lib/evaluateTailwindFunctions"));
15
-
16
- var _substituteScreenAtRules = _interopRequireDefault(require("./lib/substituteScreenAtRules"));
17
-
18
- var _resolveDefaultsAtRules = _interopRequireDefault(require("./lib/resolveDefaultsAtRules"));
19
-
20
- var _collapseAdjacentRules = _interopRequireDefault(require("./lib/collapseAdjacentRules"));
21
-
22
- var _setupContextUtils = require("./lib/setupContextUtils");
23
-
24
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
-
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: ()=>processTailwindFeatures
8
+ });
9
+ const _normalizeTailwindDirectives = /*#__PURE__*/ _interopRequireDefault(require("./lib/normalizeTailwindDirectives"));
10
+ const _expandTailwindAtRules = /*#__PURE__*/ _interopRequireDefault(require("./lib/expandTailwindAtRules"));
11
+ const _expandApplyAtRules = /*#__PURE__*/ _interopRequireDefault(require("./lib/expandApplyAtRules"));
12
+ const _evaluateTailwindFunctions = /*#__PURE__*/ _interopRequireDefault(require("./lib/evaluateTailwindFunctions"));
13
+ const _substituteScreenAtRules = /*#__PURE__*/ _interopRequireDefault(require("./lib/substituteScreenAtRules"));
14
+ const _resolveDefaultsAtRules = /*#__PURE__*/ _interopRequireDefault(require("./lib/resolveDefaultsAtRules"));
15
+ const _collapseAdjacentRules = /*#__PURE__*/ _interopRequireDefault(require("./lib/collapseAdjacentRules"));
16
+ const _collapseDuplicateDeclarations = /*#__PURE__*/ _interopRequireDefault(require("./lib/collapseDuplicateDeclarations"));
17
+ const _partitionApplyAtRules = /*#__PURE__*/ _interopRequireDefault(require("./lib/partitionApplyAtRules"));
18
+ const _detectNesting = /*#__PURE__*/ _interopRequireDefault(require("./lib/detectNesting"));
19
+ const _setupContextUtils = require("./lib/setupContextUtils");
20
+ const _featureFlags = require("./featureFlags");
21
+ function _interopRequireDefault(obj) {
22
+ return obj && obj.__esModule ? obj : {
23
+ default: obj
24
+ };
25
+ }
26
26
  function processTailwindFeatures(setupContext) {
27
- return function (root, result) {
28
- let tailwindDirectives = (0, _normalizeTailwindDirectives.default)(root);
29
- let context = setupContext({
30
- tailwindDirectives,
31
-
32
- registerDependency(dependency) {
33
- result.messages.push({
34
- plugin: 'tailwindcss',
35
- parent: result.opts.from,
36
- ...dependency
37
- });
38
- },
39
-
40
- createContext(tailwindConfig, changedContent) {
41
- return (0, _setupContextUtils.createContext)(tailwindConfig, changedContent, tailwindDirectives, root);
42
- }
43
-
44
- })(root, result);
45
-
46
- if (context.tailwindConfig.separator === '-') {
47
- throw new Error("The '-' character cannot be used as a custom separator in JIT mode due to parsing ambiguity. Please use another character like '_' instead.");
48
- }
49
-
50
- (0, _expandTailwindAtRules.default)(context)(root, result);
51
- (0, _expandApplyAtRules.default)(context)(root, result);
52
- (0, _evaluateTailwindFunctions.default)(context)(root, result);
53
- (0, _substituteScreenAtRules.default)(context)(root, result);
54
- (0, _resolveDefaultsAtRules.default)(context)(root, result);
55
- (0, _collapseAdjacentRules.default)(context)(root, result);
56
- };
57
- }
27
+ return function(root, result) {
28
+ let { tailwindDirectives , applyDirectives } = (0, _normalizeTailwindDirectives.default)(root);
29
+ (0, _detectNesting.default)()(root, result);
30
+ // Partition apply rules that are found in the css
31
+ // itself.
32
+ (0, _partitionApplyAtRules.default)()(root, result);
33
+ let context = setupContext({
34
+ tailwindDirectives,
35
+ applyDirectives,
36
+ registerDependency (dependency) {
37
+ result.messages.push({
38
+ plugin: "tailwindcss",
39
+ parent: result.opts.from,
40
+ ...dependency
41
+ });
42
+ },
43
+ createContext (tailwindConfig, changedContent) {
44
+ return (0, _setupContextUtils.createContext)(tailwindConfig, changedContent, root);
45
+ }
46
+ })(root, result);
47
+ if (context.tailwindConfig.separator === "-") {
48
+ throw new Error("The '-' character cannot be used as a custom separator in JIT mode due to parsing ambiguity. Please use another character like '_' instead.");
49
+ }
50
+ (0, _featureFlags.issueFlagNotices)(context.tailwindConfig);
51
+ (0, _expandTailwindAtRules.default)(context)(root, result);
52
+ // Partition apply rules that are generated by
53
+ // addComponents, addUtilities and so on.
54
+ (0, _partitionApplyAtRules.default)()(root, result);
55
+ (0, _expandApplyAtRules.default)(context)(root, result);
56
+ (0, _evaluateTailwindFunctions.default)(context)(root, result);
57
+ (0, _substituteScreenAtRules.default)(context)(root, result);
58
+ (0, _resolveDefaultsAtRules.default)(context)(root, result);
59
+ (0, _collapseAdjacentRules.default)(context)(root, result);
60
+ (0, _collapseDuplicateDeclarations.default)(context)(root, result);
61
+ };
62
+ }
@@ -0,0 +1,331 @@
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
+ };
@@ -0,0 +1,15 @@
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;
@@ -0,0 +1,16 @@
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);
@@ -0,0 +1,16 @@
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);
@@ -0,0 +1,22 @@
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,10 +1,11 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: ()=>bigSign
5
8
  });
6
- exports.default = bigSign;
7
-
8
9
  function bigSign(bigIntValue) {
9
- return (bigIntValue > 0n) - (bigIntValue < 0n);
10
- }
10
+ return (bigIntValue > 0n) - (bigIntValue < 0n);
11
+ }
@@ -1,36 +1,25 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: ()=>buildMediaQuery
5
8
  });
6
- exports.default = buildMediaQuery;
7
-
8
9
  function buildMediaQuery(screens) {
9
- if (typeof screens === 'string') {
10
- screens = {
11
- min: screens
12
- };
13
- }
14
-
15
- if (!Array.isArray(screens)) {
16
- screens = [screens];
17
- }
18
-
19
- return screens.map(screen => {
20
- var _screen$hasOwnPropert;
21
-
22
- if (screen !== null && screen !== void 0 && (_screen$hasOwnPropert = screen.hasOwnProperty) !== null && _screen$hasOwnPropert !== void 0 && _screen$hasOwnPropert.call(screen, 'raw')) {
23
- return screen.raw;
24
- }
25
-
26
- return Object.entries(screen).map(([feature, value]) => {
27
- var _min$max$feature;
28
-
29
- feature = (_min$max$feature = {
30
- min: 'min-width',
31
- max: 'max-width'
32
- }[feature]) !== null && _min$max$feature !== void 0 ? _min$max$feature : feature;
33
- return `(${feature}: ${value})`;
34
- }).join(' and ');
35
- }).join(', ');
36
- }
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,18 +1,20 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "cloneDeep", {
6
+ enumerable: true,
7
+ get: ()=>cloneDeep
5
8
  });
6
- exports.cloneDeep = cloneDeep;
7
-
8
9
  function cloneDeep(value) {
9
- if (Array.isArray(value)) {
10
- return value.map(child => cloneDeep(child));
11
- }
12
-
13
- if (typeof value === 'object' && value !== null) {
14
- return Object.fromEntries(Object.entries(value).map(([k, v]) => [k, cloneDeep(v)]));
15
- }
16
-
17
- return value;
18
- }
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,18 +1,32 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
6
- exports.default = cloneNodes;
7
-
8
- function cloneNodes(nodes, source) {
9
- return nodes.map(node => {
10
- let cloned = node.clone();
11
-
12
- if (source !== undefined) {
13
- cloned.source = source;
14
- }
15
-
16
- return cloned;
17
- });
18
- }
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 ref;
12
+ let cloned = node.clone();
13
+ // We always want override the source map
14
+ // except when explicitly told not to
15
+ let shouldOverwriteSource = ((ref = node.raws.tailwind) === null || ref === void 0 ? void 0 : ref.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
+ }