mantine-reduce-css 1.0.0 → 1.1.0

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/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  A CLI tool to generate a reduced CSS bundle for your Mantine-based project by scanning your codebase for Mantine imports.
4
4
 
5
+ > [!NOTE]
6
+ > This package supports Mantine v8.1.0 and above (it probably works with earlier versions, but is not tested).
7
+ > The current mantine version is `8.1.3`.
8
+
5
9
  ## Usage
6
10
 
7
11
  ```sh
package/dist/index.js CHANGED
@@ -682,8 +682,8 @@ var data_default = [
682
682
  module: "@mantine/core",
683
683
  css_name: "@mantine/core/styles/Accordion.css",
684
684
  dependency: [
685
- "Collapse",
686
- "UnstyledButton"
685
+ "UnstyledButton",
686
+ "Collapse"
687
687
  ]
688
688
  },
689
689
  {
@@ -691,9 +691,9 @@ var data_default = [
691
691
  module: "@mantine/core",
692
692
  css_name: "@mantine/core/styles/ActionIcon.css",
693
693
  dependency: [
694
- "UnstyledButton",
695
694
  "Transition",
696
- "Loader"
695
+ "Loader",
696
+ "UnstyledButton"
697
697
  ]
698
698
  },
699
699
  {
@@ -743,10 +743,10 @@ var data_default = [
743
743
  module: "@mantine/core",
744
744
  css_name: "",
745
745
  dependency: [
746
- "Combobox",
747
- "ScrollArea",
748
746
  "Input",
749
- "InputBase"
747
+ "Combobox",
748
+ "InputBase",
749
+ "ScrollArea"
750
750
  ]
751
751
  },
752
752
  {
@@ -792,9 +792,9 @@ var data_default = [
792
792
  module: "@mantine/core",
793
793
  css_name: "@mantine/core/styles/Button.css",
794
794
  dependency: [
795
- "UnstyledButton",
796
795
  "Transition",
797
- "Loader"
796
+ "Loader",
797
+ "UnstyledButton"
798
798
  ]
799
799
  },
800
800
  {
@@ -816,10 +816,8 @@ var data_default = [
816
816
  module: "@mantine/core",
817
817
  css_name: "@mantine/core/styles/Checkbox.css",
818
818
  dependency: [
819
- "InlineInput",
820
- "InputsGroupFieldset",
821
- "UnstyledButton",
822
- "Input"
819
+ "Input",
820
+ "UnstyledButton"
823
821
  ]
824
822
  },
825
823
  {
@@ -855,12 +853,12 @@ var data_default = [
855
853
  module: "@mantine/core",
856
854
  css_name: "@mantine/core/styles/ColorInput.css",
857
855
  dependency: [
858
- "ActionIcon",
859
- "Popover",
856
+ "ColorPicker",
860
857
  "InputBase",
861
- "Input",
858
+ "ActionIcon",
862
859
  "ColorSwatch",
863
- "ColorPicker"
860
+ "Input",
861
+ "Popover"
864
862
  ]
865
863
  },
866
864
  {
@@ -882,8 +880,8 @@ var data_default = [
882
880
  module: "@mantine/core",
883
881
  css_name: "@mantine/core/styles/Combobox.css",
884
882
  dependency: [
885
- "Popover",
886
883
  "Input",
884
+ "Popover",
887
885
  "Checkbox"
888
886
  ]
889
887
  },
@@ -904,10 +902,10 @@ var data_default = [
904
902
  module: "@mantine/core",
905
903
  css_name: "@mantine/core/styles/Dialog.css",
906
904
  dependency: [
907
- "CloseButton",
908
905
  "Paper",
906
+ "Affix",
909
907
  "Transition",
910
- "Affix"
908
+ "CloseButton"
911
909
  ]
912
910
  },
913
911
  {
@@ -941,8 +939,8 @@ var data_default = [
941
939
  module: "@mantine/core",
942
940
  css_name: "",
943
941
  dependency: [
944
- "Input",
945
942
  "FileButton",
943
+ "Input",
946
944
  "CloseButton"
947
945
  ]
948
946
  },
@@ -983,8 +981,8 @@ var data_default = [
983
981
  module: "@mantine/core",
984
982
  css_name: "",
985
983
  dependency: [
986
- "Text",
987
- "Mark"
984
+ "Mark",
985
+ "Text"
988
986
  ]
989
987
  },
990
988
  {
@@ -992,8 +990,7 @@ var data_default = [
992
990
  module: "@mantine/core",
993
991
  css_name: "",
994
992
  dependency: [
995
- "Popover",
996
- "Floating"
993
+ "Popover"
997
994
  ]
998
995
  },
999
996
  {
@@ -1008,14 +1005,6 @@ var data_default = [
1008
1005
  css_name: "@mantine/core/styles/Indicator.css",
1009
1006
  dependency: []
1010
1007
  },
1011
- {
1012
- name: "InlineInput",
1013
- module: "@mantine/core",
1014
- css_name: "@mantine/core/styles/InlineInput.css",
1015
- dependency: [
1016
- "Input"
1017
- ]
1018
- },
1019
1008
  {
1020
1009
  name: "Input",
1021
1010
  module: "@mantine/core",
@@ -1032,22 +1021,14 @@ var data_default = [
1032
1021
  "Input"
1033
1022
  ]
1034
1023
  },
1035
- {
1036
- name: "InputsGroupFieldset",
1037
- module: "@mantine/core",
1038
- css_name: "",
1039
- dependency: [
1040
- "Input"
1041
- ]
1042
- },
1043
1024
  {
1044
1025
  name: "JsonInput",
1045
1026
  module: "@mantine/core",
1046
1027
  css_name: "",
1047
1028
  dependency: [
1048
1029
  "Input",
1049
- "Textarea",
1050
- "InputBase"
1030
+ "InputBase",
1031
+ "Textarea"
1051
1032
  ]
1052
1033
  },
1053
1034
  {
@@ -1089,11 +1070,10 @@ var data_default = [
1089
1070
  module: "@mantine/core",
1090
1071
  css_name: "@mantine/core/styles/Menu.css",
1091
1072
  dependency: [
1092
- "Floating",
1093
1073
  "Transition",
1094
1074
  "Popover",
1095
- "Accordion",
1096
- "UnstyledButton"
1075
+ "UnstyledButton",
1076
+ "Accordion"
1097
1077
  ]
1098
1078
  },
1099
1079
  {
@@ -1118,12 +1098,12 @@ var data_default = [
1118
1098
  module: "@mantine/core",
1119
1099
  css_name: "",
1120
1100
  dependency: [
1121
- "Combobox",
1122
- "ScrollArea",
1123
- "Pill",
1124
1101
  "PillsInput",
1125
1102
  "InputBase",
1126
- "Input"
1103
+ "Pill",
1104
+ "ScrollArea",
1105
+ "Input",
1106
+ "Combobox"
1127
1107
  ]
1128
1108
  },
1129
1109
  {
@@ -1131,8 +1111,8 @@ var data_default = [
1131
1111
  module: "@mantine/core",
1132
1112
  css_name: "",
1133
1113
  dependency: [
1134
- "Combobox",
1135
1114
  "Input",
1115
+ "Combobox",
1136
1116
  "InputBase"
1137
1117
  ]
1138
1118
  },
@@ -1141,9 +1121,9 @@ var data_default = [
1141
1121
  module: "@mantine/core",
1142
1122
  css_name: "@mantine/core/styles/NavLink.css",
1143
1123
  dependency: [
1144
- "Accordion",
1145
1124
  "Collapse",
1146
- "UnstyledButton"
1125
+ "UnstyledButton",
1126
+ "Accordion"
1147
1127
  ]
1148
1128
  },
1149
1129
  {
@@ -1151,8 +1131,8 @@ var data_default = [
1151
1131
  module: "@mantine/core",
1152
1132
  css_name: "@mantine/core/styles/Notification.css",
1153
1133
  dependency: [
1154
- "CloseButton",
1155
- "Loader"
1134
+ "Loader",
1135
+ "CloseButton"
1156
1136
  ]
1157
1137
  },
1158
1138
  {
@@ -1166,9 +1146,9 @@ var data_default = [
1166
1146
  module: "@mantine/core",
1167
1147
  css_name: "@mantine/core/styles/NumberInput.css",
1168
1148
  dependency: [
1169
- "UnstyledButton",
1170
1149
  "Input",
1171
- "InputBase"
1150
+ "InputBase",
1151
+ "UnstyledButton"
1172
1152
  ]
1173
1153
  },
1174
1154
  {
@@ -1196,8 +1176,8 @@ var data_default = [
1196
1176
  module: "@mantine/core",
1197
1177
  css_name: "@mantine/core/styles/PasswordInput.css",
1198
1178
  dependency: [
1199
- "ActionIcon",
1200
1179
  "Input",
1180
+ "ActionIcon",
1201
1181
  "InputBase"
1202
1182
  ]
1203
1183
  },
@@ -1224,8 +1204,8 @@ var data_default = [
1224
1204
  css_name: "@mantine/core/styles/PinInput.css",
1225
1205
  dependency: [
1226
1206
  "Input",
1227
- "InputBase",
1228
- "Group"
1207
+ "Group",
1208
+ "InputBase"
1229
1209
  ]
1230
1210
  },
1231
1211
  {
@@ -1233,11 +1213,10 @@ var data_default = [
1233
1213
  module: "@mantine/core",
1234
1214
  css_name: "@mantine/core/styles/Popover.css",
1235
1215
  dependency: [
1236
- "Portal",
1237
- "Floating",
1238
- "Transition",
1239
1216
  "Overlay",
1240
- "FocusTrap"
1217
+ "FocusTrap",
1218
+ "Transition",
1219
+ "Portal"
1241
1220
  ]
1242
1221
  },
1243
1222
  {
@@ -1257,10 +1236,8 @@ var data_default = [
1257
1236
  module: "@mantine/core",
1258
1237
  css_name: "@mantine/core/styles/Radio.css",
1259
1238
  dependency: [
1260
- "InlineInput",
1261
- "InputsGroupFieldset",
1262
- "UnstyledButton",
1263
- "Input"
1239
+ "Input",
1240
+ "UnstyledButton"
1264
1241
  ]
1265
1242
  },
1266
1243
  {
@@ -1296,10 +1273,10 @@ var data_default = [
1296
1273
  module: "@mantine/core",
1297
1274
  css_name: "",
1298
1275
  dependency: [
1299
- "Combobox",
1300
- "ScrollArea",
1301
1276
  "Input",
1302
- "InputBase"
1277
+ "Combobox",
1278
+ "InputBase",
1279
+ "ScrollArea"
1303
1280
  ]
1304
1281
  },
1305
1282
  {
@@ -1345,10 +1322,10 @@ var data_default = [
1345
1322
  module: "@mantine/core",
1346
1323
  css_name: "@mantine/core/styles/Stepper.css",
1347
1324
  dependency: [
1348
- "UnstyledButton",
1349
- "Checkbox",
1350
1325
  "Transition",
1351
- "Loader"
1326
+ "UnstyledButton",
1327
+ "Loader",
1328
+ "Checkbox"
1352
1329
  ]
1353
1330
  },
1354
1331
  {
@@ -1356,8 +1333,6 @@ var data_default = [
1356
1333
  module: "@mantine/core",
1357
1334
  css_name: "@mantine/core/styles/Switch.css",
1358
1335
  dependency: [
1359
- "InlineInput",
1360
- "InputsGroupFieldset",
1361
1336
  "Input"
1362
1337
  ]
1363
1338
  },
@@ -1388,12 +1363,12 @@ var data_default = [
1388
1363
  module: "@mantine/core",
1389
1364
  css_name: "",
1390
1365
  dependency: [
1391
- "Combobox",
1392
- "ScrollArea",
1393
- "Pill",
1394
1366
  "PillsInput",
1395
1367
  "InputBase",
1396
- "Input"
1368
+ "Pill",
1369
+ "ScrollArea",
1370
+ "Input",
1371
+ "Combobox"
1397
1372
  ]
1398
1373
  },
1399
1374
  {
@@ -1444,7 +1419,6 @@ var data_default = [
1444
1419
  css_name: "@mantine/core/styles/Tooltip.css",
1445
1420
  dependency: [
1446
1421
  "Portal",
1447
- "Floating",
1448
1422
  "Transition"
1449
1423
  ]
1450
1424
  },
@@ -1461,9 +1435,9 @@ var data_default = [
1461
1435
  dependency: []
1462
1436
  },
1463
1437
  {
1464
- name: "TypographyStylesProvider",
1438
+ name: "Typography",
1465
1439
  module: "@mantine/core",
1466
- css_name: "@mantine/core/styles/TypographyStylesProvider.css",
1440
+ css_name: "",
1467
1441
  dependency: []
1468
1442
  },
1469
1443
  {
@@ -1502,15 +1476,6 @@ var data_default = [
1502
1476
  "CloseButton"
1503
1477
  ]
1504
1478
  },
1505
- {
1506
- name: "DateInputMask",
1507
- module: "@mantine/dates",
1508
- css_name: "@mantine/dates/styles.css",
1509
- dependency: [
1510
- "Popover",
1511
- "InputBase"
1512
- ]
1513
- },
1514
1479
  {
1515
1480
  name: "DatePicker",
1516
1481
  module: "@mantine/dates",
@@ -1620,9 +1585,9 @@ var data_default = [
1620
1585
  module: "@mantine/dates",
1621
1586
  css_name: "@mantine/dates/styles.css",
1622
1587
  dependency: [
1623
- "Popover",
1624
1588
  "Input",
1625
- "Modal"
1589
+ "Modal",
1590
+ "Popover"
1626
1591
  ]
1627
1592
  },
1628
1593
  {
@@ -1652,11 +1617,11 @@ var data_default = [
1652
1617
  module: "@mantine/dates",
1653
1618
  css_name: "@mantine/dates/styles.css",
1654
1619
  dependency: [
1620
+ "InputBase",
1655
1621
  "SimpleGrid",
1656
1622
  "ScrollArea",
1657
1623
  "Popover",
1658
- "CloseButton",
1659
- "InputBase"
1624
+ "CloseButton"
1660
1625
  ]
1661
1626
  },
1662
1627
  {
@@ -1718,8 +1683,8 @@ var data_default = [
1718
1683
  module: "@mantine/charts",
1719
1684
  css_name: "@mantine/charts/styles.css",
1720
1685
  dependency: [
1721
- "Text",
1722
- "Group"
1686
+ "Group",
1687
+ "Text"
1723
1688
  ]
1724
1689
  },
1725
1690
  {
@@ -1792,8 +1757,8 @@ var data_default = [
1792
1757
  css_name: "@mantine/charts/styles.css",
1793
1758
  dependency: [
1794
1759
  "Paper",
1795
- "ColorSwatch",
1796
- "Group"
1760
+ "Group",
1761
+ "ColorSwatch"
1797
1762
  ]
1798
1763
  },
1799
1764
  {
@@ -1812,9 +1777,18 @@ var data_default = [
1812
1777
  name: "@mantine/tiptap",
1813
1778
  module: "@mantine/tiptap",
1814
1779
  css_name: "@mantine/tiptap/styles.css",
1780
+ dependency: [
1781
+ "Typography",
1782
+ "UnstyledButton"
1783
+ ]
1784
+ },
1785
+ {
1786
+ name: "@mantine/code-highlight",
1787
+ module: "@mantine/code-highlight",
1788
+ css_name: "@mantine/code-highlight/styles.css",
1815
1789
  dependency: [
1816
1790
  "UnstyledButton",
1817
- "TypographyStylesProvider"
1791
+ "ScrollArea"
1818
1792
  ]
1819
1793
  },
1820
1794
  {
@@ -1830,11 +1804,11 @@ var data_default = [
1830
1804
  module: "@mantine/spotlight",
1831
1805
  css_name: "@mantine/spotlight/styles.css",
1832
1806
  dependency: [
1833
- "Highlight",
1834
- "Input",
1835
- "ScrollArea",
1836
1807
  "Modal",
1837
- "UnstyledButton"
1808
+ "UnstyledButton",
1809
+ "ScrollArea",
1810
+ "Highlight",
1811
+ "Input"
1838
1812
  ]
1839
1813
  },
1840
1814
  {
@@ -1911,7 +1885,7 @@ var hierarchy_default = [
1911
1885
  "Title",
1912
1886
  "Transition",
1913
1887
  "Tree",
1914
- "TypographyStylesProvider",
1888
+ "Typography",
1915
1889
  "UnstyledButton",
1916
1890
  "VisuallyHidden",
1917
1891
  "Calendar",
@@ -1950,78 +1924,76 @@ var hierarchy_default = [
1950
1924
  "ChartLegend",
1951
1925
  "ColorPicker",
1952
1926
  "SegmentedControl",
1953
- "Card",
1954
1927
  "RadialBarChart",
1928
+ "Card",
1955
1929
  "Affix",
1956
1930
  "@mantine/nprogress",
1957
1931
  "TimeGrid",
1958
1932
  "Anchor",
1959
- "BubbleChart",
1960
1933
  "Highlight",
1934
+ "BubbleChart",
1961
1935
  "ModalBase",
1962
- "Tooltip",
1963
1936
  "LoadingOverlay",
1964
- "PickerControl",
1965
- "Burger",
1966
- "Tabs",
1937
+ "Tooltip",
1967
1938
  "Day",
1968
- "CalendarHeader",
1969
- "Accordion",
1970
- "Pagination",
1971
- "TableOfContents",
1972
- "Button",
1973
- "DatePicker",
1974
1939
  "ActionIcon",
1975
- "CloseButton",
1940
+ "Button",
1941
+ "@mantine/code-highlight",
1942
+ "TableOfContents",
1943
+ "PickerControl",
1976
1944
  "@mantine/carousel",
1945
+ "Pagination",
1946
+ "CloseButton",
1947
+ "CalendarHeader",
1948
+ "Tabs",
1949
+ "DatePicker",
1977
1950
  "@mantine/tiptap",
1951
+ "Accordion",
1952
+ "Burger",
1978
1953
  "FocusTrap",
1979
1954
  "Spoiler",
1980
- "Drawer",
1981
1955
  "Modal",
1956
+ "Drawer",
1957
+ "@mantine/dropzone",
1982
1958
  "RingProgress",
1983
1959
  "Heatmap",
1984
- "@mantine/dropzone",
1985
- "NavLink",
1986
1960
  "DateTimePicker",
1987
- "Notification",
1988
1961
  "Alert",
1989
1962
  "Pill",
1990
- "Input",
1991
1963
  "Dialog",
1964
+ "Input",
1965
+ "Notification",
1966
+ "NavLink",
1992
1967
  "Popover",
1993
- "@mantine/notifications",
1968
+ "Radio",
1994
1969
  "@mantine/spotlight",
1995
1970
  "InputBase",
1996
1971
  "FileInput",
1997
- "InputsGroupFieldset",
1998
- "InlineInput",
1999
- "PickerInputBase",
2000
- "Menu",
2001
- "HoverCard",
1972
+ "Switch",
1973
+ "Checkbox",
1974
+ "@mantine/notifications",
2002
1975
  "DateInput",
2003
- "DateInputMask",
2004
- "PasswordInput",
1976
+ "HoverCard",
1977
+ "Menu",
1978
+ "PickerInputBase",
1979
+ "PillsInput",
1980
+ "NumberInput",
1981
+ "TimePicker",
2005
1982
  "ColorInput",
1983
+ "PasswordInput",
2006
1984
  "PinInput",
2007
- "TimeInput",
2008
- "TimePicker",
2009
- "PillsInput",
2010
1985
  "Textarea",
2011
1986
  "TextInput",
2012
- "NumberInput",
2013
- "Switch",
2014
- "Radio",
2015
- "Checkbox",
2016
- "JsonInput",
1987
+ "TimeInput",
2017
1988
  "Combobox",
2018
- "Stepper",
2019
1989
  "Chip",
1990
+ "Stepper",
1991
+ "JsonInput",
2020
1992
  "Select",
2021
- "MultiSelect",
2022
1993
  "Autocomplete",
2023
1994
  "NativeSelect",
2024
- "TagsInput"
1995
+ "TagsInput",
1996
+ "MultiSelect"
2025
1997
  ];
2026
1998
 
2027
1999
  // src/generate.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mantine-reduce-css",
3
3
  "type": "module",
4
- "version": "1.0.0",
4
+ "version": "1.1.0",
5
5
  "description": "cli tool for reducing global css for mantine",
6
6
  "bin": {
7
7
  "mantine-reduce-css": "./dist/index.js"
@@ -1,15 +0,0 @@
1
- # These are supported funding model platforms
2
-
3
- github: [hilmoo]
4
- patreon: # Replace with a single Patreon username
5
- open_collective: # Replace with a single Open Collective username
6
- ko_fi: # Replace with a single Ko-fi username
7
- tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8
- community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
- liberapay: # Replace with a single Liberapay username
10
- issuehunt: # Replace with a single IssueHunt username
11
- lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12
- polar: # Replace with a single Polar username
13
- buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14
- thanks_dev: # Replace with a single thanks.dev username
15
- custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -1,21 +0,0 @@
1
- name: Publish And Build
2
- on:
3
- release:
4
- types: [published]
5
- jobs:
6
- build:
7
- runs-on: ubuntu-latest
8
- permissions:
9
- contents: read
10
- id-token: write
11
- steps:
12
- - uses: actions/checkout@v4
13
- - uses: actions/setup-node@v4
14
- with:
15
- node-version: "20.x"
16
- registry-url: "https://registry.npmjs.org"
17
- - run: npm ci
18
- - run: npm run build
19
- - run: npm publish --provenance --access public
20
- env:
21
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/mantine.css DELETED
@@ -1,5 +0,0 @@
1
- @import "@mantine/core/styles/Loader.css";
2
- @import "@mantine/core/styles/UnstyledButton.css";
3
- @import "@mantine/core/styles/CloseButton.css";
4
- @import "@mantine/core/styles/Notification.css";
5
- @import "@mantine/notifications/styles.css";
package/tmp/a.tsx DELETED
@@ -1,2 +0,0 @@
1
- import { Alert,
2
- Anchor, Button, Group, PasswordInput, Stack, TextInput } from "@mantine/core";