mantine-reduce-css 1.1.0 → 1.1.1
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.
- package/dist/index.js +82 -76
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26,6 +26,9 @@ function extractMantineImports(props) {
|
|
|
26
26
|
if (props.tiptap) {
|
|
27
27
|
allResults.add("@mantine/tiptap");
|
|
28
28
|
}
|
|
29
|
+
if (props.modals) {
|
|
30
|
+
allResults.add("modal");
|
|
31
|
+
}
|
|
29
32
|
function processDirectory(dir, allResults2) {
|
|
30
33
|
const entries = readdirSync(dir, { withFileTypes: true });
|
|
31
34
|
for (const entry of entries) {
|
|
@@ -691,9 +694,9 @@ var data_default = [
|
|
|
691
694
|
module: "@mantine/core",
|
|
692
695
|
css_name: "@mantine/core/styles/ActionIcon.css",
|
|
693
696
|
dependency: [
|
|
697
|
+
"UnstyledButton",
|
|
694
698
|
"Transition",
|
|
695
|
-
"Loader"
|
|
696
|
-
"UnstyledButton"
|
|
699
|
+
"Loader"
|
|
697
700
|
]
|
|
698
701
|
},
|
|
699
702
|
{
|
|
@@ -744,9 +747,9 @@ var data_default = [
|
|
|
744
747
|
css_name: "",
|
|
745
748
|
dependency: [
|
|
746
749
|
"Input",
|
|
747
|
-
"Combobox",
|
|
748
750
|
"InputBase",
|
|
749
|
-
"ScrollArea"
|
|
751
|
+
"ScrollArea",
|
|
752
|
+
"Combobox"
|
|
750
753
|
]
|
|
751
754
|
},
|
|
752
755
|
{
|
|
@@ -792,9 +795,9 @@ var data_default = [
|
|
|
792
795
|
module: "@mantine/core",
|
|
793
796
|
css_name: "@mantine/core/styles/Button.css",
|
|
794
797
|
dependency: [
|
|
798
|
+
"UnstyledButton",
|
|
795
799
|
"Transition",
|
|
796
|
-
"Loader"
|
|
797
|
-
"UnstyledButton"
|
|
800
|
+
"Loader"
|
|
798
801
|
]
|
|
799
802
|
},
|
|
800
803
|
{
|
|
@@ -854,11 +857,11 @@ var data_default = [
|
|
|
854
857
|
css_name: "@mantine/core/styles/ColorInput.css",
|
|
855
858
|
dependency: [
|
|
856
859
|
"ColorPicker",
|
|
857
|
-
"
|
|
860
|
+
"Input",
|
|
858
861
|
"ActionIcon",
|
|
862
|
+
"Popover",
|
|
859
863
|
"ColorSwatch",
|
|
860
|
-
"
|
|
861
|
-
"Popover"
|
|
864
|
+
"InputBase"
|
|
862
865
|
]
|
|
863
866
|
},
|
|
864
867
|
{
|
|
@@ -903,9 +906,9 @@ var data_default = [
|
|
|
903
906
|
css_name: "@mantine/core/styles/Dialog.css",
|
|
904
907
|
dependency: [
|
|
905
908
|
"Paper",
|
|
906
|
-
"
|
|
909
|
+
"CloseButton",
|
|
907
910
|
"Transition",
|
|
908
|
-
"
|
|
911
|
+
"Affix"
|
|
909
912
|
]
|
|
910
913
|
},
|
|
911
914
|
{
|
|
@@ -939,9 +942,9 @@ var data_default = [
|
|
|
939
942
|
module: "@mantine/core",
|
|
940
943
|
css_name: "",
|
|
941
944
|
dependency: [
|
|
942
|
-
"FileButton",
|
|
943
945
|
"Input",
|
|
944
|
-
"CloseButton"
|
|
946
|
+
"CloseButton",
|
|
947
|
+
"FileButton"
|
|
945
948
|
]
|
|
946
949
|
},
|
|
947
950
|
{
|
|
@@ -1027,8 +1030,8 @@ var data_default = [
|
|
|
1027
1030
|
css_name: "",
|
|
1028
1031
|
dependency: [
|
|
1029
1032
|
"Input",
|
|
1030
|
-
"
|
|
1031
|
-
"
|
|
1033
|
+
"Textarea",
|
|
1034
|
+
"InputBase"
|
|
1032
1035
|
]
|
|
1033
1036
|
},
|
|
1034
1037
|
{
|
|
@@ -1070,9 +1073,9 @@ var data_default = [
|
|
|
1070
1073
|
module: "@mantine/core",
|
|
1071
1074
|
css_name: "@mantine/core/styles/Menu.css",
|
|
1072
1075
|
dependency: [
|
|
1073
|
-
"Transition",
|
|
1074
1076
|
"Popover",
|
|
1075
1077
|
"UnstyledButton",
|
|
1078
|
+
"Transition",
|
|
1076
1079
|
"Accordion"
|
|
1077
1080
|
]
|
|
1078
1081
|
},
|
|
@@ -1099,10 +1102,10 @@ var data_default = [
|
|
|
1099
1102
|
css_name: "",
|
|
1100
1103
|
dependency: [
|
|
1101
1104
|
"PillsInput",
|
|
1102
|
-
"
|
|
1105
|
+
"Input",
|
|
1103
1106
|
"Pill",
|
|
1107
|
+
"InputBase",
|
|
1104
1108
|
"ScrollArea",
|
|
1105
|
-
"Input",
|
|
1106
1109
|
"Combobox"
|
|
1107
1110
|
]
|
|
1108
1111
|
},
|
|
@@ -1112,8 +1115,8 @@ var data_default = [
|
|
|
1112
1115
|
css_name: "",
|
|
1113
1116
|
dependency: [
|
|
1114
1117
|
"Input",
|
|
1115
|
-
"
|
|
1116
|
-
"
|
|
1118
|
+
"InputBase",
|
|
1119
|
+
"Combobox"
|
|
1117
1120
|
]
|
|
1118
1121
|
},
|
|
1119
1122
|
{
|
|
@@ -1121,9 +1124,9 @@ var data_default = [
|
|
|
1121
1124
|
module: "@mantine/core",
|
|
1122
1125
|
css_name: "@mantine/core/styles/NavLink.css",
|
|
1123
1126
|
dependency: [
|
|
1124
|
-
"Collapse",
|
|
1125
1127
|
"UnstyledButton",
|
|
1126
|
-
"Accordion"
|
|
1128
|
+
"Accordion",
|
|
1129
|
+
"Collapse"
|
|
1127
1130
|
]
|
|
1128
1131
|
},
|
|
1129
1132
|
{
|
|
@@ -1131,8 +1134,8 @@ var data_default = [
|
|
|
1131
1134
|
module: "@mantine/core",
|
|
1132
1135
|
css_name: "@mantine/core/styles/Notification.css",
|
|
1133
1136
|
dependency: [
|
|
1134
|
-
"
|
|
1135
|
-
"
|
|
1137
|
+
"CloseButton",
|
|
1138
|
+
"Loader"
|
|
1136
1139
|
]
|
|
1137
1140
|
},
|
|
1138
1141
|
{
|
|
@@ -1177,8 +1180,8 @@ var data_default = [
|
|
|
1177
1180
|
css_name: "@mantine/core/styles/PasswordInput.css",
|
|
1178
1181
|
dependency: [
|
|
1179
1182
|
"Input",
|
|
1180
|
-
"
|
|
1181
|
-
"
|
|
1183
|
+
"InputBase",
|
|
1184
|
+
"ActionIcon"
|
|
1182
1185
|
]
|
|
1183
1186
|
},
|
|
1184
1187
|
{
|
|
@@ -1204,8 +1207,8 @@ var data_default = [
|
|
|
1204
1207
|
css_name: "@mantine/core/styles/PinInput.css",
|
|
1205
1208
|
dependency: [
|
|
1206
1209
|
"Input",
|
|
1207
|
-
"
|
|
1208
|
-
"
|
|
1210
|
+
"InputBase",
|
|
1211
|
+
"Group"
|
|
1209
1212
|
]
|
|
1210
1213
|
},
|
|
1211
1214
|
{
|
|
@@ -1215,8 +1218,8 @@ var data_default = [
|
|
|
1215
1218
|
dependency: [
|
|
1216
1219
|
"Overlay",
|
|
1217
1220
|
"FocusTrap",
|
|
1218
|
-
"
|
|
1219
|
-
"
|
|
1221
|
+
"Portal",
|
|
1222
|
+
"Transition"
|
|
1220
1223
|
]
|
|
1221
1224
|
},
|
|
1222
1225
|
{
|
|
@@ -1274,9 +1277,9 @@ var data_default = [
|
|
|
1274
1277
|
css_name: "",
|
|
1275
1278
|
dependency: [
|
|
1276
1279
|
"Input",
|
|
1277
|
-
"Combobox",
|
|
1278
1280
|
"InputBase",
|
|
1279
|
-
"ScrollArea"
|
|
1281
|
+
"ScrollArea",
|
|
1282
|
+
"Combobox"
|
|
1280
1283
|
]
|
|
1281
1284
|
},
|
|
1282
1285
|
{
|
|
@@ -1322,10 +1325,10 @@ var data_default = [
|
|
|
1322
1325
|
module: "@mantine/core",
|
|
1323
1326
|
css_name: "@mantine/core/styles/Stepper.css",
|
|
1324
1327
|
dependency: [
|
|
1325
|
-
"
|
|
1328
|
+
"Checkbox",
|
|
1326
1329
|
"UnstyledButton",
|
|
1327
|
-
"
|
|
1328
|
-
"
|
|
1330
|
+
"Transition",
|
|
1331
|
+
"Loader"
|
|
1329
1332
|
]
|
|
1330
1333
|
},
|
|
1331
1334
|
{
|
|
@@ -1364,10 +1367,10 @@ var data_default = [
|
|
|
1364
1367
|
css_name: "",
|
|
1365
1368
|
dependency: [
|
|
1366
1369
|
"PillsInput",
|
|
1367
|
-
"
|
|
1370
|
+
"Input",
|
|
1368
1371
|
"Pill",
|
|
1372
|
+
"InputBase",
|
|
1369
1373
|
"ScrollArea",
|
|
1370
|
-
"Input",
|
|
1371
1374
|
"Combobox"
|
|
1372
1375
|
]
|
|
1373
1376
|
},
|
|
@@ -1472,8 +1475,8 @@ var data_default = [
|
|
|
1472
1475
|
css_name: "@mantine/dates/styles.css",
|
|
1473
1476
|
dependency: [
|
|
1474
1477
|
"Input",
|
|
1475
|
-
"
|
|
1476
|
-
"
|
|
1478
|
+
"CloseButton",
|
|
1479
|
+
"Popover"
|
|
1477
1480
|
]
|
|
1478
1481
|
},
|
|
1479
1482
|
{
|
|
@@ -1617,11 +1620,11 @@ var data_default = [
|
|
|
1617
1620
|
module: "@mantine/dates",
|
|
1618
1621
|
css_name: "@mantine/dates/styles.css",
|
|
1619
1622
|
dependency: [
|
|
1620
|
-
"
|
|
1623
|
+
"CloseButton",
|
|
1621
1624
|
"SimpleGrid",
|
|
1622
|
-
"ScrollArea",
|
|
1623
1625
|
"Popover",
|
|
1624
|
-
"
|
|
1626
|
+
"InputBase",
|
|
1627
|
+
"ScrollArea"
|
|
1625
1628
|
]
|
|
1626
1629
|
},
|
|
1627
1630
|
{
|
|
@@ -1683,8 +1686,8 @@ var data_default = [
|
|
|
1683
1686
|
module: "@mantine/charts",
|
|
1684
1687
|
css_name: "@mantine/charts/styles.css",
|
|
1685
1688
|
dependency: [
|
|
1686
|
-
"
|
|
1687
|
-
"
|
|
1689
|
+
"Text",
|
|
1690
|
+
"Group"
|
|
1688
1691
|
]
|
|
1689
1692
|
},
|
|
1690
1693
|
{
|
|
@@ -1757,8 +1760,8 @@ var data_default = [
|
|
|
1757
1760
|
css_name: "@mantine/charts/styles.css",
|
|
1758
1761
|
dependency: [
|
|
1759
1762
|
"Paper",
|
|
1760
|
-
"
|
|
1761
|
-
"
|
|
1763
|
+
"ColorSwatch",
|
|
1764
|
+
"Group"
|
|
1762
1765
|
]
|
|
1763
1766
|
},
|
|
1764
1767
|
{
|
|
@@ -1804,11 +1807,11 @@ var data_default = [
|
|
|
1804
1807
|
module: "@mantine/spotlight",
|
|
1805
1808
|
css_name: "@mantine/spotlight/styles.css",
|
|
1806
1809
|
dependency: [
|
|
1807
|
-
"Modal",
|
|
1808
1810
|
"UnstyledButton",
|
|
1809
|
-
"ScrollArea",
|
|
1810
1811
|
"Highlight",
|
|
1811
|
-
"Input"
|
|
1812
|
+
"Input",
|
|
1813
|
+
"ScrollArea",
|
|
1814
|
+
"Modal"
|
|
1812
1815
|
]
|
|
1813
1816
|
},
|
|
1814
1817
|
{
|
|
@@ -1929,71 +1932,71 @@ var hierarchy_default = [
|
|
|
1929
1932
|
"Affix",
|
|
1930
1933
|
"@mantine/nprogress",
|
|
1931
1934
|
"TimeGrid",
|
|
1935
|
+
"BubbleChart",
|
|
1932
1936
|
"Anchor",
|
|
1933
1937
|
"Highlight",
|
|
1934
|
-
"BubbleChart",
|
|
1935
|
-
"ModalBase",
|
|
1936
1938
|
"LoadingOverlay",
|
|
1939
|
+
"ModalBase",
|
|
1937
1940
|
"Tooltip",
|
|
1941
|
+
"@mantine/code-highlight",
|
|
1942
|
+
"Tabs",
|
|
1938
1943
|
"Day",
|
|
1944
|
+
"DatePicker",
|
|
1945
|
+
"@mantine/tiptap",
|
|
1946
|
+
"@mantine/carousel",
|
|
1939
1947
|
"ActionIcon",
|
|
1940
1948
|
"Button",
|
|
1941
|
-
"@mantine/code-highlight",
|
|
1942
1949
|
"TableOfContents",
|
|
1950
|
+
"Accordion",
|
|
1951
|
+
"CalendarHeader",
|
|
1952
|
+
"CloseButton",
|
|
1943
1953
|
"PickerControl",
|
|
1944
|
-
"@mantine/carousel",
|
|
1945
1954
|
"Pagination",
|
|
1946
|
-
"CloseButton",
|
|
1947
|
-
"CalendarHeader",
|
|
1948
|
-
"Tabs",
|
|
1949
|
-
"DatePicker",
|
|
1950
|
-
"@mantine/tiptap",
|
|
1951
|
-
"Accordion",
|
|
1952
1955
|
"Burger",
|
|
1953
1956
|
"FocusTrap",
|
|
1954
1957
|
"Spoiler",
|
|
1958
|
+
"@mantine/dropzone",
|
|
1955
1959
|
"Modal",
|
|
1956
1960
|
"Drawer",
|
|
1957
|
-
"@mantine/dropzone",
|
|
1958
1961
|
"RingProgress",
|
|
1959
1962
|
"Heatmap",
|
|
1960
1963
|
"DateTimePicker",
|
|
1964
|
+
"NavLink",
|
|
1965
|
+
"Input",
|
|
1961
1966
|
"Alert",
|
|
1962
1967
|
"Pill",
|
|
1963
1968
|
"Dialog",
|
|
1964
|
-
"Input",
|
|
1965
1969
|
"Notification",
|
|
1966
|
-
"NavLink",
|
|
1967
1970
|
"Popover",
|
|
1968
|
-
"Radio",
|
|
1969
|
-
"@mantine/spotlight",
|
|
1970
1971
|
"InputBase",
|
|
1971
|
-
"
|
|
1972
|
-
"Switch",
|
|
1972
|
+
"Radio",
|
|
1973
1973
|
"Checkbox",
|
|
1974
|
+
"Switch",
|
|
1975
|
+
"FileInput",
|
|
1976
|
+
"@mantine/spotlight",
|
|
1974
1977
|
"@mantine/notifications",
|
|
1975
|
-
"DateInput",
|
|
1976
1978
|
"HoverCard",
|
|
1977
|
-
"Menu",
|
|
1978
1979
|
"PickerInputBase",
|
|
1980
|
+
"Menu",
|
|
1981
|
+
"DateInput",
|
|
1982
|
+
"ColorInput",
|
|
1979
1983
|
"PillsInput",
|
|
1980
|
-
"NumberInput",
|
|
1981
1984
|
"TimePicker",
|
|
1982
|
-
"
|
|
1985
|
+
"TimeInput",
|
|
1986
|
+
"NumberInput",
|
|
1983
1987
|
"PasswordInput",
|
|
1988
|
+
"TextInput",
|
|
1984
1989
|
"PinInput",
|
|
1985
1990
|
"Textarea",
|
|
1986
|
-
"TextInput",
|
|
1987
|
-
"TimeInput",
|
|
1988
|
-
"Combobox",
|
|
1989
1991
|
"Chip",
|
|
1990
1992
|
"Stepper",
|
|
1993
|
+
"Combobox",
|
|
1991
1994
|
"JsonInput",
|
|
1995
|
+
"MultiSelect",
|
|
1996
|
+
"TagsInput",
|
|
1992
1997
|
"Select",
|
|
1993
1998
|
"Autocomplete",
|
|
1994
|
-
"NativeSelect"
|
|
1995
|
-
"TagsInput",
|
|
1996
|
-
"MultiSelect"
|
|
1999
|
+
"NativeSelect"
|
|
1997
2000
|
];
|
|
1998
2001
|
|
|
1999
2002
|
// src/generate.ts
|
|
@@ -2078,6 +2081,8 @@ cli.command("run", "Run Mantine CSS reduction").option("--in <dir>", "Directory
|
|
|
2078
2081
|
default: false
|
|
2079
2082
|
}).option("--tiptap", "Include @mantine/tiptap CSS in the output file", {
|
|
2080
2083
|
default: false
|
|
2084
|
+
}).option("--modals", "Include Mantine modals manager CSS in the output file", {
|
|
2085
|
+
default: false
|
|
2081
2086
|
}).option("--ext <extension>", "File extension to scan for Mantine imports", {
|
|
2082
2087
|
default: ["tsx", "jsx"]
|
|
2083
2088
|
}).action((options) => {
|
|
@@ -2093,6 +2098,7 @@ cli.command("run", "Run Mantine CSS reduction").option("--in <dir>", "Directory
|
|
|
2093
2098
|
charts: options.charts,
|
|
2094
2099
|
core: options.core,
|
|
2095
2100
|
tiptap: options.tiptap,
|
|
2101
|
+
modals: options.modals,
|
|
2096
2102
|
extensions: options.ext
|
|
2097
2103
|
});
|
|
2098
2104
|
generateCssFiles(data, options.out, options.base);
|