mantine-reduce-css 1.1.0 → 1.1.2

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 (3) hide show
  1. package/dist/index.js +133 -116
  2. package/package.json +1 -1
  3. package/.gitmodules +0 -3
package/dist/index.js CHANGED
@@ -23,6 +23,9 @@ function extractMantineImports(props) {
23
23
  if (props.nprogress) {
24
24
  allResults.add("@mantine/nprogress");
25
25
  }
26
+ if (props.modals) {
27
+ allResults.add("@mantine/modals");
28
+ }
26
29
  if (props.tiptap) {
27
30
  allResults.add("@mantine/tiptap");
28
31
  }
@@ -682,8 +685,8 @@ var data_default = [
682
685
  module: "@mantine/core",
683
686
  css_name: "@mantine/core/styles/Accordion.css",
684
687
  dependency: [
685
- "UnstyledButton",
686
- "Collapse"
688
+ "Collapse",
689
+ "UnstyledButton"
687
690
  ]
688
691
  },
689
692
  {
@@ -691,9 +694,9 @@ var data_default = [
691
694
  module: "@mantine/core",
692
695
  css_name: "@mantine/core/styles/ActionIcon.css",
693
696
  dependency: [
694
- "Transition",
695
697
  "Loader",
696
- "UnstyledButton"
698
+ "UnstyledButton",
699
+ "Transition"
697
700
  ]
698
701
  },
699
702
  {
@@ -743,10 +746,10 @@ var data_default = [
743
746
  module: "@mantine/core",
744
747
  css_name: "",
745
748
  dependency: [
746
- "Input",
747
- "Combobox",
748
749
  "InputBase",
749
- "ScrollArea"
750
+ "Combobox",
751
+ "ScrollArea",
752
+ "Input"
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: [
795
- "Transition",
796
798
  "Loader",
797
- "UnstyledButton"
799
+ "UnstyledButton",
800
+ "Transition"
798
801
  ]
799
802
  },
800
803
  {
@@ -853,12 +856,12 @@ var data_default = [
853
856
  module: "@mantine/core",
854
857
  css_name: "@mantine/core/styles/ColorInput.css",
855
858
  dependency: [
856
- "ColorPicker",
857
- "InputBase",
859
+ "Popover",
858
860
  "ActionIcon",
859
861
  "ColorSwatch",
862
+ "ColorPicker",
860
863
  "Input",
861
- "Popover"
864
+ "InputBase"
862
865
  ]
863
866
  },
864
867
  {
@@ -904,8 +907,8 @@ var data_default = [
904
907
  dependency: [
905
908
  "Paper",
906
909
  "Affix",
907
- "Transition",
908
- "CloseButton"
910
+ "CloseButton",
911
+ "Transition"
909
912
  ]
910
913
  },
911
914
  {
@@ -939,8 +942,8 @@ var data_default = [
939
942
  module: "@mantine/core",
940
943
  css_name: "",
941
944
  dependency: [
942
- "FileButton",
943
945
  "Input",
946
+ "FileButton",
944
947
  "CloseButton"
945
948
  ]
946
949
  },
@@ -1026,8 +1029,8 @@ var data_default = [
1026
1029
  module: "@mantine/core",
1027
1030
  css_name: "",
1028
1031
  dependency: [
1029
- "Input",
1030
1032
  "InputBase",
1033
+ "Input",
1031
1034
  "Textarea"
1032
1035
  ]
1033
1036
  },
@@ -1054,9 +1057,9 @@ var data_default = [
1054
1057
  module: "@mantine/core",
1055
1058
  css_name: "@mantine/core/styles/LoadingOverlay.css",
1056
1059
  dependency: [
1060
+ "Loader",
1057
1061
  "Overlay",
1058
- "Transition",
1059
- "Loader"
1062
+ "Transition"
1060
1063
  ]
1061
1064
  },
1062
1065
  {
@@ -1089,8 +1092,8 @@ var data_default = [
1089
1092
  module: "@mantine/core",
1090
1093
  css_name: "@mantine/core/styles/ModalBase.css",
1091
1094
  dependency: [
1092
- "Portal",
1093
- "Transition"
1095
+ "Transition",
1096
+ "Portal"
1094
1097
  ]
1095
1098
  },
1096
1099
  {
@@ -1098,12 +1101,12 @@ var data_default = [
1098
1101
  module: "@mantine/core",
1099
1102
  css_name: "",
1100
1103
  dependency: [
1101
- "PillsInput",
1102
- "InputBase",
1103
- "Pill",
1104
+ "Combobox",
1104
1105
  "ScrollArea",
1106
+ "Pill",
1105
1107
  "Input",
1106
- "Combobox"
1108
+ "PillsInput",
1109
+ "InputBase"
1107
1110
  ]
1108
1111
  },
1109
1112
  {
@@ -1111,9 +1114,9 @@ var data_default = [
1111
1114
  module: "@mantine/core",
1112
1115
  css_name: "",
1113
1116
  dependency: [
1114
- "Input",
1117
+ "InputBase",
1115
1118
  "Combobox",
1116
- "InputBase"
1119
+ "Input"
1117
1120
  ]
1118
1121
  },
1119
1122
  {
@@ -1146,8 +1149,8 @@ var data_default = [
1146
1149
  module: "@mantine/core",
1147
1150
  css_name: "@mantine/core/styles/NumberInput.css",
1148
1151
  dependency: [
1149
- "Input",
1150
1152
  "InputBase",
1153
+ "Input",
1151
1154
  "UnstyledButton"
1152
1155
  ]
1153
1156
  },
@@ -1176,9 +1179,9 @@ var data_default = [
1176
1179
  module: "@mantine/core",
1177
1180
  css_name: "@mantine/core/styles/PasswordInput.css",
1178
1181
  dependency: [
1182
+ "InputBase",
1179
1183
  "Input",
1180
- "ActionIcon",
1181
- "InputBase"
1184
+ "ActionIcon"
1182
1185
  ]
1183
1186
  },
1184
1187
  {
@@ -1194,8 +1197,8 @@ var data_default = [
1194
1197
  module: "@mantine/core",
1195
1198
  css_name: "@mantine/core/styles/PillsInput.css",
1196
1199
  dependency: [
1197
- "Input",
1198
- "InputBase"
1200
+ "InputBase",
1201
+ "Input"
1199
1202
  ]
1200
1203
  },
1201
1204
  {
@@ -1203,9 +1206,9 @@ var data_default = [
1203
1206
  module: "@mantine/core",
1204
1207
  css_name: "@mantine/core/styles/PinInput.css",
1205
1208
  dependency: [
1209
+ "InputBase",
1206
1210
  "Input",
1207
- "Group",
1208
- "InputBase"
1211
+ "Group"
1209
1212
  ]
1210
1213
  },
1211
1214
  {
@@ -1213,10 +1216,10 @@ var data_default = [
1213
1216
  module: "@mantine/core",
1214
1217
  css_name: "@mantine/core/styles/Popover.css",
1215
1218
  dependency: [
1216
- "Overlay",
1217
- "FocusTrap",
1218
1219
  "Transition",
1219
- "Portal"
1220
+ "Overlay",
1221
+ "Portal",
1222
+ "FocusTrap"
1220
1223
  ]
1221
1224
  },
1222
1225
  {
@@ -1273,10 +1276,10 @@ var data_default = [
1273
1276
  module: "@mantine/core",
1274
1277
  css_name: "",
1275
1278
  dependency: [
1276
- "Input",
1277
- "Combobox",
1278
1279
  "InputBase",
1279
- "ScrollArea"
1280
+ "Combobox",
1281
+ "ScrollArea",
1282
+ "Input"
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
- "Transition",
1326
- "UnstyledButton",
1327
1328
  "Loader",
1328
- "Checkbox"
1329
+ "Checkbox",
1330
+ "UnstyledButton",
1331
+ "Transition"
1329
1332
  ]
1330
1333
  },
1331
1334
  {
@@ -1363,12 +1366,12 @@ var data_default = [
1363
1366
  module: "@mantine/core",
1364
1367
  css_name: "",
1365
1368
  dependency: [
1366
- "PillsInput",
1367
- "InputBase",
1368
- "Pill",
1369
+ "Combobox",
1369
1370
  "ScrollArea",
1371
+ "Pill",
1370
1372
  "Input",
1371
- "Combobox"
1373
+ "PillsInput",
1374
+ "InputBase"
1372
1375
  ]
1373
1376
  },
1374
1377
  {
@@ -1382,8 +1385,8 @@ var data_default = [
1382
1385
  module: "@mantine/core",
1383
1386
  css_name: "",
1384
1387
  dependency: [
1385
- "Input",
1386
- "InputBase"
1388
+ "InputBase",
1389
+ "Input"
1387
1390
  ]
1388
1391
  },
1389
1392
  {
@@ -1391,8 +1394,8 @@ var data_default = [
1391
1394
  module: "@mantine/core",
1392
1395
  css_name: "",
1393
1396
  dependency: [
1394
- "Input",
1395
- "InputBase"
1397
+ "InputBase",
1398
+ "Input"
1396
1399
  ]
1397
1400
  },
1398
1401
  {
@@ -1418,8 +1421,8 @@ var data_default = [
1418
1421
  module: "@mantine/core",
1419
1422
  css_name: "@mantine/core/styles/Tooltip.css",
1420
1423
  dependency: [
1421
- "Portal",
1422
- "Transition"
1424
+ "Transition",
1425
+ "Portal"
1423
1426
  ]
1424
1427
  },
1425
1428
  {
@@ -1585,8 +1588,8 @@ var data_default = [
1585
1588
  module: "@mantine/dates",
1586
1589
  css_name: "@mantine/dates/styles.css",
1587
1590
  dependency: [
1588
- "Input",
1589
1591
  "Modal",
1592
+ "Input",
1590
1593
  "Popover"
1591
1594
  ]
1592
1595
  },
@@ -1617,11 +1620,11 @@ var data_default = [
1617
1620
  module: "@mantine/dates",
1618
1621
  css_name: "@mantine/dates/styles.css",
1619
1622
  dependency: [
1620
- "InputBase",
1621
- "SimpleGrid",
1622
- "ScrollArea",
1623
1623
  "Popover",
1624
- "CloseButton"
1624
+ "ScrollArea",
1625
+ "SimpleGrid",
1626
+ "CloseButton",
1627
+ "InputBase"
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
- "Group",
1687
- "Text"
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
- "Group",
1761
- "ColorSwatch"
1763
+ "ColorSwatch",
1764
+ "Group"
1762
1765
  ]
1763
1766
  },
1764
1767
  {
@@ -1773,22 +1776,13 @@ var data_default = [
1773
1776
  css_name: "@mantine/charts/styles.css",
1774
1777
  dependency: []
1775
1778
  },
1776
- {
1777
- name: "@mantine/tiptap",
1778
- module: "@mantine/tiptap",
1779
- css_name: "@mantine/tiptap/styles.css",
1780
- dependency: [
1781
- "Typography",
1782
- "UnstyledButton"
1783
- ]
1784
- },
1785
1779
  {
1786
1780
  name: "@mantine/code-highlight",
1787
1781
  module: "@mantine/code-highlight",
1788
1782
  css_name: "@mantine/code-highlight/styles.css",
1789
1783
  dependency: [
1790
- "UnstyledButton",
1791
- "ScrollArea"
1784
+ "ScrollArea",
1785
+ "UnstyledButton"
1792
1786
  ]
1793
1787
  },
1794
1788
  {
@@ -1805,10 +1799,10 @@ var data_default = [
1805
1799
  css_name: "@mantine/spotlight/styles.css",
1806
1800
  dependency: [
1807
1801
  "Modal",
1808
- "UnstyledButton",
1809
1802
  "ScrollArea",
1810
- "Highlight",
1811
- "Input"
1803
+ "Input",
1804
+ "UnstyledButton",
1805
+ "Highlight"
1812
1806
  ]
1813
1807
  },
1814
1808
  {
@@ -1834,6 +1828,25 @@ var data_default = [
1834
1828
  dependency: [
1835
1829
  "Progress"
1836
1830
  ]
1831
+ },
1832
+ {
1833
+ name: "@mantine/modals",
1834
+ module: "@mantine/modals",
1835
+ css_name: "",
1836
+ dependency: [
1837
+ "Button",
1838
+ "Modal",
1839
+ "Group"
1840
+ ]
1841
+ },
1842
+ {
1843
+ name: "@mantine/tiptap",
1844
+ module: "@mantine/tiptap",
1845
+ css_name: "@mantine/tiptap/styles.css",
1846
+ dependency: [
1847
+ "UnstyledButton",
1848
+ "Typography"
1849
+ ]
1837
1850
  }
1838
1851
  ];
1839
1852
 
@@ -1921,79 +1934,80 @@ var hierarchy_default = [
1921
1934
  "RadarChart",
1922
1935
  "ScatterChart",
1923
1936
  "Sparkline",
1924
- "ChartLegend",
1925
1937
  "ColorPicker",
1938
+ "ChartLegend",
1926
1939
  "SegmentedControl",
1927
- "RadialBarChart",
1928
1940
  "Card",
1941
+ "RadialBarChart",
1929
1942
  "Affix",
1930
1943
  "@mantine/nprogress",
1931
1944
  "TimeGrid",
1932
- "Anchor",
1933
1945
  "Highlight",
1946
+ "Anchor",
1934
1947
  "BubbleChart",
1935
- "ModalBase",
1936
- "LoadingOverlay",
1937
1948
  "Tooltip",
1949
+ "LoadingOverlay",
1950
+ "ModalBase",
1951
+ "@mantine/tiptap",
1952
+ "CalendarHeader",
1953
+ "Accordion",
1954
+ "DatePicker",
1938
1955
  "Day",
1939
- "ActionIcon",
1956
+ "Pagination",
1940
1957
  "Button",
1941
1958
  "@mantine/code-highlight",
1942
- "TableOfContents",
1943
- "PickerControl",
1944
- "@mantine/carousel",
1945
- "Pagination",
1946
1959
  "CloseButton",
1947
- "CalendarHeader",
1948
1960
  "Tabs",
1949
- "DatePicker",
1950
- "@mantine/tiptap",
1951
- "Accordion",
1952
1961
  "Burger",
1962
+ "PickerControl",
1963
+ "ActionIcon",
1964
+ "@mantine/carousel",
1965
+ "TableOfContents",
1953
1966
  "FocusTrap",
1954
1967
  "Spoiler",
1955
- "Modal",
1956
- "Drawer",
1957
- "@mantine/dropzone",
1958
1968
  "RingProgress",
1959
1969
  "Heatmap",
1960
- "DateTimePicker",
1961
- "Alert",
1962
- "Pill",
1970
+ "@mantine/dropzone",
1971
+ "Modal",
1972
+ "Drawer",
1973
+ "NavLink",
1974
+ "Notification",
1963
1975
  "Dialog",
1964
1976
  "Input",
1965
- "Notification",
1966
- "NavLink",
1977
+ "Pill",
1978
+ "Alert",
1979
+ "DateTimePicker",
1967
1980
  "Popover",
1981
+ "@mantine/modals",
1982
+ "@mantine/notifications",
1983
+ "Checkbox",
1968
1984
  "Radio",
1969
- "@mantine/spotlight",
1970
1985
  "InputBase",
1971
- "FileInput",
1972
1986
  "Switch",
1973
- "Checkbox",
1974
- "@mantine/notifications",
1987
+ "@mantine/spotlight",
1988
+ "FileInput",
1989
+ "PickerInputBase",
1990
+ "Menu",
1975
1991
  "DateInput",
1976
1992
  "HoverCard",
1977
- "Menu",
1978
- "PickerInputBase",
1979
- "PillsInput",
1980
- "NumberInput",
1981
- "TimePicker",
1993
+ "Combobox",
1994
+ "Chip",
1995
+ "Stepper",
1982
1996
  "ColorInput",
1983
1997
  "PasswordInput",
1984
- "PinInput",
1998
+ "NumberInput",
1985
1999
  "Textarea",
1986
- "TextInput",
2000
+ "PinInput",
1987
2001
  "TimeInput",
1988
- "Combobox",
1989
- "Chip",
1990
- "Stepper",
1991
- "JsonInput",
1992
- "Select",
1993
- "Autocomplete",
2002
+ "TimePicker",
2003
+ "PillsInput",
2004
+ "TextInput",
1994
2005
  "NativeSelect",
1995
- "TagsInput",
1996
- "MultiSelect"
2006
+ "Autocomplete",
2007
+ "Select",
2008
+ "JsonInput",
2009
+ "MultiSelect",
2010
+ "TagsInput"
1997
2011
  ];
1998
2012
 
1999
2013
  // src/generate.ts
@@ -2076,6 +2090,8 @@ cli.command("run", "Run Mantine CSS reduction").option("--in <dir>", "Directory
2076
2090
  default: false
2077
2091
  }).option("--nprogress", "Include @mantine/nprogress CSS in the output file", {
2078
2092
  default: false
2093
+ }).option("--modals", "Include Mantine modals manager CSS in the output file", {
2094
+ default: false
2079
2095
  }).option("--tiptap", "Include @mantine/tiptap CSS in the output file", {
2080
2096
  default: false
2081
2097
  }).option("--ext <extension>", "File extension to scan for Mantine imports", {
@@ -2093,6 +2109,7 @@ cli.command("run", "Run Mantine CSS reduction").option("--in <dir>", "Directory
2093
2109
  charts: options.charts,
2094
2110
  core: options.core,
2095
2111
  tiptap: options.tiptap,
2112
+ modals: options.modals,
2096
2113
  extensions: options.ext
2097
2114
  });
2098
2115
  generateCssFiles(data, options.out, options.base);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mantine-reduce-css",
3
3
  "type": "module",
4
- "version": "1.1.0",
4
+ "version": "1.1.2",
5
5
  "description": "cli tool for reducing global css for mantine",
6
6
  "bin": {
7
7
  "mantine-reduce-css": "./dist/index.js"
package/.gitmodules DELETED
@@ -1,3 +0,0 @@
1
- [submodule "mantine"]
2
- path = mantine
3
- url = https://github.com/mantinedev/mantine.git