@removify/tailwind-preset 0.1.4 → 0.1.6

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.
@@ -4,7 +4,7 @@ var mainColors = {
4
4
  current: "currentColor",
5
5
  transparent: "transparent",
6
6
  danger: "#EA3529",
7
- warning: "#FFA037",
7
+ warning: "#F97316",
8
8
  success: "#15A46E",
9
9
  info: "#3EC2C9",
10
10
  special: "#686DF4",
@@ -252,12 +252,46 @@ var customFontFamily = {
252
252
  sans: ["DM Sans", ...fontFamilySans]
253
253
  };
254
254
 
255
+ // src/theme/animation.ts
256
+ var radixAnimation = {
257
+ "radix-accordion-down": "radix-accordion-down 0.2s ease-out",
258
+ "radix-accordion-up": "radix-accordion-up 0.2s ease-out",
259
+ "radix-collapsible-down": "radix-collapsible-down 0.2s ease-in-out",
260
+ "radix-collapsible-up": "radix-collapsible-up 0.2s ease-in-out"
261
+ };
262
+ var radixKeyframes = {
263
+ "radix-accordion-down": {
264
+ from: { height: "0" },
265
+ to: { height: "var(--radix-accordion-content-height)" }
266
+ },
267
+ "radix-accordion-up": {
268
+ from: { height: "var(--radix-accordion-content-height)" },
269
+ to: { height: "0" }
270
+ },
271
+ "radix-collapsible-down": {
272
+ from: { height: "0" },
273
+ to: { height: "var(--radix-collapsible-content-height)" }
274
+ },
275
+ "radix-collapsible-up": {
276
+ from: { height: "var(--radix-collapsible-content-height)" },
277
+ to: { height: "0" }
278
+ }
279
+ };
280
+ var animation = {
281
+ ...radixAnimation
282
+ };
283
+ var keyframes = {
284
+ ...radixKeyframes
285
+ };
286
+
255
287
  // src/theme/index.ts
256
288
  var theme = {
257
289
  colors,
258
290
  boxShadow: shadows,
259
291
  fontSize: fontSizes,
260
- fontFamily: customFontFamily
292
+ fontFamily: customFontFamily,
293
+ animation,
294
+ keyframes
261
295
  };
262
296
  var unocssTheme = {
263
297
  colors,
@@ -270,6 +304,8 @@ export {
270
304
  fontSizes,
271
305
  shadows,
272
306
  customFontFamily,
307
+ animation,
308
+ keyframes,
273
309
  theme,
274
310
  unocssTheme
275
311
  };
@@ -23,9 +23,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
23
  ));
24
24
 
25
25
  // src/cli/index.ts
26
+ var import_node_process = __toESM(require("process"), 1);
26
27
  var import_helpers = require("yargs/helpers");
27
28
  var import_yargs = __toESM(require("yargs"), 1);
28
- var import_node_process = __toESM(require("process"), 1);
29
29
 
30
30
  // src/theme/colors.ts
31
31
  var mainColors = {
@@ -33,7 +33,7 @@ var mainColors = {
33
33
  current: "currentColor",
34
34
  transparent: "transparent",
35
35
  danger: "#EA3529",
36
- warning: "#FFA037",
36
+ warning: "#F97316",
37
37
  success: "#15A46E",
38
38
  info: "#3EC2C9",
39
39
  special: "#686DF4",
@@ -271,6 +271,38 @@ var customFontFamily = {
271
271
  sans: ["DM Sans", ...fontFamilySans]
272
272
  };
273
273
 
274
+ // src/theme/animation.ts
275
+ var radixAnimation = {
276
+ "radix-accordion-down": "radix-accordion-down 0.2s ease-out",
277
+ "radix-accordion-up": "radix-accordion-up 0.2s ease-out",
278
+ "radix-collapsible-down": "radix-collapsible-down 0.2s ease-in-out",
279
+ "radix-collapsible-up": "radix-collapsible-up 0.2s ease-in-out"
280
+ };
281
+ var radixKeyframes = {
282
+ "radix-accordion-down": {
283
+ from: { height: "0" },
284
+ to: { height: "var(--radix-accordion-content-height)" }
285
+ },
286
+ "radix-accordion-up": {
287
+ from: { height: "var(--radix-accordion-content-height)" },
288
+ to: { height: "0" }
289
+ },
290
+ "radix-collapsible-down": {
291
+ from: { height: "0" },
292
+ to: { height: "var(--radix-collapsible-content-height)" }
293
+ },
294
+ "radix-collapsible-up": {
295
+ from: { height: "var(--radix-collapsible-content-height)" },
296
+ to: { height: "0" }
297
+ }
298
+ };
299
+ var animation = {
300
+ ...radixAnimation
301
+ };
302
+ var keyframes = {
303
+ ...radixKeyframes
304
+ };
305
+
274
306
  // src/cli/src/theme/color.ts
275
307
  var css = String.raw;
276
308
  function generateColorVariables(filetype) {
package/dist/cli/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  colors
3
- } from "../chunk-IUSDLEUF.js";
3
+ } from "../chunk-3TXOIS2S.js";
4
4
 
5
5
  // src/cli/index.ts
6
+ import process from "process";
6
7
  import { hideBin } from "yargs/helpers";
7
8
  import yargs from "yargs";
8
- import process from "process";
9
9
 
10
10
  // src/cli/src/theme/color.ts
11
11
  var css = String.raw;
package/dist/index.cjs CHANGED
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
8
  var __export = (target, all) => {
7
9
  for (var name in all)
@@ -15,17 +17,27 @@ var __copyProps = (to, from, except, desc) => {
15
17
  }
16
18
  return to;
17
19
  };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
18
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
29
 
20
30
  // src/index.ts
21
31
  var src_exports = {};
22
32
  __export(src_exports, {
33
+ animation: () => animation,
23
34
  colors: () => colors,
24
35
  colorsNames: () => colorsNames,
25
36
  config: () => config,
26
37
  default: () => src_default,
27
38
  fontFamily: () => customFontFamily,
28
39
  fontSizes: () => fontSizes,
40
+ keyframes: () => keyframes,
29
41
  shadows: () => shadows,
30
42
  theme: () => theme,
31
43
  unocssTheme: () => unocssTheme
@@ -38,7 +50,7 @@ var mainColors = {
38
50
  current: "currentColor",
39
51
  transparent: "transparent",
40
52
  danger: "#EA3529",
41
- warning: "#FFA037",
53
+ warning: "#F97316",
42
54
  success: "#15A46E",
43
55
  info: "#3EC2C9",
44
56
  special: "#686DF4",
@@ -286,12 +298,46 @@ var customFontFamily = {
286
298
  sans: ["DM Sans", ...fontFamilySans]
287
299
  };
288
300
 
301
+ // src/theme/animation.ts
302
+ var radixAnimation = {
303
+ "radix-accordion-down": "radix-accordion-down 0.2s ease-out",
304
+ "radix-accordion-up": "radix-accordion-up 0.2s ease-out",
305
+ "radix-collapsible-down": "radix-collapsible-down 0.2s ease-in-out",
306
+ "radix-collapsible-up": "radix-collapsible-up 0.2s ease-in-out"
307
+ };
308
+ var radixKeyframes = {
309
+ "radix-accordion-down": {
310
+ from: { height: "0" },
311
+ to: { height: "var(--radix-accordion-content-height)" }
312
+ },
313
+ "radix-accordion-up": {
314
+ from: { height: "var(--radix-accordion-content-height)" },
315
+ to: { height: "0" }
316
+ },
317
+ "radix-collapsible-down": {
318
+ from: { height: "0" },
319
+ to: { height: "var(--radix-collapsible-content-height)" }
320
+ },
321
+ "radix-collapsible-up": {
322
+ from: { height: "var(--radix-collapsible-content-height)" },
323
+ to: { height: "0" }
324
+ }
325
+ };
326
+ var animation = {
327
+ ...radixAnimation
328
+ };
329
+ var keyframes = {
330
+ ...radixKeyframes
331
+ };
332
+
289
333
  // src/theme/index.ts
290
334
  var theme = {
291
335
  colors,
292
336
  boxShadow: shadows,
293
337
  fontSize: fontSizes,
294
- fontFamily: customFontFamily
338
+ fontFamily: customFontFamily,
339
+ animation,
340
+ keyframes
295
341
  };
296
342
  var unocssTheme = {
297
343
  colors,
@@ -299,6 +345,10 @@ var unocssTheme = {
299
345
  fontSize: unocssFontSizes
300
346
  };
301
347
 
348
+ // src/plugins/index.ts
349
+ var import_tailwindcss_animate = __toESM(require("tailwindcss-animate"), 1);
350
+ var plugins = [import_tailwindcss_animate.default];
351
+
302
352
  // src/constant/index.ts
303
353
  var colorsNames = [
304
354
  "primary",
@@ -319,23 +369,27 @@ var colorsNames = [
319
369
  function config(extend = true) {
320
370
  if (extend === false) {
321
371
  return {
322
- theme
372
+ theme,
373
+ plugins
323
374
  };
324
375
  }
325
376
  return {
326
377
  theme: {
327
378
  extend: theme
328
- }
379
+ },
380
+ plugins
329
381
  };
330
382
  }
331
383
  var src_default = config();
332
384
  // Annotate the CommonJS export names for ESM import in node:
333
385
  0 && (module.exports = {
386
+ animation,
334
387
  colors,
335
388
  colorsNames,
336
389
  config,
337
390
  fontFamily,
338
391
  fontSizes,
392
+ keyframes,
339
393
  shadows,
340
394
  theme,
341
395
  unocssTheme
package/dist/index.d.cts CHANGED
@@ -283,6 +283,47 @@ declare const customFontFamily: {
283
283
  sans: string[];
284
284
  };
285
285
 
286
+ declare const animation: {
287
+ 'radix-accordion-down': string;
288
+ 'radix-accordion-up': string;
289
+ 'radix-collapsible-down': string;
290
+ 'radix-collapsible-up': string;
291
+ };
292
+ declare const keyframes: {
293
+ 'radix-accordion-down': {
294
+ from: {
295
+ height: string;
296
+ };
297
+ to: {
298
+ height: string;
299
+ };
300
+ };
301
+ 'radix-accordion-up': {
302
+ from: {
303
+ height: string;
304
+ };
305
+ to: {
306
+ height: string;
307
+ };
308
+ };
309
+ 'radix-collapsible-down': {
310
+ from: {
311
+ height: string;
312
+ };
313
+ to: {
314
+ height: string;
315
+ };
316
+ };
317
+ 'radix-collapsible-up': {
318
+ from: {
319
+ height: string;
320
+ };
321
+ to: {
322
+ height: string;
323
+ };
324
+ };
325
+ };
326
+
286
327
  declare const theme: Config['theme'];
287
328
  declare const unocssTheme: {
288
329
  colors: {
@@ -498,4 +539,4 @@ type Shadows = {
498
539
  declare function config(extend?: boolean): Partial<Config>;
499
540
  declare const _default: Partial<tailwindcss_types_config.Config>;
500
541
 
501
- export { type ColorString, type Colors, type ColorsNames, type FontSizes, type Shadows, type UnocssFontSizes, colors, colorsNames, config, _default as default, customFontFamily as fontFamily, fontSizes, isDetailFont, shadows, theme, unocssTheme };
542
+ export { type ColorString, type Colors, type ColorsNames, type FontSizes, type Shadows, type UnocssFontSizes, animation, colors, colorsNames, config, _default as default, customFontFamily as fontFamily, fontSizes, isDetailFont, keyframes, shadows, theme, unocssTheme };
package/dist/index.d.ts CHANGED
@@ -283,6 +283,47 @@ declare const customFontFamily: {
283
283
  sans: string[];
284
284
  };
285
285
 
286
+ declare const animation: {
287
+ 'radix-accordion-down': string;
288
+ 'radix-accordion-up': string;
289
+ 'radix-collapsible-down': string;
290
+ 'radix-collapsible-up': string;
291
+ };
292
+ declare const keyframes: {
293
+ 'radix-accordion-down': {
294
+ from: {
295
+ height: string;
296
+ };
297
+ to: {
298
+ height: string;
299
+ };
300
+ };
301
+ 'radix-accordion-up': {
302
+ from: {
303
+ height: string;
304
+ };
305
+ to: {
306
+ height: string;
307
+ };
308
+ };
309
+ 'radix-collapsible-down': {
310
+ from: {
311
+ height: string;
312
+ };
313
+ to: {
314
+ height: string;
315
+ };
316
+ };
317
+ 'radix-collapsible-up': {
318
+ from: {
319
+ height: string;
320
+ };
321
+ to: {
322
+ height: string;
323
+ };
324
+ };
325
+ };
326
+
286
327
  declare const theme: Config['theme'];
287
328
  declare const unocssTheme: {
288
329
  colors: {
@@ -498,4 +539,4 @@ type Shadows = {
498
539
  declare function config(extend?: boolean): Partial<Config>;
499
540
  declare const _default: Partial<tailwindcss_types_config.Config>;
500
541
 
501
- export { type ColorString, type Colors, type ColorsNames, type FontSizes, type Shadows, type UnocssFontSizes, colors, colorsNames, config, _default as default, customFontFamily as fontFamily, fontSizes, isDetailFont, shadows, theme, unocssTheme };
542
+ export { type ColorString, type Colors, type ColorsNames, type FontSizes, type Shadows, type UnocssFontSizes, animation, colors, colorsNames, config, _default as default, customFontFamily as fontFamily, fontSizes, isDetailFont, keyframes, shadows, theme, unocssTheme };
package/dist/index.js CHANGED
@@ -1,11 +1,17 @@
1
1
  import {
2
+ animation,
2
3
  colors,
3
4
  customFontFamily,
4
5
  fontSizes,
6
+ keyframes,
5
7
  shadows,
6
8
  theme,
7
9
  unocssTheme
8
- } from "./chunk-IUSDLEUF.js";
10
+ } from "./chunk-3TXOIS2S.js";
11
+
12
+ // src/plugins/index.ts
13
+ import animation2 from "tailwindcss-animate";
14
+ var plugins = [animation2];
9
15
 
10
16
  // src/constant/index.ts
11
17
  var colorsNames = [
@@ -27,23 +33,27 @@ var colorsNames = [
27
33
  function config(extend = true) {
28
34
  if (extend === false) {
29
35
  return {
30
- theme
36
+ theme,
37
+ plugins
31
38
  };
32
39
  }
33
40
  return {
34
41
  theme: {
35
42
  extend: theme
36
- }
43
+ },
44
+ plugins
37
45
  };
38
46
  }
39
47
  var src_default = config();
40
48
  export {
49
+ animation,
41
50
  colors,
42
51
  colorsNames,
43
52
  config,
44
53
  src_default as default,
45
54
  customFontFamily as fontFamily,
46
55
  fontSizes,
56
+ keyframes,
47
57
  shadows,
48
58
  theme,
49
59
  unocssTheme
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@removify/tailwind-preset",
3
3
  "type": "module",
4
- "version": "0.1.4",
4
+ "version": "0.1.6",
5
5
  "description": "Tailwind CSS preset for Removify",
6
6
  "keywords": [
7
7
  "tailwind"
@@ -26,27 +26,28 @@
26
26
  "tailwindcss": "^3.0.0"
27
27
  },
28
28
  "dependencies": {
29
- "string-ts": "^2.1.1",
29
+ "string-ts": "^2.2.0",
30
+ "tailwindcss-animate": "^1.0.7",
30
31
  "yargs": "17.7.2"
31
32
  },
32
33
  "devDependencies": {
33
34
  "@commitlint/cli": "^19.3.0",
34
35
  "@commitlint/config-conventional": "^19.2.2",
35
- "@removify/eslint-config": "^1.3.4",
36
- "@types/node": "^20.12.7",
36
+ "@removify/eslint-config": "^1.4.0-beta.3",
37
+ "@types/node": "^20.14.11",
37
38
  "@types/yargs": "^17.0.32",
38
39
  "bumpp": "^9.4.1",
39
- "eslint": "^9.1.1",
40
- "husky": "^9.0.11",
41
- "lint-staged": "^15.2.2",
42
- "rimraf": "^5.0.5",
43
- "tailwind-config-viewer": "^2.0.2",
44
- "tailwindcss": "^3.4.3",
45
- "tsup": "^8.0.2",
46
- "tsx": "^4.7.3",
47
- "typescript": "^5.4.5",
48
- "vitest": "^1.5.2",
49
- "@removify/tailwind-preset": "0.1.4"
40
+ "eslint": "^9.7.0",
41
+ "husky": "^9.1.0",
42
+ "lint-staged": "^15.2.7",
43
+ "rimraf": "^6.0.1",
44
+ "tailwind-config-viewer": "^2.0.4",
45
+ "tailwindcss": "^3.4.6",
46
+ "tsup": "^8.1.2",
47
+ "tsx": "^4.16.2",
48
+ "typescript": "^5.5.3",
49
+ "vitest": "^2.0.3",
50
+ "@removify/tailwind-preset": "0.1.6"
50
51
  },
51
52
  "lint-staged": {
52
53
  "**/*.{js,ts,vue,html}": [