mantine-reduce-css 1.1.1 → 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 -122
  2. package/package.json +1 -1
  3. package/.gitmodules +0 -3
package/dist/index.js CHANGED
@@ -23,12 +23,12 @@ 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
  }
29
- if (props.modals) {
30
- allResults.add("modal");
31
- }
32
32
  function processDirectory(dir, allResults2) {
33
33
  const entries = readdirSync(dir, { withFileTypes: true });
34
34
  for (const entry of entries) {
@@ -685,8 +685,8 @@ var data_default = [
685
685
  module: "@mantine/core",
686
686
  css_name: "@mantine/core/styles/Accordion.css",
687
687
  dependency: [
688
- "UnstyledButton",
689
- "Collapse"
688
+ "Collapse",
689
+ "UnstyledButton"
690
690
  ]
691
691
  },
692
692
  {
@@ -694,9 +694,9 @@ var data_default = [
694
694
  module: "@mantine/core",
695
695
  css_name: "@mantine/core/styles/ActionIcon.css",
696
696
  dependency: [
697
+ "Loader",
697
698
  "UnstyledButton",
698
- "Transition",
699
- "Loader"
699
+ "Transition"
700
700
  ]
701
701
  },
702
702
  {
@@ -746,10 +746,10 @@ var data_default = [
746
746
  module: "@mantine/core",
747
747
  css_name: "",
748
748
  dependency: [
749
- "Input",
750
749
  "InputBase",
750
+ "Combobox",
751
751
  "ScrollArea",
752
- "Combobox"
752
+ "Input"
753
753
  ]
754
754
  },
755
755
  {
@@ -795,9 +795,9 @@ var data_default = [
795
795
  module: "@mantine/core",
796
796
  css_name: "@mantine/core/styles/Button.css",
797
797
  dependency: [
798
+ "Loader",
798
799
  "UnstyledButton",
799
- "Transition",
800
- "Loader"
800
+ "Transition"
801
801
  ]
802
802
  },
803
803
  {
@@ -856,11 +856,11 @@ var data_default = [
856
856
  module: "@mantine/core",
857
857
  css_name: "@mantine/core/styles/ColorInput.css",
858
858
  dependency: [
859
- "ColorPicker",
860
- "Input",
861
- "ActionIcon",
862
859
  "Popover",
860
+ "ActionIcon",
863
861
  "ColorSwatch",
862
+ "ColorPicker",
863
+ "Input",
864
864
  "InputBase"
865
865
  ]
866
866
  },
@@ -906,9 +906,9 @@ var data_default = [
906
906
  css_name: "@mantine/core/styles/Dialog.css",
907
907
  dependency: [
908
908
  "Paper",
909
+ "Affix",
909
910
  "CloseButton",
910
- "Transition",
911
- "Affix"
911
+ "Transition"
912
912
  ]
913
913
  },
914
914
  {
@@ -943,8 +943,8 @@ var data_default = [
943
943
  css_name: "",
944
944
  dependency: [
945
945
  "Input",
946
- "CloseButton",
947
- "FileButton"
946
+ "FileButton",
947
+ "CloseButton"
948
948
  ]
949
949
  },
950
950
  {
@@ -1029,9 +1029,9 @@ var data_default = [
1029
1029
  module: "@mantine/core",
1030
1030
  css_name: "",
1031
1031
  dependency: [
1032
+ "InputBase",
1032
1033
  "Input",
1033
- "Textarea",
1034
- "InputBase"
1034
+ "Textarea"
1035
1035
  ]
1036
1036
  },
1037
1037
  {
@@ -1057,9 +1057,9 @@ var data_default = [
1057
1057
  module: "@mantine/core",
1058
1058
  css_name: "@mantine/core/styles/LoadingOverlay.css",
1059
1059
  dependency: [
1060
+ "Loader",
1060
1061
  "Overlay",
1061
- "Transition",
1062
- "Loader"
1062
+ "Transition"
1063
1063
  ]
1064
1064
  },
1065
1065
  {
@@ -1073,9 +1073,9 @@ var data_default = [
1073
1073
  module: "@mantine/core",
1074
1074
  css_name: "@mantine/core/styles/Menu.css",
1075
1075
  dependency: [
1076
+ "Transition",
1076
1077
  "Popover",
1077
1078
  "UnstyledButton",
1078
- "Transition",
1079
1079
  "Accordion"
1080
1080
  ]
1081
1081
  },
@@ -1092,8 +1092,8 @@ var data_default = [
1092
1092
  module: "@mantine/core",
1093
1093
  css_name: "@mantine/core/styles/ModalBase.css",
1094
1094
  dependency: [
1095
- "Portal",
1096
- "Transition"
1095
+ "Transition",
1096
+ "Portal"
1097
1097
  ]
1098
1098
  },
1099
1099
  {
@@ -1101,12 +1101,12 @@ var data_default = [
1101
1101
  module: "@mantine/core",
1102
1102
  css_name: "",
1103
1103
  dependency: [
1104
- "PillsInput",
1105
- "Input",
1106
- "Pill",
1107
- "InputBase",
1104
+ "Combobox",
1108
1105
  "ScrollArea",
1109
- "Combobox"
1106
+ "Pill",
1107
+ "Input",
1108
+ "PillsInput",
1109
+ "InputBase"
1110
1110
  ]
1111
1111
  },
1112
1112
  {
@@ -1114,9 +1114,9 @@ var data_default = [
1114
1114
  module: "@mantine/core",
1115
1115
  css_name: "",
1116
1116
  dependency: [
1117
- "Input",
1118
1117
  "InputBase",
1119
- "Combobox"
1118
+ "Combobox",
1119
+ "Input"
1120
1120
  ]
1121
1121
  },
1122
1122
  {
@@ -1124,9 +1124,9 @@ var data_default = [
1124
1124
  module: "@mantine/core",
1125
1125
  css_name: "@mantine/core/styles/NavLink.css",
1126
1126
  dependency: [
1127
+ "Collapse",
1127
1128
  "UnstyledButton",
1128
- "Accordion",
1129
- "Collapse"
1129
+ "Accordion"
1130
1130
  ]
1131
1131
  },
1132
1132
  {
@@ -1134,8 +1134,8 @@ var data_default = [
1134
1134
  module: "@mantine/core",
1135
1135
  css_name: "@mantine/core/styles/Notification.css",
1136
1136
  dependency: [
1137
- "CloseButton",
1138
- "Loader"
1137
+ "Loader",
1138
+ "CloseButton"
1139
1139
  ]
1140
1140
  },
1141
1141
  {
@@ -1149,8 +1149,8 @@ var data_default = [
1149
1149
  module: "@mantine/core",
1150
1150
  css_name: "@mantine/core/styles/NumberInput.css",
1151
1151
  dependency: [
1152
- "Input",
1153
1152
  "InputBase",
1153
+ "Input",
1154
1154
  "UnstyledButton"
1155
1155
  ]
1156
1156
  },
@@ -1179,8 +1179,8 @@ var data_default = [
1179
1179
  module: "@mantine/core",
1180
1180
  css_name: "@mantine/core/styles/PasswordInput.css",
1181
1181
  dependency: [
1182
- "Input",
1183
1182
  "InputBase",
1183
+ "Input",
1184
1184
  "ActionIcon"
1185
1185
  ]
1186
1186
  },
@@ -1197,8 +1197,8 @@ var data_default = [
1197
1197
  module: "@mantine/core",
1198
1198
  css_name: "@mantine/core/styles/PillsInput.css",
1199
1199
  dependency: [
1200
- "Input",
1201
- "InputBase"
1200
+ "InputBase",
1201
+ "Input"
1202
1202
  ]
1203
1203
  },
1204
1204
  {
@@ -1206,8 +1206,8 @@ var data_default = [
1206
1206
  module: "@mantine/core",
1207
1207
  css_name: "@mantine/core/styles/PinInput.css",
1208
1208
  dependency: [
1209
- "Input",
1210
1209
  "InputBase",
1210
+ "Input",
1211
1211
  "Group"
1212
1212
  ]
1213
1213
  },
@@ -1216,10 +1216,10 @@ var data_default = [
1216
1216
  module: "@mantine/core",
1217
1217
  css_name: "@mantine/core/styles/Popover.css",
1218
1218
  dependency: [
1219
+ "Transition",
1219
1220
  "Overlay",
1220
- "FocusTrap",
1221
1221
  "Portal",
1222
- "Transition"
1222
+ "FocusTrap"
1223
1223
  ]
1224
1224
  },
1225
1225
  {
@@ -1276,10 +1276,10 @@ var data_default = [
1276
1276
  module: "@mantine/core",
1277
1277
  css_name: "",
1278
1278
  dependency: [
1279
- "Input",
1280
1279
  "InputBase",
1280
+ "Combobox",
1281
1281
  "ScrollArea",
1282
- "Combobox"
1282
+ "Input"
1283
1283
  ]
1284
1284
  },
1285
1285
  {
@@ -1325,10 +1325,10 @@ var data_default = [
1325
1325
  module: "@mantine/core",
1326
1326
  css_name: "@mantine/core/styles/Stepper.css",
1327
1327
  dependency: [
1328
+ "Loader",
1328
1329
  "Checkbox",
1329
1330
  "UnstyledButton",
1330
- "Transition",
1331
- "Loader"
1331
+ "Transition"
1332
1332
  ]
1333
1333
  },
1334
1334
  {
@@ -1366,12 +1366,12 @@ var data_default = [
1366
1366
  module: "@mantine/core",
1367
1367
  css_name: "",
1368
1368
  dependency: [
1369
- "PillsInput",
1370
- "Input",
1371
- "Pill",
1372
- "InputBase",
1369
+ "Combobox",
1373
1370
  "ScrollArea",
1374
- "Combobox"
1371
+ "Pill",
1372
+ "Input",
1373
+ "PillsInput",
1374
+ "InputBase"
1375
1375
  ]
1376
1376
  },
1377
1377
  {
@@ -1385,8 +1385,8 @@ var data_default = [
1385
1385
  module: "@mantine/core",
1386
1386
  css_name: "",
1387
1387
  dependency: [
1388
- "Input",
1389
- "InputBase"
1388
+ "InputBase",
1389
+ "Input"
1390
1390
  ]
1391
1391
  },
1392
1392
  {
@@ -1394,8 +1394,8 @@ var data_default = [
1394
1394
  module: "@mantine/core",
1395
1395
  css_name: "",
1396
1396
  dependency: [
1397
- "Input",
1398
- "InputBase"
1397
+ "InputBase",
1398
+ "Input"
1399
1399
  ]
1400
1400
  },
1401
1401
  {
@@ -1421,8 +1421,8 @@ var data_default = [
1421
1421
  module: "@mantine/core",
1422
1422
  css_name: "@mantine/core/styles/Tooltip.css",
1423
1423
  dependency: [
1424
- "Portal",
1425
- "Transition"
1424
+ "Transition",
1425
+ "Portal"
1426
1426
  ]
1427
1427
  },
1428
1428
  {
@@ -1475,8 +1475,8 @@ var data_default = [
1475
1475
  css_name: "@mantine/dates/styles.css",
1476
1476
  dependency: [
1477
1477
  "Input",
1478
- "CloseButton",
1479
- "Popover"
1478
+ "Popover",
1479
+ "CloseButton"
1480
1480
  ]
1481
1481
  },
1482
1482
  {
@@ -1588,8 +1588,8 @@ var data_default = [
1588
1588
  module: "@mantine/dates",
1589
1589
  css_name: "@mantine/dates/styles.css",
1590
1590
  dependency: [
1591
- "Input",
1592
1591
  "Modal",
1592
+ "Input",
1593
1593
  "Popover"
1594
1594
  ]
1595
1595
  },
@@ -1620,11 +1620,11 @@ var data_default = [
1620
1620
  module: "@mantine/dates",
1621
1621
  css_name: "@mantine/dates/styles.css",
1622
1622
  dependency: [
1623
- "CloseButton",
1624
- "SimpleGrid",
1625
1623
  "Popover",
1626
- "InputBase",
1627
- "ScrollArea"
1624
+ "ScrollArea",
1625
+ "SimpleGrid",
1626
+ "CloseButton",
1627
+ "InputBase"
1628
1628
  ]
1629
1629
  },
1630
1630
  {
@@ -1776,22 +1776,13 @@ var data_default = [
1776
1776
  css_name: "@mantine/charts/styles.css",
1777
1777
  dependency: []
1778
1778
  },
1779
- {
1780
- name: "@mantine/tiptap",
1781
- module: "@mantine/tiptap",
1782
- css_name: "@mantine/tiptap/styles.css",
1783
- dependency: [
1784
- "Typography",
1785
- "UnstyledButton"
1786
- ]
1787
- },
1788
1779
  {
1789
1780
  name: "@mantine/code-highlight",
1790
1781
  module: "@mantine/code-highlight",
1791
1782
  css_name: "@mantine/code-highlight/styles.css",
1792
1783
  dependency: [
1793
- "UnstyledButton",
1794
- "ScrollArea"
1784
+ "ScrollArea",
1785
+ "UnstyledButton"
1795
1786
  ]
1796
1787
  },
1797
1788
  {
@@ -1807,11 +1798,11 @@ var data_default = [
1807
1798
  module: "@mantine/spotlight",
1808
1799
  css_name: "@mantine/spotlight/styles.css",
1809
1800
  dependency: [
1810
- "UnstyledButton",
1811
- "Highlight",
1812
- "Input",
1801
+ "Modal",
1813
1802
  "ScrollArea",
1814
- "Modal"
1803
+ "Input",
1804
+ "UnstyledButton",
1805
+ "Highlight"
1815
1806
  ]
1816
1807
  },
1817
1808
  {
@@ -1837,6 +1828,25 @@ var data_default = [
1837
1828
  dependency: [
1838
1829
  "Progress"
1839
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
+ ]
1840
1850
  }
1841
1851
  ];
1842
1852
 
@@ -1924,79 +1934,80 @@ var hierarchy_default = [
1924
1934
  "RadarChart",
1925
1935
  "ScatterChart",
1926
1936
  "Sparkline",
1927
- "ChartLegend",
1928
1937
  "ColorPicker",
1938
+ "ChartLegend",
1929
1939
  "SegmentedControl",
1930
- "RadialBarChart",
1931
1940
  "Card",
1941
+ "RadialBarChart",
1932
1942
  "Affix",
1933
1943
  "@mantine/nprogress",
1934
1944
  "TimeGrid",
1935
- "BubbleChart",
1936
- "Anchor",
1937
1945
  "Highlight",
1946
+ "Anchor",
1947
+ "BubbleChart",
1948
+ "Tooltip",
1938
1949
  "LoadingOverlay",
1939
1950
  "ModalBase",
1940
- "Tooltip",
1941
- "@mantine/code-highlight",
1942
- "Tabs",
1943
- "Day",
1944
- "DatePicker",
1945
1951
  "@mantine/tiptap",
1946
- "@mantine/carousel",
1947
- "ActionIcon",
1948
- "Button",
1949
- "TableOfContents",
1950
- "Accordion",
1951
1952
  "CalendarHeader",
1952
- "CloseButton",
1953
- "PickerControl",
1953
+ "Accordion",
1954
+ "DatePicker",
1955
+ "Day",
1954
1956
  "Pagination",
1957
+ "Button",
1958
+ "@mantine/code-highlight",
1959
+ "CloseButton",
1960
+ "Tabs",
1955
1961
  "Burger",
1962
+ "PickerControl",
1963
+ "ActionIcon",
1964
+ "@mantine/carousel",
1965
+ "TableOfContents",
1956
1966
  "FocusTrap",
1957
1967
  "Spoiler",
1968
+ "RingProgress",
1969
+ "Heatmap",
1958
1970
  "@mantine/dropzone",
1959
1971
  "Modal",
1960
1972
  "Drawer",
1961
- "RingProgress",
1962
- "Heatmap",
1963
- "DateTimePicker",
1964
1973
  "NavLink",
1974
+ "Notification",
1975
+ "Dialog",
1965
1976
  "Input",
1966
- "Alert",
1967
1977
  "Pill",
1968
- "Dialog",
1969
- "Notification",
1978
+ "Alert",
1979
+ "DateTimePicker",
1970
1980
  "Popover",
1971
- "InputBase",
1972
- "Radio",
1981
+ "@mantine/modals",
1982
+ "@mantine/notifications",
1973
1983
  "Checkbox",
1984
+ "Radio",
1985
+ "InputBase",
1974
1986
  "Switch",
1975
- "FileInput",
1976
1987
  "@mantine/spotlight",
1977
- "@mantine/notifications",
1978
- "HoverCard",
1988
+ "FileInput",
1979
1989
  "PickerInputBase",
1980
1990
  "Menu",
1981
1991
  "DateInput",
1992
+ "HoverCard",
1993
+ "Combobox",
1994
+ "Chip",
1995
+ "Stepper",
1982
1996
  "ColorInput",
1983
- "PillsInput",
1984
- "TimePicker",
1985
- "TimeInput",
1986
- "NumberInput",
1987
1997
  "PasswordInput",
1988
- "TextInput",
1989
- "PinInput",
1998
+ "NumberInput",
1990
1999
  "Textarea",
1991
- "Chip",
1992
- "Stepper",
1993
- "Combobox",
2000
+ "PinInput",
2001
+ "TimeInput",
2002
+ "TimePicker",
2003
+ "PillsInput",
2004
+ "TextInput",
2005
+ "NativeSelect",
2006
+ "Autocomplete",
2007
+ "Select",
1994
2008
  "JsonInput",
1995
2009
  "MultiSelect",
1996
- "TagsInput",
1997
- "Select",
1998
- "Autocomplete",
1999
- "NativeSelect"
2010
+ "TagsInput"
2000
2011
  ];
2001
2012
 
2002
2013
  // src/generate.ts
@@ -2079,10 +2090,10 @@ cli.command("run", "Run Mantine CSS reduction").option("--in <dir>", "Directory
2079
2090
  default: false
2080
2091
  }).option("--nprogress", "Include @mantine/nprogress CSS in the output file", {
2081
2092
  default: false
2082
- }).option("--tiptap", "Include @mantine/tiptap CSS in the output file", {
2083
- default: false
2084
2093
  }).option("--modals", "Include Mantine modals manager CSS in the output file", {
2085
2094
  default: false
2095
+ }).option("--tiptap", "Include @mantine/tiptap CSS in the output file", {
2096
+ default: false
2086
2097
  }).option("--ext <extension>", "File extension to scan for Mantine imports", {
2087
2098
  default: ["tsx", "jsx"]
2088
2099
  }).action((options) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mantine-reduce-css",
3
3
  "type": "module",
4
- "version": "1.1.1",
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