@youthfulhps/prettier-plugin-tailwindcss-normalizer 0.3.4

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 (63) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -0
  3. package/dist/ast-transformer.d.ts +4 -0
  4. package/dist/ast-transformer.js +180 -0
  5. package/dist/index.d.ts +3 -0
  6. package/dist/index.js +75 -0
  7. package/dist/mappings/effects/index.d.ts +2 -0
  8. package/dist/mappings/effects/index.js +7 -0
  9. package/dist/mappings/effects/shadows-opacity.d.ts +2 -0
  10. package/dist/mappings/effects/shadows-opacity.js +33 -0
  11. package/dist/mappings/filters/blur-effects.d.ts +2 -0
  12. package/dist/mappings/filters/blur-effects.js +141 -0
  13. package/dist/mappings/filters/index.d.ts +2 -0
  14. package/dist/mappings/filters/index.js +7 -0
  15. package/dist/mappings/index.d.ts +2 -0
  16. package/dist/mappings/index.js +23 -0
  17. package/dist/mappings/interactivity/index.d.ts +2 -0
  18. package/dist/mappings/interactivity/index.js +7 -0
  19. package/dist/mappings/interactivity/outline-ring-scroll.d.ts +2 -0
  20. package/dist/mappings/interactivity/outline-ring-scroll.js +68 -0
  21. package/dist/mappings/layout/borders-rounded.d.ts +2 -0
  22. package/dist/mappings/layout/borders-rounded.js +153 -0
  23. package/dist/mappings/layout/index.d.ts +2 -0
  24. package/dist/mappings/layout/index.js +9 -0
  25. package/dist/mappings/layout/positioning.d.ts +2 -0
  26. package/dist/mappings/layout/positioning.js +99 -0
  27. package/dist/mappings/sizing/height.d.ts +2 -0
  28. package/dist/mappings/sizing/height.js +173 -0
  29. package/dist/mappings/sizing/index.d.ts +2 -0
  30. package/dist/mappings/sizing/index.js +11 -0
  31. package/dist/mappings/sizing/size.d.ts +2 -0
  32. package/dist/mappings/sizing/size.js +62 -0
  33. package/dist/mappings/sizing/width.d.ts +2 -0
  34. package/dist/mappings/sizing/width.js +166 -0
  35. package/dist/mappings/spacing/gap-space.d.ts +2 -0
  36. package/dist/mappings/spacing/gap-space.js +70 -0
  37. package/dist/mappings/spacing/index.d.ts +2 -0
  38. package/dist/mappings/spacing/index.js +11 -0
  39. package/dist/mappings/spacing/margin.d.ts +2 -0
  40. package/dist/mappings/spacing/margin.js +587 -0
  41. package/dist/mappings/spacing/padding.d.ts +2 -0
  42. package/dist/mappings/spacing/padding.js +305 -0
  43. package/dist/mappings/transforms/index.d.ts +2 -0
  44. package/dist/mappings/transforms/index.js +7 -0
  45. package/dist/mappings/transforms/rotate-scale-translate.d.ts +2 -0
  46. package/dist/mappings/transforms/rotate-scale-translate.js +64 -0
  47. package/dist/mappings/transitions/duration-delay.d.ts +2 -0
  48. package/dist/mappings/transitions/duration-delay.js +36 -0
  49. package/dist/mappings/transitions/index.d.ts +2 -0
  50. package/dist/mappings/transitions/index.js +7 -0
  51. package/dist/mappings/typography/font-size.d.ts +2 -0
  52. package/dist/mappings/typography/font-size.js +40 -0
  53. package/dist/mappings/typography/index.d.ts +2 -0
  54. package/dist/mappings/typography/index.js +7 -0
  55. package/dist/normalizer.d.ts +3 -0
  56. package/dist/normalizer.js +123 -0
  57. package/dist/types/prettier-compat.d.ts +20 -0
  58. package/dist/types/prettier-compat.js +10 -0
  59. package/dist/types.d.ts +93 -0
  60. package/dist/types.js +2 -0
  61. package/dist/utils/version-utils.d.ts +6 -0
  62. package/dist/utils/version-utils.js +89 -0
  63. package/package.json +69 -0
@@ -0,0 +1,166 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.widthMappings = void 0;
4
+ exports.widthMappings = {
5
+ w: {
6
+ "0px": "w-0",
7
+ "1px": "w-px",
8
+ "4px": "w-1",
9
+ "8px": "w-2",
10
+ "12px": "w-3",
11
+ "16px": "w-4",
12
+ "20px": "w-5",
13
+ "24px": "w-6",
14
+ "28px": "w-7",
15
+ "32px": "w-8",
16
+ "36px": "w-9",
17
+ "40px": "w-10",
18
+ "44px": "w-11",
19
+ "48px": "w-12",
20
+ "56px": "w-14",
21
+ "64px": "w-16",
22
+ "80px": "w-20",
23
+ "96px": "w-24",
24
+ "112px": "w-28",
25
+ "128px": "w-32",
26
+ "144px": "w-36",
27
+ "160px": "w-40",
28
+ "176px": "w-44",
29
+ "192px": "w-48",
30
+ "208px": "w-52",
31
+ "224px": "w-56",
32
+ "240px": "w-60",
33
+ "256px": "w-64",
34
+ "288px": "w-72",
35
+ "320px": "w-80",
36
+ "384px": "w-96",
37
+ "448px": "w-md",
38
+ "512px": "w-lg",
39
+ "576px": "w-xl",
40
+ "672px": "w-2xl",
41
+ "768px": "w-3xl",
42
+ "896px": "w-4xl",
43
+ "1024px": "w-5xl",
44
+ "1152px": "w-6xl",
45
+ "1280px": "w-7xl",
46
+ "8.333333%": "w-1/12",
47
+ "16.666667%": "w-1/6",
48
+ "20%": "w-1/5",
49
+ "25%": "w-1/4",
50
+ "33.333333%": "w-1/3",
51
+ "40%": "w-2/5",
52
+ "50%": "w-1/2",
53
+ "60%": "w-3/5",
54
+ "66.666667%": "w-2/3",
55
+ "75%": "w-3/4",
56
+ "80%": "w-4/5",
57
+ "83.333333%": "w-5/6",
58
+ "91.666667%": "w-11/12",
59
+ "100%": "w-full",
60
+ auto: "w-auto",
61
+ "100vw": "w-screen",
62
+ "100dvw": "w-dvw",
63
+ "100lvw": "w-lvw",
64
+ "100svw": "w-svw",
65
+ "100dvh": "w-dvh",
66
+ "100lvh": "w-lvh",
67
+ "100svh": "w-svh",
68
+ "min-content": "w-min",
69
+ "max-content": "w-max",
70
+ "fit-content": "w-fit",
71
+ },
72
+ "min-w": {
73
+ "0px": "min-w-0",
74
+ "1px": "min-w-px",
75
+ "4px": "min-w-1",
76
+ "8px": "min-w-2",
77
+ "12px": "min-w-3",
78
+ "16px": "min-w-4",
79
+ "20px": "min-w-5",
80
+ "24px": "min-w-6",
81
+ "28px": "min-w-7",
82
+ "32px": "min-w-8",
83
+ "36px": "min-w-9",
84
+ "40px": "min-w-10",
85
+ "44px": "min-w-11",
86
+ "48px": "min-w-12",
87
+ "56px": "min-w-14",
88
+ "64px": "min-w-16",
89
+ "80px": "min-w-20",
90
+ "96px": "min-w-24",
91
+ "112px": "min-w-28",
92
+ "128px": "min-w-32",
93
+ "144px": "min-w-36",
94
+ "160px": "min-w-40",
95
+ "176px": "min-w-44",
96
+ "192px": "min-w-48",
97
+ "208px": "min-w-52",
98
+ "224px": "min-w-56",
99
+ "240px": "min-w-60",
100
+ "256px": "min-w-64",
101
+ "288px": "min-w-72",
102
+ "320px": "min-w-80",
103
+ "384px": "min-w-96",
104
+ "448px": "min-w-md",
105
+ "512px": "min-w-lg",
106
+ "576px": "min-w-xl",
107
+ "672px": "min-w-2xl",
108
+ "768px": "min-w-3xl",
109
+ "896px": "min-w-4xl",
110
+ "1024px": "min-w-5xl",
111
+ "1152px": "min-w-6xl",
112
+ "1280px": "min-w-7xl",
113
+ "100%": "min-w-full",
114
+ "min-content": "min-w-min",
115
+ "max-content": "min-w-max",
116
+ "fit-content": "min-w-fit",
117
+ },
118
+ "max-w": {
119
+ "0px": "max-w-0",
120
+ "1px": "max-w-px",
121
+ "4px": "max-w-1",
122
+ "8px": "max-w-2",
123
+ "12px": "max-w-3",
124
+ "16px": "max-w-4",
125
+ "20px": "max-w-5",
126
+ "24px": "max-w-6",
127
+ "28px": "max-w-7",
128
+ "32px": "max-w-8",
129
+ "36px": "max-w-9",
130
+ "40px": "max-w-10",
131
+ "44px": "max-w-11",
132
+ "48px": "max-w-12",
133
+ "56px": "max-w-14",
134
+ "64px": "max-w-16",
135
+ "80px": "max-w-20",
136
+ "96px": "max-w-24",
137
+ "112px": "max-w-28",
138
+ "128px": "max-w-32",
139
+ "144px": "max-w-36",
140
+ "160px": "max-w-40",
141
+ "176px": "max-w-44",
142
+ "192px": "max-w-48",
143
+ "208px": "max-w-52",
144
+ "224px": "max-w-56",
145
+ "240px": "max-w-60",
146
+ "256px": "max-w-64",
147
+ "288px": "max-w-72",
148
+ "320px": "max-w-xs",
149
+ "384px": "max-w-sm",
150
+ "448px": "max-w-md",
151
+ "512px": "max-w-lg",
152
+ "576px": "max-w-xl",
153
+ "672px": "max-w-2xl",
154
+ "768px": "max-w-3xl",
155
+ "896px": "max-w-4xl",
156
+ "1024px": "max-w-5xl",
157
+ "1152px": "max-w-6xl",
158
+ "1280px": "max-w-7xl",
159
+ "100%": "max-w-full",
160
+ "100vw": "max-w-screen",
161
+ "min-content": "max-w-min",
162
+ "max-content": "max-w-max",
163
+ "fit-content": "max-w-fit",
164
+ "65ch": "max-w-prose",
165
+ },
166
+ };
@@ -0,0 +1,2 @@
1
+ import { ValueMapping } from "../../types";
2
+ export declare const gapSpaceMappings: Record<string, ValueMapping>;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.gapSpaceMappings = void 0;
4
+ exports.gapSpaceMappings = {
5
+ gap: {
6
+ "0px": "gap-0",
7
+ "1px": "gap-px",
8
+ "4px": "gap-1",
9
+ "8px": "gap-2",
10
+ "12px": "gap-3",
11
+ "16px": "gap-4",
12
+ "20px": "gap-5",
13
+ "24px": "gap-6",
14
+ "32px": "gap-8",
15
+ },
16
+ "gap-x": {
17
+ "0px": "gap-x-0",
18
+ "1px": "gap-x-px",
19
+ "4px": "gap-x-1",
20
+ "8px": "gap-x-2",
21
+ "12px": "gap-x-3",
22
+ "16px": "gap-x-4",
23
+ "20px": "gap-x-5",
24
+ "24px": "gap-x-6",
25
+ "28px": "gap-x-7",
26
+ "32px": "gap-x-8",
27
+ },
28
+ "gap-y": {
29
+ "0px": "gap-y-0",
30
+ "1px": "gap-y-px",
31
+ "4px": "gap-y-1",
32
+ "8px": "gap-y-2",
33
+ "12px": "gap-y-3",
34
+ "16px": "gap-y-4",
35
+ "20px": "gap-y-5",
36
+ "24px": "gap-y-6",
37
+ "28px": "gap-y-7",
38
+ "32px": "gap-y-8",
39
+ },
40
+ "space-x": {
41
+ "0px": "space-x-0",
42
+ "1px": "space-x-px",
43
+ "4px": "space-x-1",
44
+ "8px": "space-x-2",
45
+ "12px": "space-x-3",
46
+ "16px": "space-x-4",
47
+ "20px": "space-x-5",
48
+ "24px": "space-x-6",
49
+ "28px": "space-x-7",
50
+ "32px": "space-x-8",
51
+ },
52
+ "space-y": {
53
+ "0px": "space-y-0",
54
+ "1px": "space-y-px",
55
+ "4px": "space-y-1",
56
+ "8px": "space-y-2",
57
+ "12px": "space-y-3",
58
+ "16px": "space-y-4",
59
+ "20px": "space-y-5",
60
+ "24px": "space-y-6",
61
+ "28px": "space-y-7",
62
+ "32px": "space-y-8",
63
+ },
64
+ "space-x-reverse": {
65
+ "": "space-x-reverse",
66
+ },
67
+ "space-y-reverse": {
68
+ "": "space-y-reverse",
69
+ },
70
+ };
@@ -0,0 +1,2 @@
1
+ import { TailwindMapping } from "../../types";
2
+ export declare const spacingMappings: TailwindMapping;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.spacingMappings = void 0;
4
+ const padding_1 = require("./padding");
5
+ const margin_1 = require("./margin");
6
+ const gap_space_1 = require("./gap-space");
7
+ exports.spacingMappings = {
8
+ ...padding_1.paddingMappings,
9
+ ...margin_1.marginMappings,
10
+ ...gap_space_1.gapSpaceMappings,
11
+ };
@@ -0,0 +1,2 @@
1
+ import { ValueMapping } from "../../types";
2
+ export declare const marginMappings: Record<string, ValueMapping>;