tailwindcss 0.0.0-insiders.df011dc → 0.0.0-insiders.e2d5f21

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 (120) hide show
  1. package/CHANGELOG.md +106 -1
  2. package/README.md +1 -1
  3. package/colors.js +1 -304
  4. package/defaultConfig.js +1 -4
  5. package/defaultTheme.js +1 -4
  6. package/lib/cli-peer-dependencies.js +4 -9
  7. package/lib/cli.js +646 -705
  8. package/lib/constants.js +15 -15
  9. package/lib/corePluginList.js +174 -4
  10. package/lib/corePlugins.js +3637 -2934
  11. package/lib/css/preflight.css +14 -1
  12. package/lib/featureFlags.js +44 -44
  13. package/lib/index.js +25 -24
  14. package/lib/lib/collapseAdjacentRules.js +33 -35
  15. package/lib/lib/collapseDuplicateDeclarations.js +29 -0
  16. package/lib/lib/detectNesting.js +34 -0
  17. package/lib/lib/evaluateTailwindFunctions.js +134 -155
  18. package/lib/lib/expandApplyAtRules.js +183 -200
  19. package/lib/lib/expandTailwindAtRules.js +219 -232
  20. package/lib/lib/generateRules.js +478 -311
  21. package/lib/lib/getModuleDependencies.js +36 -41
  22. package/lib/lib/normalizeTailwindDirectives.js +66 -58
  23. package/lib/lib/resolveDefaultsAtRules.js +110 -90
  24. package/lib/lib/setupContextUtils.js +740 -580
  25. package/lib/lib/setupTrackingContext.js +142 -162
  26. package/lib/lib/setupWatchingContext.js +235 -278
  27. package/lib/lib/sharedState.js +7 -17
  28. package/lib/lib/substituteScreenAtRules.js +22 -26
  29. package/lib/processTailwindFeatures.js +38 -44
  30. package/lib/public/colors.js +329 -0
  31. package/lib/public/create-plugin.js +13 -0
  32. package/lib/public/default-config.js +14 -0
  33. package/lib/public/default-theme.js +14 -0
  34. package/lib/public/resolve-config.js +19 -0
  35. package/lib/util/bigSign.js +3 -5
  36. package/lib/util/buildMediaQuery.js +15 -31
  37. package/lib/util/cloneDeep.js +14 -13
  38. package/lib/util/cloneNodes.js +9 -13
  39. package/lib/util/color.js +69 -59
  40. package/lib/util/configurePlugins.js +13 -14
  41. package/lib/util/createPlugin.js +21 -24
  42. package/lib/util/createUtilityPlugin.js +47 -45
  43. package/lib/util/dataTypes.js +231 -0
  44. package/lib/util/defaults.js +10 -14
  45. package/lib/util/escapeClassName.js +12 -14
  46. package/lib/util/escapeCommas.js +3 -5
  47. package/lib/util/flattenColorPalette.js +14 -10
  48. package/lib/util/formatVariantSelector.js +186 -0
  49. package/lib/util/getAllConfigs.js +23 -16
  50. package/lib/util/hashConfig.js +10 -10
  51. package/lib/util/isKeyframeRule.js +3 -5
  52. package/lib/util/isPlainObject.js +7 -10
  53. package/lib/util/isValidArbitraryValue.js +64 -0
  54. package/lib/util/log.js +39 -30
  55. package/lib/util/nameClass.js +23 -23
  56. package/lib/util/negateValue.js +14 -15
  57. package/lib/util/normalizeConfig.js +208 -0
  58. package/lib/util/normalizeScreens.js +58 -0
  59. package/lib/util/parseAnimationValue.js +82 -53
  60. package/lib/util/parseBoxShadowValue.js +77 -0
  61. package/lib/util/parseDependency.js +49 -60
  62. package/lib/util/parseObjectStyles.js +23 -20
  63. package/lib/util/pluginUtils.js +153 -285
  64. package/lib/util/prefixSelector.js +14 -16
  65. package/lib/util/resolveConfig.js +194 -249
  66. package/lib/util/resolveConfigPath.js +38 -45
  67. package/lib/util/responsive.js +12 -11
  68. package/lib/util/tap.js +4 -6
  69. package/lib/util/toColorValue.js +4 -5
  70. package/lib/util/toPath.js +4 -6
  71. package/lib/util/transformThemeValue.js +57 -26
  72. package/lib/util/withAlphaVariable.js +56 -54
  73. package/package.json +27 -37
  74. package/peers/index.js +73099 -84294
  75. package/plugin.js +1 -3
  76. package/resolveConfig.js +1 -7
  77. package/scripts/create-plugin-list.js +2 -2
  78. package/src/cli.js +27 -18
  79. package/src/corePluginList.js +1 -1
  80. package/src/corePlugins.js +2124 -1968
  81. package/src/css/preflight.css +14 -1
  82. package/src/featureFlags.js +12 -6
  83. package/src/lib/collapseDuplicateDeclarations.js +28 -0
  84. package/src/lib/detectNesting.js +39 -0
  85. package/src/lib/evaluateTailwindFunctions.js +5 -2
  86. package/src/lib/expandTailwindAtRules.js +24 -32
  87. package/src/lib/generateRules.js +230 -20
  88. package/src/lib/normalizeTailwindDirectives.js +3 -2
  89. package/src/lib/resolveDefaultsAtRules.js +46 -30
  90. package/src/lib/setupContextUtils.js +275 -113
  91. package/src/lib/setupTrackingContext.js +9 -8
  92. package/src/lib/setupWatchingContext.js +12 -7
  93. package/src/lib/sharedState.js +1 -4
  94. package/src/lib/substituteScreenAtRules.js +6 -3
  95. package/src/processTailwindFeatures.js +8 -1
  96. package/src/public/colors.js +300 -0
  97. package/src/public/create-plugin.js +2 -0
  98. package/src/public/default-config.js +4 -0
  99. package/src/public/default-theme.js +4 -0
  100. package/src/public/resolve-config.js +7 -0
  101. package/src/util/buildMediaQuery.js +14 -18
  102. package/src/util/createUtilityPlugin.js +2 -11
  103. package/src/util/dataTypes.js +246 -0
  104. package/src/util/formatVariantSelector.js +196 -0
  105. package/src/util/isValidArbitraryValue.js +61 -0
  106. package/src/util/log.js +18 -21
  107. package/src/util/nameClass.js +10 -6
  108. package/src/util/negateValue.js +4 -2
  109. package/src/util/normalizeConfig.js +249 -0
  110. package/src/util/normalizeScreens.js +42 -0
  111. package/src/util/parseAnimationValue.js +7 -1
  112. package/src/util/parseBoxShadowValue.js +71 -0
  113. package/src/util/parseDependency.js +4 -0
  114. package/src/util/pluginUtils.js +101 -204
  115. package/src/util/prefixSelector.js +1 -4
  116. package/src/util/resolveConfig.js +12 -65
  117. package/src/util/transformThemeValue.js +22 -7
  118. package/src/util/withAlphaVariable.js +13 -8
  119. package/stubs/defaultConfig.stub.js +163 -97
  120. package/stubs/simpleConfig.stub.js +0 -1
@@ -1,57 +1,51 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
6
5
  exports.default = processTailwindFeatures;
7
-
8
6
  var _normalizeTailwindDirectives = _interopRequireDefault(require("./lib/normalizeTailwindDirectives"));
9
-
10
7
  var _expandTailwindAtRules = _interopRequireDefault(require("./lib/expandTailwindAtRules"));
11
-
12
8
  var _expandApplyAtRules = _interopRequireDefault(require("./lib/expandApplyAtRules"));
13
-
14
9
  var _evaluateTailwindFunctions = _interopRequireDefault(require("./lib/evaluateTailwindFunctions"));
15
-
16
10
  var _substituteScreenAtRules = _interopRequireDefault(require("./lib/substituteScreenAtRules"));
17
-
18
11
  var _resolveDefaultsAtRules = _interopRequireDefault(require("./lib/resolveDefaultsAtRules"));
19
-
20
12
  var _collapseAdjacentRules = _interopRequireDefault(require("./lib/collapseAdjacentRules"));
21
-
13
+ var _collapseDuplicateDeclarations = _interopRequireDefault(require("./lib/collapseDuplicateDeclarations"));
14
+ var _detectNesting = _interopRequireDefault(require("./lib/detectNesting"));
22
15
  var _setupContextUtils = require("./lib/setupContextUtils");
23
-
24
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
-
16
+ var _featureFlags = require("./featureFlags");
17
+ function _interopRequireDefault(obj) {
18
+ return obj && obj.__esModule ? obj : {
19
+ default: obj
20
+ };
21
+ }
26
22
  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
- }
23
+ return function(root, result) {
24
+ let tailwindDirectives = (0, _normalizeTailwindDirectives).default(root);
25
+ let context = setupContext({
26
+ tailwindDirectives,
27
+ registerDependency (dependency) {
28
+ result.messages.push({
29
+ plugin: 'tailwindcss',
30
+ parent: result.opts.from,
31
+ ...dependency
32
+ });
33
+ },
34
+ createContext (tailwindConfig, changedContent) {
35
+ return (0, _setupContextUtils).createContext(tailwindConfig, changedContent, root);
36
+ }
37
+ })(root, result);
38
+ if (context.tailwindConfig.separator === '-') {
39
+ 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.");
40
+ }
41
+ (0, _featureFlags).issueFlagNotices(context.tailwindConfig);
42
+ (0, _detectNesting).default(context)(root, result);
43
+ (0, _expandTailwindAtRules).default(context)(root, result);
44
+ (0, _expandApplyAtRules).default(context)(root, result);
45
+ (0, _evaluateTailwindFunctions).default(context)(root, result);
46
+ (0, _substituteScreenAtRules).default(context)(root, result);
47
+ (0, _resolveDefaultsAtRules).default(context)(root, result);
48
+ (0, _collapseAdjacentRules).default(context)(root, result);
49
+ (0, _collapseDuplicateDeclarations).default(context)(root, result);
50
+ };
51
+ }
@@ -0,0 +1,329 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ exports.default = void 0;
6
+ var _log = _interopRequireDefault(require("../util/log"));
7
+ function _interopRequireDefault(obj) {
8
+ return obj && obj.__esModule ? obj : {
9
+ default: obj
10
+ };
11
+ }
12
+ function warn({ version , from , to }) {
13
+ _log.default.warn(`${from}-color-renamed`, [
14
+ `As of Tailwind CSS ${version}, \`${from}\` has been renamed to \`${to}\`.`,
15
+ 'Update your configuration file to silence this warning.',
16
+ ]);
17
+ }
18
+ var _default = {
19
+ inherit: 'inherit',
20
+ current: 'currentColor',
21
+ transparent: 'transparent',
22
+ black: '#000',
23
+ white: '#fff',
24
+ slate: {
25
+ 50: '#f8fafc',
26
+ 100: '#f1f5f9',
27
+ 200: '#e2e8f0',
28
+ 300: '#cbd5e1',
29
+ 400: '#94a3b8',
30
+ 500: '#64748b',
31
+ 600: '#475569',
32
+ 700: '#334155',
33
+ 800: '#1e293b',
34
+ 900: '#0f172a'
35
+ },
36
+ gray: {
37
+ 50: '#f9fafb',
38
+ 100: '#f3f4f6',
39
+ 200: '#e5e7eb',
40
+ 300: '#d1d5db',
41
+ 400: '#9ca3af',
42
+ 500: '#6b7280',
43
+ 600: '#4b5563',
44
+ 700: '#374151',
45
+ 800: '#1f2937',
46
+ 900: '#111827'
47
+ },
48
+ zinc: {
49
+ 50: '#fafafa',
50
+ 100: '#f4f4f5',
51
+ 200: '#e4e4e7',
52
+ 300: '#d4d4d8',
53
+ 400: '#a1a1aa',
54
+ 500: '#71717a',
55
+ 600: '#52525b',
56
+ 700: '#3f3f46',
57
+ 800: '#27272a',
58
+ 900: '#18181b'
59
+ },
60
+ neutral: {
61
+ 50: '#fafafa',
62
+ 100: '#f5f5f5',
63
+ 200: '#e5e5e5',
64
+ 300: '#d4d4d4',
65
+ 400: '#a3a3a3',
66
+ 500: '#737373',
67
+ 600: '#525252',
68
+ 700: '#404040',
69
+ 800: '#262626',
70
+ 900: '#171717'
71
+ },
72
+ stone: {
73
+ 50: '#fafaf9',
74
+ 100: '#f5f5f4',
75
+ 200: '#e7e5e4',
76
+ 300: '#d6d3d1',
77
+ 400: '#a8a29e',
78
+ 500: '#78716c',
79
+ 600: '#57534e',
80
+ 700: '#44403c',
81
+ 800: '#292524',
82
+ 900: '#1c1917'
83
+ },
84
+ red: {
85
+ 50: '#fef2f2',
86
+ 100: '#fee2e2',
87
+ 200: '#fecaca',
88
+ 300: '#fca5a5',
89
+ 400: '#f87171',
90
+ 500: '#ef4444',
91
+ 600: '#dc2626',
92
+ 700: '#b91c1c',
93
+ 800: '#991b1b',
94
+ 900: '#7f1d1d'
95
+ },
96
+ orange: {
97
+ 50: '#fff7ed',
98
+ 100: '#ffedd5',
99
+ 200: '#fed7aa',
100
+ 300: '#fdba74',
101
+ 400: '#fb923c',
102
+ 500: '#f97316',
103
+ 600: '#ea580c',
104
+ 700: '#c2410c',
105
+ 800: '#9a3412',
106
+ 900: '#7c2d12'
107
+ },
108
+ amber: {
109
+ 50: '#fffbeb',
110
+ 100: '#fef3c7',
111
+ 200: '#fde68a',
112
+ 300: '#fcd34d',
113
+ 400: '#fbbf24',
114
+ 500: '#f59e0b',
115
+ 600: '#d97706',
116
+ 700: '#b45309',
117
+ 800: '#92400e',
118
+ 900: '#78350f'
119
+ },
120
+ yellow: {
121
+ 50: '#fefce8',
122
+ 100: '#fef9c3',
123
+ 200: '#fef08a',
124
+ 300: '#fde047',
125
+ 400: '#facc15',
126
+ 500: '#eab308',
127
+ 600: '#ca8a04',
128
+ 700: '#a16207',
129
+ 800: '#854d0e',
130
+ 900: '#713f12'
131
+ },
132
+ lime: {
133
+ 50: '#f7fee7',
134
+ 100: '#ecfccb',
135
+ 200: '#d9f99d',
136
+ 300: '#bef264',
137
+ 400: '#a3e635',
138
+ 500: '#84cc16',
139
+ 600: '#65a30d',
140
+ 700: '#4d7c0f',
141
+ 800: '#3f6212',
142
+ 900: '#365314'
143
+ },
144
+ green: {
145
+ 50: '#f0fdf4',
146
+ 100: '#dcfce7',
147
+ 200: '#bbf7d0',
148
+ 300: '#86efac',
149
+ 400: '#4ade80',
150
+ 500: '#22c55e',
151
+ 600: '#16a34a',
152
+ 700: '#15803d',
153
+ 800: '#166534',
154
+ 900: '#14532d'
155
+ },
156
+ emerald: {
157
+ 50: '#ecfdf5',
158
+ 100: '#d1fae5',
159
+ 200: '#a7f3d0',
160
+ 300: '#6ee7b7',
161
+ 400: '#34d399',
162
+ 500: '#10b981',
163
+ 600: '#059669',
164
+ 700: '#047857',
165
+ 800: '#065f46',
166
+ 900: '#064e3b'
167
+ },
168
+ teal: {
169
+ 50: '#f0fdfa',
170
+ 100: '#ccfbf1',
171
+ 200: '#99f6e4',
172
+ 300: '#5eead4',
173
+ 400: '#2dd4bf',
174
+ 500: '#14b8a6',
175
+ 600: '#0d9488',
176
+ 700: '#0f766e',
177
+ 800: '#115e59',
178
+ 900: '#134e4a'
179
+ },
180
+ cyan: {
181
+ 50: '#ecfeff',
182
+ 100: '#cffafe',
183
+ 200: '#a5f3fc',
184
+ 300: '#67e8f9',
185
+ 400: '#22d3ee',
186
+ 500: '#06b6d4',
187
+ 600: '#0891b2',
188
+ 700: '#0e7490',
189
+ 800: '#155e75',
190
+ 900: '#164e63'
191
+ },
192
+ sky: {
193
+ 50: '#f0f9ff',
194
+ 100: '#e0f2fe',
195
+ 200: '#bae6fd',
196
+ 300: '#7dd3fc',
197
+ 400: '#38bdf8',
198
+ 500: '#0ea5e9',
199
+ 600: '#0284c7',
200
+ 700: '#0369a1',
201
+ 800: '#075985',
202
+ 900: '#0c4a6e'
203
+ },
204
+ blue: {
205
+ 50: '#eff6ff',
206
+ 100: '#dbeafe',
207
+ 200: '#bfdbfe',
208
+ 300: '#93c5fd',
209
+ 400: '#60a5fa',
210
+ 500: '#3b82f6',
211
+ 600: '#2563eb',
212
+ 700: '#1d4ed8',
213
+ 800: '#1e40af',
214
+ 900: '#1e3a8a'
215
+ },
216
+ indigo: {
217
+ 50: '#eef2ff',
218
+ 100: '#e0e7ff',
219
+ 200: '#c7d2fe',
220
+ 300: '#a5b4fc',
221
+ 400: '#818cf8',
222
+ 500: '#6366f1',
223
+ 600: '#4f46e5',
224
+ 700: '#4338ca',
225
+ 800: '#3730a3',
226
+ 900: '#312e81'
227
+ },
228
+ violet: {
229
+ 50: '#f5f3ff',
230
+ 100: '#ede9fe',
231
+ 200: '#ddd6fe',
232
+ 300: '#c4b5fd',
233
+ 400: '#a78bfa',
234
+ 500: '#8b5cf6',
235
+ 600: '#7c3aed',
236
+ 700: '#6d28d9',
237
+ 800: '#5b21b6',
238
+ 900: '#4c1d95'
239
+ },
240
+ purple: {
241
+ 50: '#faf5ff',
242
+ 100: '#f3e8ff',
243
+ 200: '#e9d5ff',
244
+ 300: '#d8b4fe',
245
+ 400: '#c084fc',
246
+ 500: '#a855f7',
247
+ 600: '#9333ea',
248
+ 700: '#7e22ce',
249
+ 800: '#6b21a8',
250
+ 900: '#581c87'
251
+ },
252
+ fuchsia: {
253
+ 50: '#fdf4ff',
254
+ 100: '#fae8ff',
255
+ 200: '#f5d0fe',
256
+ 300: '#f0abfc',
257
+ 400: '#e879f9',
258
+ 500: '#d946ef',
259
+ 600: '#c026d3',
260
+ 700: '#a21caf',
261
+ 800: '#86198f',
262
+ 900: '#701a75'
263
+ },
264
+ pink: {
265
+ 50: '#fdf2f8',
266
+ 100: '#fce7f3',
267
+ 200: '#fbcfe8',
268
+ 300: '#f9a8d4',
269
+ 400: '#f472b6',
270
+ 500: '#ec4899',
271
+ 600: '#db2777',
272
+ 700: '#be185d',
273
+ 800: '#9d174d',
274
+ 900: '#831843'
275
+ },
276
+ rose: {
277
+ 50: '#fff1f2',
278
+ 100: '#ffe4e6',
279
+ 200: '#fecdd3',
280
+ 300: '#fda4af',
281
+ 400: '#fb7185',
282
+ 500: '#f43f5e',
283
+ 600: '#e11d48',
284
+ 700: '#be123c',
285
+ 800: '#9f1239',
286
+ 900: '#881337'
287
+ },
288
+ get lightBlue () {
289
+ warn({
290
+ version: 'v2.2',
291
+ from: 'lightBlue',
292
+ to: 'sky'
293
+ });
294
+ return this.sky;
295
+ },
296
+ get warmGray () {
297
+ warn({
298
+ version: 'v3.0',
299
+ from: 'warmGray',
300
+ to: 'stone'
301
+ });
302
+ return this.stone;
303
+ },
304
+ get trueGray () {
305
+ warn({
306
+ version: 'v3.0',
307
+ from: 'trueGray',
308
+ to: 'neutral'
309
+ });
310
+ return this.neutral;
311
+ },
312
+ get coolGray () {
313
+ warn({
314
+ version: 'v3.0',
315
+ from: 'coolGray',
316
+ to: 'gray'
317
+ });
318
+ return this.gray;
319
+ },
320
+ get blueGray () {
321
+ warn({
322
+ version: 'v3.0',
323
+ from: 'blueGray',
324
+ to: 'slate'
325
+ });
326
+ return this.slate;
327
+ }
328
+ };
329
+ exports.default = _default;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ exports.default = void 0;
6
+ var _createPlugin = _interopRequireDefault(require("../util/createPlugin"));
7
+ function _interopRequireDefault(obj) {
8
+ return obj && obj.__esModule ? obj : {
9
+ default: obj
10
+ };
11
+ }
12
+ var _default = _createPlugin.default;
13
+ exports.default = _default;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ exports.default = void 0;
6
+ var _cloneDeep = require("../util/cloneDeep");
7
+ var _defaultConfigStub = _interopRequireDefault(require("../../stubs/defaultConfig.stub"));
8
+ function _interopRequireDefault(obj) {
9
+ return obj && obj.__esModule ? obj : {
10
+ default: obj
11
+ };
12
+ }
13
+ var _default = (0, _cloneDeep).cloneDeep(_defaultConfigStub.default);
14
+ exports.default = _default;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ exports.default = void 0;
6
+ var _cloneDeep = require("../util/cloneDeep");
7
+ var _defaultConfigStub = _interopRequireDefault(require("../../stubs/defaultConfig.stub"));
8
+ function _interopRequireDefault(obj) {
9
+ return obj && obj.__esModule ? obj : {
10
+ default: obj
11
+ };
12
+ }
13
+ var _default = (0, _cloneDeep).cloneDeep(_defaultConfigStub.default.theme);
14
+ exports.default = _default;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ exports.default = resolveConfig;
6
+ var _resolveConfig = _interopRequireDefault(require("../util/resolveConfig"));
7
+ var _getAllConfigs = _interopRequireDefault(require("../util/getAllConfigs"));
8
+ function _interopRequireDefault(obj) {
9
+ return obj && obj.__esModule ? obj : {
10
+ default: obj
11
+ };
12
+ }
13
+ function resolveConfig(...configs) {
14
+ let [, ...defaultConfigs] = (0, _getAllConfigs).default(configs[0]);
15
+ return (0, _resolveConfig).default([
16
+ ...configs,
17
+ ...defaultConfigs
18
+ ]);
19
+ }
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
6
5
  exports.default = bigSign;
7
-
8
6
  function bigSign(bigIntValue) {
9
- return (bigIntValue > 0n) - (bigIntValue < 0n);
10
- }
7
+ return (bigIntValue > 0n) - (bigIntValue < 0n);
8
+ }
@@ -1,36 +1,20 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
6
5
  exports.default = buildMediaQuery;
7
-
8
6
  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
- }
7
+ screens = Array.isArray(screens) ? screens : [
8
+ screens
9
+ ];
10
+ return screens.map((screen1)=>screen1.values.map((screen)=>{
11
+ if (screen.raw !== undefined) {
12
+ return screen.raw;
13
+ }
14
+ return [
15
+ screen.min && `(min-width: ${screen.min})`,
16
+ screen.max && `(max-width: ${screen.max})`,
17
+ ].filter(Boolean).join(' and ');
18
+ })
19
+ ).join(', ');
20
+ }
@@ -1,18 +1,19 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
6
5
  exports.cloneDeep = cloneDeep;
7
-
8
6
  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
- }
7
+ if (Array.isArray(value)) {
8
+ return value.map((child)=>cloneDeep(child)
9
+ );
10
+ }
11
+ if (typeof value === 'object' && value !== null) {
12
+ return Object.fromEntries(Object.entries(value).map(([k, v])=>[
13
+ k,
14
+ cloneDeep(v)
15
+ ]
16
+ ));
17
+ }
18
+ return value;
19
+ }
@@ -1,18 +1,14 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
6
5
  exports.default = cloneNodes;
7
-
8
6
  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
- }
7
+ return nodes.map((node)=>{
8
+ let cloned = node.clone();
9
+ if (source !== undefined) {
10
+ cloned.source = source;
11
+ }
12
+ return cloned;
13
+ });
14
+ }