@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,153 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bordersRoundedMappings = void 0;
4
+ exports.bordersRoundedMappings = {
5
+ border: {
6
+ "0px": "border-0",
7
+ "1px": "border",
8
+ "2px": "border-2",
9
+ "4px": "border-4",
10
+ "8px": "border-8",
11
+ },
12
+ "border-x": {
13
+ "0px": "border-x-0",
14
+ "1px": "border-x",
15
+ "2px": "border-x-2",
16
+ "4px": "border-x-4",
17
+ "8px": "border-x-8",
18
+ },
19
+ "border-y": {
20
+ "0px": "border-y-0",
21
+ "1px": "border-y",
22
+ "2px": "border-y-2",
23
+ "4px": "border-y-4",
24
+ "8px": "border-y-8",
25
+ },
26
+ "border-t": {
27
+ "0px": "border-t-0",
28
+ "1px": "border-t",
29
+ "2px": "border-t-2",
30
+ "4px": "border-t-4",
31
+ "8px": "border-t-8",
32
+ },
33
+ "border-r": {
34
+ "0px": "border-r-0",
35
+ "1px": "border-r",
36
+ "2px": "border-r-2",
37
+ "4px": "border-r-4",
38
+ "8px": "border-r-8",
39
+ },
40
+ "border-b": {
41
+ "0px": "border-b-0",
42
+ "1px": "border-b",
43
+ "2px": "border-b-2",
44
+ "4px": "border-b-4",
45
+ "8px": "border-b-8",
46
+ },
47
+ "border-l": {
48
+ "0px": "border-l-0",
49
+ "1px": "border-l",
50
+ "2px": "border-l-2",
51
+ "4px": "border-l-4",
52
+ "8px": "border-l-8",
53
+ },
54
+ rounded: {
55
+ "0px": "rounded-none",
56
+ "2px": "rounded-sm",
57
+ "4px": "rounded",
58
+ "6px": "rounded-md",
59
+ "8px": "rounded-lg",
60
+ "12px": "rounded-xl",
61
+ "16px": "rounded-2xl",
62
+ "24px": "rounded-3xl",
63
+ "9999px": "rounded-full",
64
+ },
65
+ "rounded-t": {
66
+ "0px": "rounded-t-none",
67
+ "2px": "rounded-t-sm",
68
+ "4px": "rounded-t",
69
+ "6px": "rounded-t-md",
70
+ "8px": "rounded-t-lg",
71
+ "12px": "rounded-t-xl",
72
+ "16px": "rounded-t-2xl",
73
+ "24px": "rounded-t-3xl",
74
+ "9999px": "rounded-t-full",
75
+ },
76
+ "rounded-r": {
77
+ "0px": "rounded-r-none",
78
+ "2px": "rounded-r-sm",
79
+ "4px": "rounded-r",
80
+ "6px": "rounded-r-md",
81
+ "8px": "rounded-r-lg",
82
+ "12px": "rounded-r-xl",
83
+ "16px": "rounded-r-2xl",
84
+ "24px": "rounded-r-3xl",
85
+ "9999px": "rounded-r-full",
86
+ },
87
+ "rounded-b": {
88
+ "0px": "rounded-b-none",
89
+ "2px": "rounded-b-sm",
90
+ "4px": "rounded-b",
91
+ "6px": "rounded-b-md",
92
+ "8px": "rounded-b-lg",
93
+ "12px": "rounded-b-xl",
94
+ "16px": "rounded-b-2xl",
95
+ "24px": "rounded-b-3xl",
96
+ "9999px": "rounded-b-full",
97
+ },
98
+ "rounded-l": {
99
+ "0px": "rounded-l-none",
100
+ "2px": "rounded-l-sm",
101
+ "4px": "rounded-l",
102
+ "6px": "rounded-l-md",
103
+ "8px": "rounded-l-lg",
104
+ "12px": "rounded-l-xl",
105
+ "16px": "rounded-l-2xl",
106
+ "24px": "rounded-l-3xl",
107
+ "9999px": "rounded-l-full",
108
+ },
109
+ "rounded-tl": {
110
+ "0px": "rounded-tl-none",
111
+ "2px": "rounded-tl-sm",
112
+ "4px": "rounded-tl",
113
+ "6px": "rounded-tl-md",
114
+ "8px": "rounded-tl-lg",
115
+ "12px": "rounded-tl-xl",
116
+ "16px": "rounded-tl-2xl",
117
+ "24px": "rounded-tl-3xl",
118
+ "9999px": "rounded-tl-full",
119
+ },
120
+ "rounded-tr": {
121
+ "0px": "rounded-tr-none",
122
+ "2px": "rounded-tr-sm",
123
+ "4px": "rounded-tr",
124
+ "6px": "rounded-tr-md",
125
+ "8px": "rounded-tr-lg",
126
+ "12px": "rounded-tr-xl",
127
+ "16px": "rounded-tr-2xl",
128
+ "24px": "rounded-tr-3xl",
129
+ "9999px": "rounded-tr-full",
130
+ },
131
+ "rounded-br": {
132
+ "0px": "rounded-br-none",
133
+ "2px": "rounded-br-sm",
134
+ "4px": "rounded-br",
135
+ "6px": "rounded-br-md",
136
+ "8px": "rounded-br-lg",
137
+ "12px": "rounded-br-xl",
138
+ "16px": "rounded-br-2xl",
139
+ "24px": "rounded-br-3xl",
140
+ "9999px": "rounded-br-full",
141
+ },
142
+ "rounded-bl": {
143
+ "0px": "rounded-bl-none",
144
+ "2px": "rounded-bl-sm",
145
+ "4px": "rounded-bl",
146
+ "6px": "rounded-bl-md",
147
+ "8px": "rounded-bl-lg",
148
+ "12px": "rounded-bl-xl",
149
+ "16px": "rounded-bl-2xl",
150
+ "24px": "rounded-bl-3xl",
151
+ "9999px": "rounded-bl-full",
152
+ },
153
+ };
@@ -0,0 +1,2 @@
1
+ import { TailwindMapping } from "../../types";
2
+ export declare const layoutMappings: TailwindMapping;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.layoutMappings = void 0;
4
+ const borders_rounded_1 = require("./borders-rounded");
5
+ const positioning_1 = require("./positioning");
6
+ exports.layoutMappings = {
7
+ ...borders_rounded_1.bordersRoundedMappings,
8
+ ...positioning_1.positioningMappings,
9
+ };
@@ -0,0 +1,2 @@
1
+ import { ValueMapping } from "../../types";
2
+ export declare const positioningMappings: Record<string, ValueMapping>;
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.positioningMappings = void 0;
4
+ exports.positioningMappings = {
5
+ z: {
6
+ "0": "z-0",
7
+ "10": "z-10",
8
+ "20": "z-20",
9
+ "30": "z-30",
10
+ "40": "z-40",
11
+ "50": "z-50",
12
+ "100": "z-10",
13
+ "1000": "z-[1000]",
14
+ },
15
+ top: {
16
+ "0px": "top-0",
17
+ "1px": "top-px",
18
+ "4px": "top-1",
19
+ "8px": "top-2",
20
+ "12px": "top-3",
21
+ "16px": "top-4",
22
+ "20px": "top-5",
23
+ "24px": "top-6",
24
+ "50%": "top-1/2",
25
+ "100%": "top-full",
26
+ "-1px": "-top-px",
27
+ "-4px": "-top-1",
28
+ "-8px": "-top-2",
29
+ "-12px": "-top-3",
30
+ "-16px": "-top-4",
31
+ "-20px": "-top-5",
32
+ "-24px": "-top-6",
33
+ "-50%": "-top-1/2",
34
+ "-100%": "-top-full",
35
+ },
36
+ right: {
37
+ "0px": "right-0",
38
+ "1px": "right-px",
39
+ "4px": "right-1",
40
+ "8px": "right-2",
41
+ "12px": "right-3",
42
+ "16px": "right-4",
43
+ "20px": "right-5",
44
+ "24px": "right-6",
45
+ "50%": "right-1/2",
46
+ "100%": "right-full",
47
+ "-1px": "-right-px",
48
+ "-4px": "-right-1",
49
+ "-8px": "-right-2",
50
+ "-12px": "-right-3",
51
+ "-16px": "-right-4",
52
+ "-20px": "-right-5",
53
+ "-24px": "-right-6",
54
+ "-50%": "-right-1/2",
55
+ "-100%": "-right-full",
56
+ },
57
+ bottom: {
58
+ "0px": "bottom-0",
59
+ "1px": "bottom-px",
60
+ "4px": "bottom-1",
61
+ "8px": "bottom-2",
62
+ "12px": "bottom-3",
63
+ "16px": "bottom-4",
64
+ "20px": "bottom-5",
65
+ "24px": "bottom-6",
66
+ "50%": "bottom-1/2",
67
+ "100%": "bottom-full",
68
+ "-1px": "-bottom-px",
69
+ "-4px": "-bottom-1",
70
+ "-8px": "-bottom-2",
71
+ "-12px": "-bottom-3",
72
+ "-16px": "-bottom-4",
73
+ "-20px": "-bottom-5",
74
+ "-24px": "-bottom-6",
75
+ "-50%": "-bottom-1/2",
76
+ "-100%": "-bottom-full",
77
+ },
78
+ left: {
79
+ "0px": "left-0",
80
+ "1px": "left-px",
81
+ "4px": "left-1",
82
+ "8px": "left-2",
83
+ "12px": "left-3",
84
+ "16px": "left-4",
85
+ "20px": "left-5",
86
+ "24px": "left-6",
87
+ "50%": "left-1/2",
88
+ "100%": "left-full",
89
+ "-1px": "-left-px",
90
+ "-4px": "-left-1",
91
+ "-8px": "-left-2",
92
+ "-12px": "-left-3",
93
+ "-16px": "-left-4",
94
+ "-20px": "-left-5",
95
+ "-24px": "-left-6",
96
+ "-50%": "-left-1/2",
97
+ "-100%": "-left-full",
98
+ },
99
+ };
@@ -0,0 +1,2 @@
1
+ import { ValueMapping } from "../../types";
2
+ export declare const heightMappings: Record<string, ValueMapping>;
@@ -0,0 +1,173 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.heightMappings = void 0;
4
+ exports.heightMappings = {
5
+ h: {
6
+ "0px": "h-0",
7
+ "1px": "h-px",
8
+ "4px": "h-1",
9
+ "8px": "h-2",
10
+ "12px": "h-3",
11
+ "16px": "h-4",
12
+ "20px": "h-5",
13
+ "24px": "h-6",
14
+ "28px": "h-7",
15
+ "32px": "h-8",
16
+ "36px": "h-9",
17
+ "40px": "h-10",
18
+ "44px": "h-11",
19
+ "48px": "h-12",
20
+ "56px": "h-14",
21
+ "64px": "h-16",
22
+ "80px": "h-20",
23
+ "96px": "h-24",
24
+ "112px": "h-28",
25
+ "128px": "h-32",
26
+ "144px": "h-36",
27
+ "160px": "h-40",
28
+ "176px": "h-44",
29
+ "192px": "h-48",
30
+ "208px": "h-52",
31
+ "224px": "h-56",
32
+ "240px": "h-60",
33
+ "256px": "h-64",
34
+ "288px": "h-72",
35
+ "320px": "h-80",
36
+ "384px": "h-96",
37
+ "448px": "h-md",
38
+ "512px": "h-lg",
39
+ "576px": "h-xl",
40
+ "672px": "h-2xl",
41
+ "768px": "h-3xl",
42
+ "896px": "h-4xl",
43
+ "1024px": "h-5xl",
44
+ "1152px": "h-6xl",
45
+ "1280px": "h-7xl",
46
+ "8.333333%": "h-1/12",
47
+ "16.666667%": "h-1/6",
48
+ "20%": "h-1/5",
49
+ "25%": "h-1/4",
50
+ "33.333333%": "h-1/3",
51
+ "40%": "h-2/5",
52
+ "50%": "h-1/2",
53
+ "60%": "h-3/5",
54
+ "66.666667%": "h-2/3",
55
+ "75%": "h-3/4",
56
+ "80%": "h-4/5",
57
+ "83.333333%": "h-5/6",
58
+ "91.666667%": "h-11/12",
59
+ "100%": "h-full",
60
+ auto: "h-auto",
61
+ "100vh": "h-screen",
62
+ "100dvh": "h-dvh",
63
+ "100lvh": "h-lvh",
64
+ "100svh": "h-svh",
65
+ "100vw": "h-screen",
66
+ "100dvw": "h-dvw",
67
+ "100lvw": "h-lvw",
68
+ "100svw": "h-svw",
69
+ "min-content": "h-min",
70
+ "max-content": "h-max",
71
+ "fit-content": "h-fit",
72
+ },
73
+ "min-h": {
74
+ "0px": "min-h-0",
75
+ "1px": "min-h-px",
76
+ "4px": "min-h-1",
77
+ "8px": "min-h-2",
78
+ "12px": "min-h-3",
79
+ "16px": "min-h-4",
80
+ "20px": "min-h-5",
81
+ "24px": "min-h-6",
82
+ "28px": "min-h-7",
83
+ "32px": "min-h-8",
84
+ "36px": "min-h-9",
85
+ "40px": "min-h-10",
86
+ "44px": "min-h-11",
87
+ "48px": "min-h-12",
88
+ "56px": "min-h-14",
89
+ "64px": "min-h-16",
90
+ "80px": "min-h-20",
91
+ "96px": "min-h-24",
92
+ "112px": "min-h-28",
93
+ "128px": "min-h-32",
94
+ "144px": "min-h-36",
95
+ "160px": "min-h-40",
96
+ "176px": "min-h-44",
97
+ "192px": "min-h-48",
98
+ "208px": "min-h-52",
99
+ "224px": "min-h-56",
100
+ "240px": "min-h-60",
101
+ "256px": "min-h-64",
102
+ "288px": "min-h-72",
103
+ "320px": "min-h-80",
104
+ "384px": "min-h-96",
105
+ "448px": "min-h-md",
106
+ "512px": "min-h-lg",
107
+ "576px": "min-h-xl",
108
+ "672px": "min-h-2xl",
109
+ "768px": "min-h-3xl",
110
+ "896px": "min-h-4xl",
111
+ "1024px": "min-h-5xl",
112
+ "1152px": "min-h-6xl",
113
+ "1280px": "min-h-7xl",
114
+ "100%": "min-h-full",
115
+ "100vh": "min-h-screen",
116
+ "100dvh": "min-h-dvh",
117
+ "100lvh": "min-h-lvh",
118
+ "100svh": "min-h-svh",
119
+ "min-content": "min-h-min",
120
+ "max-content": "min-h-max",
121
+ "fit-content": "min-h-fit",
122
+ },
123
+ "max-h": {
124
+ "0px": "max-h-0",
125
+ "1px": "max-h-px",
126
+ "4px": "max-h-1",
127
+ "8px": "max-h-2",
128
+ "12px": "max-h-3",
129
+ "16px": "max-h-4",
130
+ "20px": "max-h-5",
131
+ "24px": "max-h-6",
132
+ "28px": "max-h-7",
133
+ "32px": "max-h-8",
134
+ "36px": "max-h-9",
135
+ "40px": "max-h-10",
136
+ "44px": "max-h-11",
137
+ "48px": "max-h-12",
138
+ "56px": "max-h-14",
139
+ "64px": "max-h-16",
140
+ "80px": "max-h-20",
141
+ "96px": "max-h-24",
142
+ "112px": "max-h-28",
143
+ "128px": "max-h-32",
144
+ "144px": "max-h-36",
145
+ "160px": "max-h-40",
146
+ "176px": "max-h-44",
147
+ "192px": "max-h-48",
148
+ "208px": "max-h-52",
149
+ "224px": "max-h-56",
150
+ "240px": "max-h-60",
151
+ "256px": "max-h-64",
152
+ "288px": "max-h-72",
153
+ "320px": "max-h-80",
154
+ "384px": "max-h-96",
155
+ "448px": "max-h-md",
156
+ "512px": "max-h-lg",
157
+ "576px": "max-h-xl",
158
+ "672px": "max-h-2xl",
159
+ "768px": "max-h-3xl",
160
+ "896px": "max-h-4xl",
161
+ "1024px": "max-h-5xl",
162
+ "1152px": "max-h-6xl",
163
+ "1280px": "max-h-7xl",
164
+ "100%": "max-h-full",
165
+ "100vh": "max-h-screen",
166
+ "100dvh": "max-h-dvh",
167
+ "100lvh": "max-h-lvh",
168
+ "100svh": "max-h-svh",
169
+ "min-content": "max-h-min",
170
+ "max-content": "max-h-max",
171
+ "fit-content": "max-h-fit",
172
+ },
173
+ };
@@ -0,0 +1,2 @@
1
+ import { TailwindMapping } from "../../types";
2
+ export declare const sizingMappings: TailwindMapping;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sizingMappings = void 0;
4
+ const width_1 = require("./width");
5
+ const height_1 = require("./height");
6
+ const size_1 = require("./size");
7
+ exports.sizingMappings = {
8
+ ...width_1.widthMappings,
9
+ ...height_1.heightMappings,
10
+ ...size_1.sizeMappings,
11
+ };
@@ -0,0 +1,2 @@
1
+ import { ValueMapping } from "../../types";
2
+ export declare const sizeMappings: Record<string, ValueMapping>;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sizeMappings = void 0;
4
+ exports.sizeMappings = {
5
+ size: {
6
+ "0px": "size-0",
7
+ "1px": "size-px",
8
+ "4px": "size-1",
9
+ "8px": "size-2",
10
+ "12px": "size-3",
11
+ "16px": "size-4",
12
+ "20px": "size-5",
13
+ "24px": "size-6",
14
+ "28px": "size-7",
15
+ "32px": "size-8",
16
+ "36px": "size-9",
17
+ "40px": "size-10",
18
+ "44px": "size-11",
19
+ "48px": "size-12",
20
+ "56px": "size-14",
21
+ "64px": "size-16",
22
+ "80px": "size-20",
23
+ "96px": "size-24",
24
+ "112px": "size-28",
25
+ "128px": "size-32",
26
+ "144px": "size-36",
27
+ "160px": "size-40",
28
+ "176px": "size-44",
29
+ "192px": "size-48",
30
+ "208px": "size-52",
31
+ "224px": "size-56",
32
+ "240px": "size-60",
33
+ "256px": "size-64",
34
+ "288px": "size-72",
35
+ "320px": "size-80",
36
+ "384px": "size-96",
37
+ "8.333333%": "size-1/12",
38
+ "16.666667%": "size-1/6",
39
+ "20%": "size-1/5",
40
+ "25%": "size-1/4",
41
+ "33.333333%": "size-1/3",
42
+ "40%": "size-2/5",
43
+ "50%": "size-1/2",
44
+ "60%": "size-3/5",
45
+ "66.666667%": "size-2/3",
46
+ "75%": "size-3/4",
47
+ "80%": "size-4/5",
48
+ "83.333333%": "size-5/6",
49
+ "91.666667%": "size-11/12",
50
+ "100%": "size-full",
51
+ auto: "size-auto",
52
+ "100dvw": "size-dvw",
53
+ "100lvw": "size-lvw",
54
+ "100svw": "size-svw",
55
+ "100dvh": "size-dvh",
56
+ "100lvh": "size-lvh",
57
+ "100svh": "size-svh",
58
+ "min-content": "size-min",
59
+ "max-content": "size-max",
60
+ "fit-content": "size-fit",
61
+ },
62
+ };
@@ -0,0 +1,2 @@
1
+ import { ValueMapping } from "../../types";
2
+ export declare const widthMappings: Record<string, ValueMapping>;