@overmap-ai/blocks 1.0.31-master.1 → 1.0.31-minimize-size.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.
@@ -1,7 +1,110 @@
1
+ /**
2
+ We use `@react-icons/all-files` to reduce the bundle size.
3
+ The default `react-icons` package does not support tree-shaking.
4
+ We use an external .tar.gz file to use the `all-files` package because it has too many files for NPM to host.
5
+ This drastically reduces the bundle size, and therefore the load time and memory usage of the app (and improves
6
+ SEO), b at the cost of a slower `yarn install` and having to define the available icons in this file.
7
+ On the other hand, defining all used icons in this file makes it easier to find icons because we get autocomplete
8
+ and validation through TypeScript instead of hoping that there's a matching icon in the `react-icons` package.
9
+ */
1
10
  /// <reference types="react" />
2
- import { IconBaseProps } from "react-icons";
3
- interface RemixIconProps extends IconBaseProps {
4
- icon: string;
11
+ import type { IconBaseProps } from "@react-icons/all-files";
12
+ declare const USED_ICONS: {
13
+ readonly RiAccountBoxLine: IconType;
14
+ readonly RiAddLine: IconType;
15
+ readonly RiAlertLine: IconType;
16
+ readonly RiArrowDownSLine: IconType;
17
+ readonly RiArrowLeftDoubleLine: IconType;
18
+ readonly RiArrowLeftLine: IconType;
19
+ readonly RiArrowLeftSLine: IconType;
20
+ readonly RiArrowRightDoubleLine: IconType;
21
+ readonly RiArrowRightLine: IconType;
22
+ readonly RiArrowRightSLine: IconType;
23
+ readonly RiArrowUpLine: IconType;
24
+ readonly RiArrowUpSLine: IconType;
25
+ readonly RiArticleFill: IconType;
26
+ readonly RiAttachment2: IconType;
27
+ readonly RiBankCardFill: IconType;
28
+ readonly RiBarChartFill: IconType;
29
+ readonly RiBardFill: IconType;
30
+ readonly RiBold: IconType;
31
+ readonly RiBugLine: IconType;
32
+ readonly RiBuilding2Fill: IconType;
33
+ readonly RiCalendarEventFill: IconType;
34
+ readonly RiCalendarFill: IconType;
35
+ readonly RiCheckLine: IconType;
36
+ readonly RiCheckboxBlankFill: IconType;
37
+ readonly RiCircleFill: IconType;
38
+ readonly RiCircleLine: IconType;
39
+ readonly RiCloseLargeLine: IconType;
40
+ readonly RiCloseLine: IconType;
41
+ readonly RiColorFilterFill: IconType;
42
+ readonly RiCommunityLine: IconType;
43
+ readonly RiDeleteBin2Line: IconType;
44
+ readonly RiDeleteBin7Fill: IconType;
45
+ readonly RiDeleteBin7Line: IconType;
46
+ readonly RiDownload2Line: IconType;
47
+ readonly RiDraggable: IconType;
48
+ readonly RiEqualizerFill: IconType;
49
+ readonly RiEqualizerLine: IconType;
50
+ readonly RiErrorWarningLine: IconType;
51
+ readonly RiExpandDiagonalFill: IconType;
52
+ readonly RiExpandDiagonalLine: IconType;
53
+ readonly RiExpandUpDownLine: IconType;
54
+ readonly RiExportFill: IconType;
55
+ readonly RiExternalLinkFill: IconType;
56
+ readonly RiExternalLinkLine: IconType;
57
+ readonly RiFile3Fill: IconType;
58
+ readonly RiFileCopyFill: IconType;
59
+ readonly RiFileCopyLine: IconType;
60
+ readonly RiFileTextFill: IconType;
61
+ readonly RiFilter3Line: IconType;
62
+ readonly RiFunctionFill: IconType;
63
+ readonly RiHome2Line: IconType;
64
+ readonly RiHomeLine: IconType;
65
+ readonly RiImportFill: IconType;
66
+ readonly RiInformationLine: IconType;
67
+ readonly RiInstanceLine: IconType;
68
+ readonly RiLayoutColumnLine: IconType;
69
+ readonly RiLayoutLeftLine: IconType;
70
+ readonly RiLayoutRightLine: IconType;
71
+ readonly RiLink: IconType;
72
+ readonly RiLinkUnlink: IconType;
73
+ readonly RiLoginBoxLine: IconType;
74
+ readonly RiLogoutBoxLine: IconType;
75
+ readonly RiLoopLeftLine: IconType;
76
+ readonly RiMapPin5Fill: IconType;
77
+ readonly RiMarkupFill: IconType;
78
+ readonly RiMenuLine: IconType;
79
+ readonly RiMoonFill: IconType;
80
+ readonly RiMore2Fill: IconType;
81
+ readonly RiMoreFill: IconType;
82
+ readonly RiMusic2Fill: IconType;
83
+ readonly RiPencilFill: IconType;
84
+ readonly RiPencilLine: IconType;
85
+ readonly RiPlayFill: IconType;
86
+ readonly RiQuestionLine: IconType;
87
+ readonly RiQuestionMark: IconType;
88
+ readonly RiRoadMapFill: IconType;
89
+ readonly RiSearchLine: IconType;
90
+ readonly RiSettings2Line: IconType;
91
+ readonly RiSquareFill: IconType;
92
+ readonly RiSquareLine: IconType;
93
+ readonly RiStarLine: IconType;
94
+ readonly RiSubtractLine: IconType;
95
+ readonly RiSunFill: IconType;
96
+ readonly RiThumbDownFill: IconType;
97
+ readonly RiThumbDownLine: IconType;
98
+ readonly RiThumbUpFill: IconType;
99
+ readonly RiThumbUpLine: IconType;
100
+ readonly RiUploadLine: IconType;
101
+ readonly RiUser2Fill: IconType;
102
+ readonly RiUser3Fill: IconType;
103
+ readonly RiUserAddFill: IconType;
104
+ readonly RiUserLine: IconType;
105
+ };
106
+ interface RiIconProps extends IconBaseProps {
107
+ icon: keyof typeof USED_ICONS;
5
108
  }
6
- export declare const RiIcon: import("react").MemoExoticComponent<(props: RemixIconProps) => import("react/jsx-runtime").JSX.Element>;
109
+ export declare const RiIcon: import("react").MemoExoticComponent<(props: RiIconProps) => import("react/jsx-runtime").JSX.Element>;
7
110
  export {};